smart_device

package
v0.0.0-...-b500c14 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for smart device API

func (*Client) CreateSmartDevice

func (a *Client) CreateSmartDevice(params *CreateSmartDeviceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartDeviceOK, error)

CreateSmartDevice creates smart device

Register a new smart device to your account

func (*Client) CreateSmartDeviceDataPoint

func (a *Client) CreateSmartDeviceDataPoint(params *CreateSmartDeviceDataPointParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartDeviceDataPointOK, error)

CreateSmartDeviceDataPoint creates smart device data point

Store a data point against a smart device

func (*Client) GetSmartDeviceByID

func (a *Client) GetSmartDeviceByID(params *GetSmartDeviceByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartDeviceByIDOK, error)

GetSmartDeviceByID gets smart device by ID

Get a smart device's information

func (*Client) GetSmartDeviceDataPointsByID

func (a *Client) GetSmartDeviceDataPointsByID(params *GetSmartDeviceDataPointsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartDeviceDataPointsByIDOK, error)

GetSmartDeviceDataPointsByID gets smart device data points by ID

Get a list of a smart device's data points

func (*Client) GetYourSmartDevices

func (a *Client) GetYourSmartDevices(params *GetYourSmartDevicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetYourSmartDevicesOK, error)

GetYourSmartDevices gets your smart devices

List the smart devices registered to your account

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	CreateSmartDevice(params *CreateSmartDeviceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartDeviceOK, error)

	CreateSmartDeviceDataPoint(params *CreateSmartDeviceDataPointParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartDeviceDataPointOK, error)

	GetSmartDeviceByID(params *GetSmartDeviceByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartDeviceByIDOK, error)

	GetSmartDeviceDataPointsByID(params *GetSmartDeviceDataPointsByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartDeviceDataPointsByIDOK, error)

	GetYourSmartDevices(params *GetYourSmartDevicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetYourSmartDevicesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new smart device API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new smart device API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new smart device API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type CreateSmartDeviceBody

type CreateSmartDeviceBody struct {

	// An alternate name for the smart device.
	// Example: consequatur
	Alias string `json:"alias,omitempty"`

	// The name of the product's manufacturer.
	// Example: consequatur
	Manufacturer string `json:"manufacturer,omitempty"`

	// other data
	// Example: []
	OtherData interface{} `json:"other_data,omitempty"`

	// The model name of the product.
	// Example: consequatur
	ProductName string `json:"product_name,omitempty"`

	// The serial number of the smart device.
	// Example: consequatur
	// Required: true
	SerialNumber *string `json:"serial_number"`
}

CreateSmartDeviceBody create smart device body swagger:model CreateSmartDeviceBody

func (*CreateSmartDeviceBody) ContextValidate

func (o *CreateSmartDeviceBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create smart device body based on context it is used

func (*CreateSmartDeviceBody) MarshalBinary

func (o *CreateSmartDeviceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceBody) UnmarshalBinary

func (o *CreateSmartDeviceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceBody) Validate

func (o *CreateSmartDeviceBody) Validate(formats strfmt.Registry) error

Validate validates this create smart device body

type CreateSmartDeviceDataPointBody

type CreateSmartDeviceDataPointBody struct {

	// power
	// Example: 17
	// Required: true
	Power *int64 `json:"power"`

	// The date & time that the data point was created
	// Example: consequatur
	// Required: true
	Time *string `json:"time"`
}

CreateSmartDeviceDataPointBody create smart device data point body swagger:model CreateSmartDeviceDataPointBody

func (*CreateSmartDeviceDataPointBody) ContextValidate

func (o *CreateSmartDeviceDataPointBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create smart device data point body based on context it is used

func (*CreateSmartDeviceDataPointBody) MarshalBinary

func (o *CreateSmartDeviceDataPointBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceDataPointBody) UnmarshalBinary

func (o *CreateSmartDeviceDataPointBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceDataPointBody) Validate

func (o *CreateSmartDeviceDataPointBody) Validate(formats strfmt.Registry) error

Validate validates this create smart device data point body

type CreateSmartDeviceDataPointOK

type CreateSmartDeviceDataPointOK struct {
	Payload *CreateSmartDeviceDataPointOKBody
}

CreateSmartDeviceDataPointOK describes a response with status code 200, with default header values.

CreateSmartDeviceDataPointOK create smart device data point o k

func NewCreateSmartDeviceDataPointOK

func NewCreateSmartDeviceDataPointOK() *CreateSmartDeviceDataPointOK

NewCreateSmartDeviceDataPointOK creates a CreateSmartDeviceDataPointOK with default headers values

func (*CreateSmartDeviceDataPointOK) Code

Code gets the status code for the create smart device data point o k response

func (*CreateSmartDeviceDataPointOK) Error

func (*CreateSmartDeviceDataPointOK) GetPayload

func (*CreateSmartDeviceDataPointOK) IsClientError

func (o *CreateSmartDeviceDataPointOK) IsClientError() bool

IsClientError returns true when this create smart device data point o k response has a 4xx status code

func (*CreateSmartDeviceDataPointOK) IsCode

func (o *CreateSmartDeviceDataPointOK) IsCode(code int) bool

IsCode returns true when this create smart device data point o k response a status code equal to that given

func (*CreateSmartDeviceDataPointOK) IsRedirect

func (o *CreateSmartDeviceDataPointOK) IsRedirect() bool

IsRedirect returns true when this create smart device data point o k response has a 3xx status code

func (*CreateSmartDeviceDataPointOK) IsServerError

func (o *CreateSmartDeviceDataPointOK) IsServerError() bool

IsServerError returns true when this create smart device data point o k response has a 5xx status code

func (*CreateSmartDeviceDataPointOK) IsSuccess

func (o *CreateSmartDeviceDataPointOK) IsSuccess() bool

IsSuccess returns true when this create smart device data point o k response has a 2xx status code

func (*CreateSmartDeviceDataPointOK) String

type CreateSmartDeviceDataPointOKBody

type CreateSmartDeviceDataPointOKBody struct {

	// data
	// Example: [{"power":622,"time":"1980-04-12T13:41:24Z"},{"power":437,"time":"1993-12-21T13:55:59Z"}]
	Data []*CreateSmartDeviceDataPointOKBodyDataItems0 `json:"data"`
}

CreateSmartDeviceDataPointOKBody create smart device data point o k body // Example: {"data":[{"power":622,"time":"1980-04-12T13:41:24Z"},{"power":437,"time":"1993-12-21T13:55:59Z"}]} swagger:model CreateSmartDeviceDataPointOKBody

func (*CreateSmartDeviceDataPointOKBody) ContextValidate

func (o *CreateSmartDeviceDataPointOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create smart device data point o k body based on the context it is used

func (*CreateSmartDeviceDataPointOKBody) MarshalBinary

func (o *CreateSmartDeviceDataPointOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceDataPointOKBody) UnmarshalBinary

func (o *CreateSmartDeviceDataPointOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceDataPointOKBody) Validate

Validate validates this create smart device data point o k body

type CreateSmartDeviceDataPointOKBodyDataItems0

type CreateSmartDeviceDataPointOKBodyDataItems0 struct {

	// power
	// Example: 622
	Power int64 `json:"power,omitempty"`

	// time
	// Example: 1980-04-12T13:41:24Z
	Time string `json:"time,omitempty"`
}

CreateSmartDeviceDataPointOKBodyDataItems0 create smart device data point o k body data items0 swagger:model CreateSmartDeviceDataPointOKBodyDataItems0

func (*CreateSmartDeviceDataPointOKBodyDataItems0) ContextValidate

ContextValidate validates this create smart device data point o k body data items0 based on context it is used

func (*CreateSmartDeviceDataPointOKBodyDataItems0) MarshalBinary

func (o *CreateSmartDeviceDataPointOKBodyDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceDataPointOKBodyDataItems0) UnmarshalBinary

func (o *CreateSmartDeviceDataPointOKBodyDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceDataPointOKBodyDataItems0) Validate

Validate validates this create smart device data point o k body data items0

type CreateSmartDeviceDataPointParams

type CreateSmartDeviceDataPointParams struct {

	// Authorization.
	Authorization *string

	// Body.
	Body CreateSmartDeviceDataPointBody

	/* SmartDeviceUUID.

	   The UUID of the smartDevice.
	*/
	SmartDeviceUUID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateSmartDeviceDataPointParams contains all the parameters to send to the API endpoint

for the create smart device data point operation.

Typically these are written to a http.Request.

func NewCreateSmartDeviceDataPointParams

func NewCreateSmartDeviceDataPointParams() *CreateSmartDeviceDataPointParams

NewCreateSmartDeviceDataPointParams creates a new CreateSmartDeviceDataPointParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateSmartDeviceDataPointParamsWithContext

func NewCreateSmartDeviceDataPointParamsWithContext(ctx context.Context) *CreateSmartDeviceDataPointParams

NewCreateSmartDeviceDataPointParamsWithContext creates a new CreateSmartDeviceDataPointParams object with the ability to set a context for a request.

func NewCreateSmartDeviceDataPointParamsWithHTTPClient

func NewCreateSmartDeviceDataPointParamsWithHTTPClient(client *http.Client) *CreateSmartDeviceDataPointParams

NewCreateSmartDeviceDataPointParamsWithHTTPClient creates a new CreateSmartDeviceDataPointParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSmartDeviceDataPointParamsWithTimeout

func NewCreateSmartDeviceDataPointParamsWithTimeout(timeout time.Duration) *CreateSmartDeviceDataPointParams

NewCreateSmartDeviceDataPointParamsWithTimeout creates a new CreateSmartDeviceDataPointParams object with the ability to set a timeout on a request.

func (*CreateSmartDeviceDataPointParams) SetAuthorization

func (o *CreateSmartDeviceDataPointParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) SetBody

SetBody adds the body to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) SetContext

SetContext adds the context to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) SetDefaults

func (o *CreateSmartDeviceDataPointParams) SetDefaults()

SetDefaults hydrates default values in the create smart device data point params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSmartDeviceDataPointParams) SetHTTPClient

func (o *CreateSmartDeviceDataPointParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) SetSmartDeviceUUID

func (o *CreateSmartDeviceDataPointParams) SetSmartDeviceUUID(smartDeviceUUID string)

SetSmartDeviceUUID adds the smartDeviceUuid to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) SetTimeout

func (o *CreateSmartDeviceDataPointParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithAuthorization

func (o *CreateSmartDeviceDataPointParams) WithAuthorization(authorization *string) *CreateSmartDeviceDataPointParams

WithAuthorization adds the authorization to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithBody

WithBody adds the body to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithContext

WithContext adds the context to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithDefaults

WithDefaults hydrates default values in the create smart device data point params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSmartDeviceDataPointParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithSmartDeviceUUID

func (o *CreateSmartDeviceDataPointParams) WithSmartDeviceUUID(smartDeviceUUID string) *CreateSmartDeviceDataPointParams

WithSmartDeviceUUID adds the smartDeviceUUID to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WithTimeout

WithTimeout adds the timeout to the create smart device data point params

func (*CreateSmartDeviceDataPointParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSmartDeviceDataPointReader

type CreateSmartDeviceDataPointReader struct {
	// contains filtered or unexported fields
}

CreateSmartDeviceDataPointReader is a Reader for the CreateSmartDeviceDataPoint structure.

func (*CreateSmartDeviceDataPointReader) ReadResponse

func (o *CreateSmartDeviceDataPointReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateSmartDeviceOK

type CreateSmartDeviceOK struct {
	Payload *CreateSmartDeviceOKBody
}

CreateSmartDeviceOK describes a response with status code 200, with default header values.

CreateSmartDeviceOK create smart device o k

func NewCreateSmartDeviceOK

func NewCreateSmartDeviceOK() *CreateSmartDeviceOK

NewCreateSmartDeviceOK creates a CreateSmartDeviceOK with default headers values

func (*CreateSmartDeviceOK) Code

func (o *CreateSmartDeviceOK) Code() int

Code gets the status code for the create smart device o k response

func (*CreateSmartDeviceOK) Error

func (o *CreateSmartDeviceOK) Error() string

func (*CreateSmartDeviceOK) GetPayload

func (*CreateSmartDeviceOK) IsClientError

func (o *CreateSmartDeviceOK) IsClientError() bool

IsClientError returns true when this create smart device o k response has a 4xx status code

func (*CreateSmartDeviceOK) IsCode

func (o *CreateSmartDeviceOK) IsCode(code int) bool

IsCode returns true when this create smart device o k response a status code equal to that given

func (*CreateSmartDeviceOK) IsRedirect

func (o *CreateSmartDeviceOK) IsRedirect() bool

IsRedirect returns true when this create smart device o k response has a 3xx status code

func (*CreateSmartDeviceOK) IsServerError

func (o *CreateSmartDeviceOK) IsServerError() bool

IsServerError returns true when this create smart device o k response has a 5xx status code

func (*CreateSmartDeviceOK) IsSuccess

func (o *CreateSmartDeviceOK) IsSuccess() bool

IsSuccess returns true when this create smart device o k response has a 2xx status code

func (*CreateSmartDeviceOK) String

func (o *CreateSmartDeviceOK) String() string

type CreateSmartDeviceOKBody

type CreateSmartDeviceOKBody struct {

	// data
	// Example: [{"alias":"iste","other_data":{"graph_color":"#22c331","hardware_id":"e","local_key":"/"},"uuid":"58b5215d-ef7b-47fb-8897-79da6e0cc184"},{"alias":"ut","other_data":{"graph_color":"#913ee5","hardware_id":"#","local_key":"l"},"uuid":"d6353976-5898-4a54-b610-daaaa147017e"}]
	Data []*CreateSmartDeviceOKBodyDataItems0 `json:"data"`
}

CreateSmartDeviceOKBody create smart device o k body // Example: {"data":[{"alias":"iste","other_data":{"graph_color":"#22c331","hardware_id":"e","local_key":"/"},"uuid":"58b5215d-ef7b-47fb-8897-79da6e0cc184"},{"alias":"ut","other_data":{"graph_color":"#913ee5","hardware_id":"#","local_key":"l"},"uuid":"d6353976-5898-4a54-b610-daaaa147017e"}]} swagger:model CreateSmartDeviceOKBody

func (*CreateSmartDeviceOKBody) ContextValidate

func (o *CreateSmartDeviceOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create smart device o k body based on the context it is used

func (*CreateSmartDeviceOKBody) MarshalBinary

func (o *CreateSmartDeviceOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceOKBody) UnmarshalBinary

func (o *CreateSmartDeviceOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceOKBody) Validate

func (o *CreateSmartDeviceOKBody) Validate(formats strfmt.Registry) error

Validate validates this create smart device o k body

type CreateSmartDeviceOKBodyDataItems0

type CreateSmartDeviceOKBodyDataItems0 struct {

	// alias
	// Example: iste
	Alias string `json:"alias,omitempty"`

	// other data
	OtherData *CreateSmartDeviceOKBodyDataItems0OtherData `json:"other_data,omitempty"`

	// uuid
	// Example: 58b5215d-ef7b-47fb-8897-79da6e0cc184
	UUID string `json:"uuid,omitempty"`
}

CreateSmartDeviceOKBodyDataItems0 create smart device o k body data items0 swagger:model CreateSmartDeviceOKBodyDataItems0

func (*CreateSmartDeviceOKBodyDataItems0) ContextValidate

func (o *CreateSmartDeviceOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create smart device o k body data items0 based on the context it is used

func (*CreateSmartDeviceOKBodyDataItems0) MarshalBinary

func (o *CreateSmartDeviceOKBodyDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceOKBodyDataItems0) UnmarshalBinary

func (o *CreateSmartDeviceOKBodyDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceOKBodyDataItems0) Validate

Validate validates this create smart device o k body data items0

type CreateSmartDeviceOKBodyDataItems0OtherData

type CreateSmartDeviceOKBodyDataItems0OtherData struct {

	// graph color
	// Example: #22c331
	GraphColor string `json:"graph_color,omitempty"`

	// hardware id
	// Example: e
	HardwareID string `json:"hardware_id,omitempty"`

	// local key
	// Example: /
	LocalKey string `json:"local_key,omitempty"`
}

CreateSmartDeviceOKBodyDataItems0OtherData create smart device o k body data items0 other data swagger:model CreateSmartDeviceOKBodyDataItems0OtherData

func (*CreateSmartDeviceOKBodyDataItems0OtherData) ContextValidate

ContextValidate validates this create smart device o k body data items0 other data based on context it is used

func (*CreateSmartDeviceOKBodyDataItems0OtherData) MarshalBinary

func (o *CreateSmartDeviceOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSmartDeviceOKBodyDataItems0OtherData) UnmarshalBinary

func (o *CreateSmartDeviceOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSmartDeviceOKBodyDataItems0OtherData) Validate

Validate validates this create smart device o k body data items0 other data

type CreateSmartDeviceParams

type CreateSmartDeviceParams struct {

	// Authorization.
	Authorization *string

	// Body.
	Body CreateSmartDeviceBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateSmartDeviceParams contains all the parameters to send to the API endpoint

for the create smart device operation.

Typically these are written to a http.Request.

func NewCreateSmartDeviceParams

func NewCreateSmartDeviceParams() *CreateSmartDeviceParams

NewCreateSmartDeviceParams creates a new CreateSmartDeviceParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateSmartDeviceParamsWithContext

func NewCreateSmartDeviceParamsWithContext(ctx context.Context) *CreateSmartDeviceParams

NewCreateSmartDeviceParamsWithContext creates a new CreateSmartDeviceParams object with the ability to set a context for a request.

func NewCreateSmartDeviceParamsWithHTTPClient

func NewCreateSmartDeviceParamsWithHTTPClient(client *http.Client) *CreateSmartDeviceParams

NewCreateSmartDeviceParamsWithHTTPClient creates a new CreateSmartDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSmartDeviceParamsWithTimeout

func NewCreateSmartDeviceParamsWithTimeout(timeout time.Duration) *CreateSmartDeviceParams

NewCreateSmartDeviceParamsWithTimeout creates a new CreateSmartDeviceParams object with the ability to set a timeout on a request.

func (*CreateSmartDeviceParams) SetAuthorization

func (o *CreateSmartDeviceParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the create smart device params

func (*CreateSmartDeviceParams) SetBody

SetBody adds the body to the create smart device params

func (*CreateSmartDeviceParams) SetContext

func (o *CreateSmartDeviceParams) SetContext(ctx context.Context)

SetContext adds the context to the create smart device params

func (*CreateSmartDeviceParams) SetDefaults

func (o *CreateSmartDeviceParams) SetDefaults()

SetDefaults hydrates default values in the create smart device params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSmartDeviceParams) SetHTTPClient

func (o *CreateSmartDeviceParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create smart device params

func (*CreateSmartDeviceParams) SetTimeout

func (o *CreateSmartDeviceParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create smart device params

func (*CreateSmartDeviceParams) WithAuthorization

func (o *CreateSmartDeviceParams) WithAuthorization(authorization *string) *CreateSmartDeviceParams

WithAuthorization adds the authorization to the create smart device params

func (*CreateSmartDeviceParams) WithBody

WithBody adds the body to the create smart device params

func (*CreateSmartDeviceParams) WithContext

WithContext adds the context to the create smart device params

func (*CreateSmartDeviceParams) WithDefaults

WithDefaults hydrates default values in the create smart device params (not the query body).

All values with no default are reset to their zero value.

func (*CreateSmartDeviceParams) WithHTTPClient

func (o *CreateSmartDeviceParams) WithHTTPClient(client *http.Client) *CreateSmartDeviceParams

WithHTTPClient adds the HTTPClient to the create smart device params

func (*CreateSmartDeviceParams) WithTimeout

WithTimeout adds the timeout to the create smart device params

func (*CreateSmartDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSmartDeviceReader

type CreateSmartDeviceReader struct {
	// contains filtered or unexported fields
}

CreateSmartDeviceReader is a Reader for the CreateSmartDevice structure.

func (*CreateSmartDeviceReader) ReadResponse

func (o *CreateSmartDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSmartDeviceByIDOK

type GetSmartDeviceByIDOK struct {
	Payload *GetSmartDeviceByIDOKBody
}

GetSmartDeviceByIDOK describes a response with status code 200, with default header values.

GetSmartDeviceByIDOK get smart device by Id o k

func NewGetSmartDeviceByIDOK

func NewGetSmartDeviceByIDOK() *GetSmartDeviceByIDOK

NewGetSmartDeviceByIDOK creates a GetSmartDeviceByIDOK with default headers values

func (*GetSmartDeviceByIDOK) Code

func (o *GetSmartDeviceByIDOK) Code() int

Code gets the status code for the get smart device by Id o k response

func (*GetSmartDeviceByIDOK) Error

func (o *GetSmartDeviceByIDOK) Error() string

func (*GetSmartDeviceByIDOK) GetPayload

func (*GetSmartDeviceByIDOK) IsClientError

func (o *GetSmartDeviceByIDOK) IsClientError() bool

IsClientError returns true when this get smart device by Id o k response has a 4xx status code

func (*GetSmartDeviceByIDOK) IsCode

func (o *GetSmartDeviceByIDOK) IsCode(code int) bool

IsCode returns true when this get smart device by Id o k response a status code equal to that given

func (*GetSmartDeviceByIDOK) IsRedirect

func (o *GetSmartDeviceByIDOK) IsRedirect() bool

IsRedirect returns true when this get smart device by Id o k response has a 3xx status code

func (*GetSmartDeviceByIDOK) IsServerError

func (o *GetSmartDeviceByIDOK) IsServerError() bool

IsServerError returns true when this get smart device by Id o k response has a 5xx status code

func (*GetSmartDeviceByIDOK) IsSuccess

func (o *GetSmartDeviceByIDOK) IsSuccess() bool

IsSuccess returns true when this get smart device by Id o k response has a 2xx status code

func (*GetSmartDeviceByIDOK) String

func (o *GetSmartDeviceByIDOK) String() string

type GetSmartDeviceByIDOKBody

type GetSmartDeviceByIDOKBody struct {

	// data
	// Example: [{"alias":"ipsum","other_data":{"graph_color":"#b8e6b1","hardware_id":"H","local_key":"y"},"uuid":"8d4277f4-ff6e-4a4c-a90e-fef022276270"},{"alias":"fugit","other_data":{"graph_color":"#7eb1cc","hardware_id":",","local_key":"^"},"uuid":"4cce11a8-e496-43de-ac57-9fdb71044137"}]
	Data []*GetSmartDeviceByIDOKBodyDataItems0 `json:"data"`
}

GetSmartDeviceByIDOKBody get smart device by ID o k body // Example: {"data":[{"alias":"ipsum","other_data":{"graph_color":"#b8e6b1","hardware_id":"H","local_key":"y"},"uuid":"8d4277f4-ff6e-4a4c-a90e-fef022276270"},{"alias":"fugit","other_data":{"graph_color":"#7eb1cc","hardware_id":",","local_key":"^"},"uuid":"4cce11a8-e496-43de-ac57-9fdb71044137"}]} swagger:model GetSmartDeviceByIDOKBody

func (*GetSmartDeviceByIDOKBody) ContextValidate

func (o *GetSmartDeviceByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get smart device by ID o k body based on the context it is used

func (*GetSmartDeviceByIDOKBody) MarshalBinary

func (o *GetSmartDeviceByIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBody) UnmarshalBinary

func (o *GetSmartDeviceByIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBody) Validate

func (o *GetSmartDeviceByIDOKBody) Validate(formats strfmt.Registry) error

Validate validates this get smart device by ID o k body

type GetSmartDeviceByIDOKBodyDataItems0

type GetSmartDeviceByIDOKBodyDataItems0 struct {

	// alias
	// Example: ipsum
	Alias string `json:"alias,omitempty"`

	// other data
	OtherData *GetSmartDeviceByIDOKBodyDataItems0OtherData `json:"other_data,omitempty"`

	// uuid
	// Example: 8d4277f4-ff6e-4a4c-a90e-fef022276270
	UUID string `json:"uuid,omitempty"`
}

GetSmartDeviceByIDOKBodyDataItems0 get smart device by ID o k body data items0 swagger:model GetSmartDeviceByIDOKBodyDataItems0

func (*GetSmartDeviceByIDOKBodyDataItems0) ContextValidate

func (o *GetSmartDeviceByIDOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get smart device by ID o k body data items0 based on the context it is used

func (*GetSmartDeviceByIDOKBodyDataItems0) MarshalBinary

func (o *GetSmartDeviceByIDOKBodyDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBodyDataItems0) UnmarshalBinary

func (o *GetSmartDeviceByIDOKBodyDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBodyDataItems0) Validate

Validate validates this get smart device by ID o k body data items0

type GetSmartDeviceByIDOKBodyDataItems0OtherData

type GetSmartDeviceByIDOKBodyDataItems0OtherData struct {

	// graph color
	// Example: #b8e6b1
	GraphColor string `json:"graph_color,omitempty"`

	// hardware id
	// Example: H
	HardwareID string `json:"hardware_id,omitempty"`

	// local key
	// Example: y
	LocalKey string `json:"local_key,omitempty"`
}

GetSmartDeviceByIDOKBodyDataItems0OtherData get smart device by ID o k body data items0 other data swagger:model GetSmartDeviceByIDOKBodyDataItems0OtherData

func (*GetSmartDeviceByIDOKBodyDataItems0OtherData) ContextValidate

ContextValidate validates this get smart device by ID o k body data items0 other data based on context it is used

func (*GetSmartDeviceByIDOKBodyDataItems0OtherData) MarshalBinary

func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBodyDataItems0OtherData) UnmarshalBinary

func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSmartDeviceByIDOKBodyDataItems0OtherData) Validate

Validate validates this get smart device by ID o k body data items0 other data

type GetSmartDeviceByIDParams

type GetSmartDeviceByIDParams struct {

	// Authorization.
	Authorization *string

	/* SmartDeviceUUID.

	   The UUID of the smartDevice.
	*/
	SmartDeviceUUID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSmartDeviceByIDParams contains all the parameters to send to the API endpoint

for the get smart device by ID operation.

Typically these are written to a http.Request.

func NewGetSmartDeviceByIDParams

func NewGetSmartDeviceByIDParams() *GetSmartDeviceByIDParams

NewGetSmartDeviceByIDParams creates a new GetSmartDeviceByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSmartDeviceByIDParamsWithContext

func NewGetSmartDeviceByIDParamsWithContext(ctx context.Context) *GetSmartDeviceByIDParams

NewGetSmartDeviceByIDParamsWithContext creates a new GetSmartDeviceByIDParams object with the ability to set a context for a request.

func NewGetSmartDeviceByIDParamsWithHTTPClient

func NewGetSmartDeviceByIDParamsWithHTTPClient(client *http.Client) *GetSmartDeviceByIDParams

NewGetSmartDeviceByIDParamsWithHTTPClient creates a new GetSmartDeviceByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetSmartDeviceByIDParamsWithTimeout

func NewGetSmartDeviceByIDParamsWithTimeout(timeout time.Duration) *GetSmartDeviceByIDParams

NewGetSmartDeviceByIDParamsWithTimeout creates a new GetSmartDeviceByIDParams object with the ability to set a timeout on a request.

func (*GetSmartDeviceByIDParams) SetAuthorization

func (o *GetSmartDeviceByIDParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get smart device by ID params

func (*GetSmartDeviceByIDParams) SetContext

func (o *GetSmartDeviceByIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get smart device by ID params

func (*GetSmartDeviceByIDParams) SetDefaults

func (o *GetSmartDeviceByIDParams) SetDefaults()

SetDefaults hydrates default values in the get smart device by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetSmartDeviceByIDParams) SetHTTPClient

func (o *GetSmartDeviceByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get smart device by ID params

func (*GetSmartDeviceByIDParams) SetSmartDeviceUUID

func (o *GetSmartDeviceByIDParams) SetSmartDeviceUUID(smartDeviceUUID string)

SetSmartDeviceUUID adds the smartDeviceUuid to the get smart device by ID params

func (*GetSmartDeviceByIDParams) SetTimeout

func (o *GetSmartDeviceByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WithAuthorization

func (o *GetSmartDeviceByIDParams) WithAuthorization(authorization *string) *GetSmartDeviceByIDParams

WithAuthorization adds the authorization to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WithContext

WithContext adds the context to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WithDefaults

WithDefaults hydrates default values in the get smart device by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetSmartDeviceByIDParams) WithHTTPClient

func (o *GetSmartDeviceByIDParams) WithHTTPClient(client *http.Client) *GetSmartDeviceByIDParams

WithHTTPClient adds the HTTPClient to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WithSmartDeviceUUID

func (o *GetSmartDeviceByIDParams) WithSmartDeviceUUID(smartDeviceUUID string) *GetSmartDeviceByIDParams

WithSmartDeviceUUID adds the smartDeviceUUID to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WithTimeout

WithTimeout adds the timeout to the get smart device by ID params

func (*GetSmartDeviceByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSmartDeviceByIDReader

type GetSmartDeviceByIDReader struct {
	// contains filtered or unexported fields
}

GetSmartDeviceByIDReader is a Reader for the GetSmartDeviceByID structure.

func (*GetSmartDeviceByIDReader) ReadResponse

func (o *GetSmartDeviceByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSmartDeviceDataPointsByIDOK

type GetSmartDeviceDataPointsByIDOK struct {
	Payload *GetSmartDeviceDataPointsByIDOKBody
}

GetSmartDeviceDataPointsByIDOK describes a response with status code 200, with default header values.

GetSmartDeviceDataPointsByIDOK get smart device data points by Id o k

func NewGetSmartDeviceDataPointsByIDOK

func NewGetSmartDeviceDataPointsByIDOK() *GetSmartDeviceDataPointsByIDOK

NewGetSmartDeviceDataPointsByIDOK creates a GetSmartDeviceDataPointsByIDOK with default headers values

func (*GetSmartDeviceDataPointsByIDOK) Code

Code gets the status code for the get smart device data points by Id o k response

func (*GetSmartDeviceDataPointsByIDOK) Error

func (*GetSmartDeviceDataPointsByIDOK) GetPayload

func (*GetSmartDeviceDataPointsByIDOK) IsClientError

func (o *GetSmartDeviceDataPointsByIDOK) IsClientError() bool

IsClientError returns true when this get smart device data points by Id o k response has a 4xx status code

func (*GetSmartDeviceDataPointsByIDOK) IsCode

func (o *GetSmartDeviceDataPointsByIDOK) IsCode(code int) bool

IsCode returns true when this get smart device data points by Id o k response a status code equal to that given

func (*GetSmartDeviceDataPointsByIDOK) IsRedirect

func (o *GetSmartDeviceDataPointsByIDOK) IsRedirect() bool

IsRedirect returns true when this get smart device data points by Id o k response has a 3xx status code

func (*GetSmartDeviceDataPointsByIDOK) IsServerError

func (o *GetSmartDeviceDataPointsByIDOK) IsServerError() bool

IsServerError returns true when this get smart device data points by Id o k response has a 5xx status code

func (*GetSmartDeviceDataPointsByIDOK) IsSuccess

func (o *GetSmartDeviceDataPointsByIDOK) IsSuccess() bool

IsSuccess returns true when this get smart device data points by Id o k response has a 2xx status code

func (*GetSmartDeviceDataPointsByIDOK) String

type GetSmartDeviceDataPointsByIDOKBody

type GetSmartDeviceDataPointsByIDOKBody struct {

	// data
	// Example: [{"power":509,"time":"1987-04-16T18:03:05Z"},{"power":431,"time":"2016-05-03T04:07:01Z"}]
	Data []*GetSmartDeviceDataPointsByIDOKBodyDataItems0 `json:"data"`
}

GetSmartDeviceDataPointsByIDOKBody get smart device data points by ID o k body // Example: {"data":[{"power":509,"time":"1987-04-16T18:03:05Z"},{"power":431,"time":"2016-05-03T04:07:01Z"}]} swagger:model GetSmartDeviceDataPointsByIDOKBody

func (*GetSmartDeviceDataPointsByIDOKBody) ContextValidate

func (o *GetSmartDeviceDataPointsByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get smart device data points by ID o k body based on the context it is used

func (*GetSmartDeviceDataPointsByIDOKBody) MarshalBinary

func (o *GetSmartDeviceDataPointsByIDOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetSmartDeviceDataPointsByIDOKBody) UnmarshalBinary

func (o *GetSmartDeviceDataPointsByIDOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetSmartDeviceDataPointsByIDOKBody) Validate

Validate validates this get smart device data points by ID o k body

type GetSmartDeviceDataPointsByIDOKBodyDataItems0

type GetSmartDeviceDataPointsByIDOKBodyDataItems0 struct {

	// power
	// Example: 509
	Power int64 `json:"power,omitempty"`

	// time
	// Example: 1987-04-16T18:03:05Z
	Time string `json:"time,omitempty"`
}

GetSmartDeviceDataPointsByIDOKBodyDataItems0 get smart device data points by ID o k body data items0 swagger:model GetSmartDeviceDataPointsByIDOKBodyDataItems0

func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) ContextValidate

ContextValidate validates this get smart device data points by ID o k body data items0 based on context it is used

func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) Validate

Validate validates this get smart device data points by ID o k body data items0

type GetSmartDeviceDataPointsByIDParams

type GetSmartDeviceDataPointsByIDParams struct {

	// Authorization.
	Authorization *string

	/* Page.

	   Page number to return
	*/
	Page *int64

	/* PageSize.

	   Number of items to return in a page. Defaults to 15
	*/
	PageSize *int64

	/* SmartDeviceUUID.

	   The UUID of the smartDevice.
	*/
	SmartDeviceUUID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSmartDeviceDataPointsByIDParams contains all the parameters to send to the API endpoint

for the get smart device data points by ID operation.

Typically these are written to a http.Request.

func NewGetSmartDeviceDataPointsByIDParams

func NewGetSmartDeviceDataPointsByIDParams() *GetSmartDeviceDataPointsByIDParams

NewGetSmartDeviceDataPointsByIDParams creates a new GetSmartDeviceDataPointsByIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSmartDeviceDataPointsByIDParamsWithContext

func NewGetSmartDeviceDataPointsByIDParamsWithContext(ctx context.Context) *GetSmartDeviceDataPointsByIDParams

NewGetSmartDeviceDataPointsByIDParamsWithContext creates a new GetSmartDeviceDataPointsByIDParams object with the ability to set a context for a request.

func NewGetSmartDeviceDataPointsByIDParamsWithHTTPClient

func NewGetSmartDeviceDataPointsByIDParamsWithHTTPClient(client *http.Client) *GetSmartDeviceDataPointsByIDParams

NewGetSmartDeviceDataPointsByIDParamsWithHTTPClient creates a new GetSmartDeviceDataPointsByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetSmartDeviceDataPointsByIDParamsWithTimeout

func NewGetSmartDeviceDataPointsByIDParamsWithTimeout(timeout time.Duration) *GetSmartDeviceDataPointsByIDParams

NewGetSmartDeviceDataPointsByIDParamsWithTimeout creates a new GetSmartDeviceDataPointsByIDParams object with the ability to set a timeout on a request.

func (*GetSmartDeviceDataPointsByIDParams) SetAuthorization

func (o *GetSmartDeviceDataPointsByIDParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetContext

SetContext adds the context to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetDefaults

func (o *GetSmartDeviceDataPointsByIDParams) SetDefaults()

SetDefaults hydrates default values in the get smart device data points by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetSmartDeviceDataPointsByIDParams) SetHTTPClient

func (o *GetSmartDeviceDataPointsByIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetPage

func (o *GetSmartDeviceDataPointsByIDParams) SetPage(page *int64)

SetPage adds the page to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetPageSize

func (o *GetSmartDeviceDataPointsByIDParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetSmartDeviceUUID

func (o *GetSmartDeviceDataPointsByIDParams) SetSmartDeviceUUID(smartDeviceUUID string)

SetSmartDeviceUUID adds the smartDeviceUuid to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) SetTimeout

func (o *GetSmartDeviceDataPointsByIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithAuthorization

WithAuthorization adds the authorization to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithContext

WithContext adds the context to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithDefaults

WithDefaults hydrates default values in the get smart device data points by ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetSmartDeviceDataPointsByIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithPage

WithPage adds the page to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithPageSize

WithPageSize adds the pageSize to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithSmartDeviceUUID

func (o *GetSmartDeviceDataPointsByIDParams) WithSmartDeviceUUID(smartDeviceUUID string) *GetSmartDeviceDataPointsByIDParams

WithSmartDeviceUUID adds the smartDeviceUUID to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WithTimeout

WithTimeout adds the timeout to the get smart device data points by ID params

func (*GetSmartDeviceDataPointsByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSmartDeviceDataPointsByIDReader

type GetSmartDeviceDataPointsByIDReader struct {
	// contains filtered or unexported fields
}

GetSmartDeviceDataPointsByIDReader is a Reader for the GetSmartDeviceDataPointsByID structure.

func (*GetSmartDeviceDataPointsByIDReader) ReadResponse

func (o *GetSmartDeviceDataPointsByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetYourSmartDevicesOK

type GetYourSmartDevicesOK struct {
	Payload *GetYourSmartDevicesOKBody
}

GetYourSmartDevicesOK describes a response with status code 200, with default header values.

GetYourSmartDevicesOK get your smart devices o k

func NewGetYourSmartDevicesOK

func NewGetYourSmartDevicesOK() *GetYourSmartDevicesOK

NewGetYourSmartDevicesOK creates a GetYourSmartDevicesOK with default headers values

func (*GetYourSmartDevicesOK) Code

func (o *GetYourSmartDevicesOK) Code() int

Code gets the status code for the get your smart devices o k response

func (*GetYourSmartDevicesOK) Error

func (o *GetYourSmartDevicesOK) Error() string

func (*GetYourSmartDevicesOK) GetPayload

func (*GetYourSmartDevicesOK) IsClientError

func (o *GetYourSmartDevicesOK) IsClientError() bool

IsClientError returns true when this get your smart devices o k response has a 4xx status code

func (*GetYourSmartDevicesOK) IsCode

func (o *GetYourSmartDevicesOK) IsCode(code int) bool

IsCode returns true when this get your smart devices o k response a status code equal to that given

func (*GetYourSmartDevicesOK) IsRedirect

func (o *GetYourSmartDevicesOK) IsRedirect() bool

IsRedirect returns true when this get your smart devices o k response has a 3xx status code

func (*GetYourSmartDevicesOK) IsServerError

func (o *GetYourSmartDevicesOK) IsServerError() bool

IsServerError returns true when this get your smart devices o k response has a 5xx status code

func (*GetYourSmartDevicesOK) IsSuccess

func (o *GetYourSmartDevicesOK) IsSuccess() bool

IsSuccess returns true when this get your smart devices o k response has a 2xx status code

func (*GetYourSmartDevicesOK) String

func (o *GetYourSmartDevicesOK) String() string

type GetYourSmartDevicesOKBody

type GetYourSmartDevicesOKBody struct {

	// data
	// Example: [{"alias":"veniam","other_data":{"graph_color":"#f0c27c","hardware_id":"P","local_key":"J"},"uuid":"0d8968ca-f418-4bbd-af21-2bde7613614b"},{"alias":"nostrum","other_data":{"graph_color":"#608742","hardware_id":"_","local_key":")"},"uuid":"d6032cf8-cbe7-4fbb-a710-c63fd9f6dae6"}]
	Data []*GetYourSmartDevicesOKBodyDataItems0 `json:"data"`
}

GetYourSmartDevicesOKBody get your smart devices o k body // Example: {"data":[{"alias":"veniam","other_data":{"graph_color":"#f0c27c","hardware_id":"P","local_key":"J"},"uuid":"0d8968ca-f418-4bbd-af21-2bde7613614b"},{"alias":"nostrum","other_data":{"graph_color":"#608742","hardware_id":"_","local_key":")"},"uuid":"d6032cf8-cbe7-4fbb-a710-c63fd9f6dae6"}]} swagger:model GetYourSmartDevicesOKBody

func (*GetYourSmartDevicesOKBody) ContextValidate

func (o *GetYourSmartDevicesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get your smart devices o k body based on the context it is used

func (*GetYourSmartDevicesOKBody) MarshalBinary

func (o *GetYourSmartDevicesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetYourSmartDevicesOKBody) UnmarshalBinary

func (o *GetYourSmartDevicesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetYourSmartDevicesOKBody) Validate

func (o *GetYourSmartDevicesOKBody) Validate(formats strfmt.Registry) error

Validate validates this get your smart devices o k body

type GetYourSmartDevicesOKBodyDataItems0

type GetYourSmartDevicesOKBodyDataItems0 struct {

	// alias
	// Example: veniam
	Alias string `json:"alias,omitempty"`

	// other data
	OtherData *GetYourSmartDevicesOKBodyDataItems0OtherData `json:"other_data,omitempty"`

	// uuid
	// Example: 0d8968ca-f418-4bbd-af21-2bde7613614b
	UUID string `json:"uuid,omitempty"`
}

GetYourSmartDevicesOKBodyDataItems0 get your smart devices o k body data items0 swagger:model GetYourSmartDevicesOKBodyDataItems0

func (*GetYourSmartDevicesOKBodyDataItems0) ContextValidate

func (o *GetYourSmartDevicesOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get your smart devices o k body data items0 based on the context it is used

func (*GetYourSmartDevicesOKBodyDataItems0) MarshalBinary

func (o *GetYourSmartDevicesOKBodyDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetYourSmartDevicesOKBodyDataItems0) UnmarshalBinary

func (o *GetYourSmartDevicesOKBodyDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetYourSmartDevicesOKBodyDataItems0) Validate

Validate validates this get your smart devices o k body data items0

type GetYourSmartDevicesOKBodyDataItems0OtherData

type GetYourSmartDevicesOKBodyDataItems0OtherData struct {

	// graph color
	// Example: #f0c27c
	GraphColor string `json:"graph_color,omitempty"`

	// hardware id
	// Example: P
	HardwareID string `json:"hardware_id,omitempty"`

	// local key
	// Example: J
	LocalKey string `json:"local_key,omitempty"`
}

GetYourSmartDevicesOKBodyDataItems0OtherData get your smart devices o k body data items0 other data swagger:model GetYourSmartDevicesOKBodyDataItems0OtherData

func (*GetYourSmartDevicesOKBodyDataItems0OtherData) ContextValidate

ContextValidate validates this get your smart devices o k body data items0 other data based on context it is used

func (*GetYourSmartDevicesOKBodyDataItems0OtherData) MarshalBinary

MarshalBinary interface implementation

func (*GetYourSmartDevicesOKBodyDataItems0OtherData) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetYourSmartDevicesOKBodyDataItems0OtherData) Validate

Validate validates this get your smart devices o k body data items0 other data

type GetYourSmartDevicesParams

type GetYourSmartDevicesParams struct {

	// Authorization.
	Authorization *string

	/* Page.

	   Page number to return
	*/
	Page *int64

	/* PageSize.

	   Number of items to return in a page. Defaults to 15
	*/
	PageSize *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetYourSmartDevicesParams contains all the parameters to send to the API endpoint

for the get your smart devices operation.

Typically these are written to a http.Request.

func NewGetYourSmartDevicesParams

func NewGetYourSmartDevicesParams() *GetYourSmartDevicesParams

NewGetYourSmartDevicesParams creates a new GetYourSmartDevicesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetYourSmartDevicesParamsWithContext

func NewGetYourSmartDevicesParamsWithContext(ctx context.Context) *GetYourSmartDevicesParams

NewGetYourSmartDevicesParamsWithContext creates a new GetYourSmartDevicesParams object with the ability to set a context for a request.

func NewGetYourSmartDevicesParamsWithHTTPClient

func NewGetYourSmartDevicesParamsWithHTTPClient(client *http.Client) *GetYourSmartDevicesParams

NewGetYourSmartDevicesParamsWithHTTPClient creates a new GetYourSmartDevicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetYourSmartDevicesParamsWithTimeout

func NewGetYourSmartDevicesParamsWithTimeout(timeout time.Duration) *GetYourSmartDevicesParams

NewGetYourSmartDevicesParamsWithTimeout creates a new GetYourSmartDevicesParams object with the ability to set a timeout on a request.

func (*GetYourSmartDevicesParams) SetAuthorization

func (o *GetYourSmartDevicesParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get your smart devices params

func (*GetYourSmartDevicesParams) SetContext

func (o *GetYourSmartDevicesParams) SetContext(ctx context.Context)

SetContext adds the context to the get your smart devices params

func (*GetYourSmartDevicesParams) SetDefaults

func (o *GetYourSmartDevicesParams) SetDefaults()

SetDefaults hydrates default values in the get your smart devices params (not the query body).

All values with no default are reset to their zero value.

func (*GetYourSmartDevicesParams) SetHTTPClient

func (o *GetYourSmartDevicesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get your smart devices params

func (*GetYourSmartDevicesParams) SetPage

func (o *GetYourSmartDevicesParams) SetPage(page *int64)

SetPage adds the page to the get your smart devices params

func (*GetYourSmartDevicesParams) SetPageSize

func (o *GetYourSmartDevicesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get your smart devices params

func (*GetYourSmartDevicesParams) SetTimeout

func (o *GetYourSmartDevicesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get your smart devices params

func (*GetYourSmartDevicesParams) WithAuthorization

func (o *GetYourSmartDevicesParams) WithAuthorization(authorization *string) *GetYourSmartDevicesParams

WithAuthorization adds the authorization to the get your smart devices params

func (*GetYourSmartDevicesParams) WithContext

WithContext adds the context to the get your smart devices params

func (*GetYourSmartDevicesParams) WithDefaults

WithDefaults hydrates default values in the get your smart devices params (not the query body).

All values with no default are reset to their zero value.

func (*GetYourSmartDevicesParams) WithHTTPClient

func (o *GetYourSmartDevicesParams) WithHTTPClient(client *http.Client) *GetYourSmartDevicesParams

WithHTTPClient adds the HTTPClient to the get your smart devices params

func (*GetYourSmartDevicesParams) WithPage

WithPage adds the page to the get your smart devices params

func (*GetYourSmartDevicesParams) WithPageSize

func (o *GetYourSmartDevicesParams) WithPageSize(pageSize *int64) *GetYourSmartDevicesParams

WithPageSize adds the pageSize to the get your smart devices params

func (*GetYourSmartDevicesParams) WithTimeout

WithTimeout adds the timeout to the get your smart devices params

func (*GetYourSmartDevicesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetYourSmartDevicesReader

type GetYourSmartDevicesReader struct {
	// contains filtered or unexported fields
}

GetYourSmartDevicesReader is a Reader for the GetYourSmartDevices structure.

func (*GetYourSmartDevicesReader) ReadResponse

func (o *GetYourSmartDevicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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