Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateSmartDevice(params *CreateSmartDeviceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSmartDeviceOK, error)
- func (a *Client) CreateSmartDeviceDataPoint(params *CreateSmartDeviceDataPointParams, ...) (*CreateSmartDeviceDataPointOK, error)
- func (a *Client) GetSmartDeviceByID(params *GetSmartDeviceByIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSmartDeviceByIDOK, error)
- func (a *Client) GetSmartDeviceDataPointsByID(params *GetSmartDeviceDataPointsByIDParams, ...) (*GetSmartDeviceDataPointsByIDOK, error)
- func (a *Client) GetYourSmartDevices(params *GetYourSmartDevicesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetYourSmartDevicesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateSmartDeviceBody
- type CreateSmartDeviceDataPointBody
- func (o *CreateSmartDeviceDataPointBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceDataPointBody) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceDataPointBody) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceDataPointBody) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceDataPointOK
- func (o *CreateSmartDeviceDataPointOK) Code() int
- func (o *CreateSmartDeviceDataPointOK) Error() string
- func (o *CreateSmartDeviceDataPointOK) GetPayload() *CreateSmartDeviceDataPointOKBody
- func (o *CreateSmartDeviceDataPointOK) IsClientError() bool
- func (o *CreateSmartDeviceDataPointOK) IsCode(code int) bool
- func (o *CreateSmartDeviceDataPointOK) IsRedirect() bool
- func (o *CreateSmartDeviceDataPointOK) IsServerError() bool
- func (o *CreateSmartDeviceDataPointOK) IsSuccess() bool
- func (o *CreateSmartDeviceDataPointOK) String() string
- type CreateSmartDeviceDataPointOKBody
- func (o *CreateSmartDeviceDataPointOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceDataPointOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceDataPointOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceDataPointOKBody) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceDataPointOKBodyDataItems0
- func (o *CreateSmartDeviceDataPointOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceDataPointOKBodyDataItems0) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceDataPointOKBodyDataItems0) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceDataPointOKBodyDataItems0) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceDataPointParams
- func NewCreateSmartDeviceDataPointParams() *CreateSmartDeviceDataPointParams
- func NewCreateSmartDeviceDataPointParamsWithContext(ctx context.Context) *CreateSmartDeviceDataPointParams
- func NewCreateSmartDeviceDataPointParamsWithHTTPClient(client *http.Client) *CreateSmartDeviceDataPointParams
- func NewCreateSmartDeviceDataPointParamsWithTimeout(timeout time.Duration) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) SetAuthorization(authorization *string)
- func (o *CreateSmartDeviceDataPointParams) SetBody(body CreateSmartDeviceDataPointBody)
- func (o *CreateSmartDeviceDataPointParams) SetContext(ctx context.Context)
- func (o *CreateSmartDeviceDataPointParams) SetDefaults()
- func (o *CreateSmartDeviceDataPointParams) SetHTTPClient(client *http.Client)
- func (o *CreateSmartDeviceDataPointParams) SetSmartDeviceUUID(smartDeviceUUID string)
- func (o *CreateSmartDeviceDataPointParams) SetTimeout(timeout time.Duration)
- func (o *CreateSmartDeviceDataPointParams) WithAuthorization(authorization *string) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithBody(body CreateSmartDeviceDataPointBody) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithContext(ctx context.Context) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithDefaults() *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithHTTPClient(client *http.Client) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithSmartDeviceUUID(smartDeviceUUID string) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WithTimeout(timeout time.Duration) *CreateSmartDeviceDataPointParams
- func (o *CreateSmartDeviceDataPointParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSmartDeviceDataPointReader
- type CreateSmartDeviceOK
- func (o *CreateSmartDeviceOK) Code() int
- func (o *CreateSmartDeviceOK) Error() string
- func (o *CreateSmartDeviceOK) GetPayload() *CreateSmartDeviceOKBody
- func (o *CreateSmartDeviceOK) IsClientError() bool
- func (o *CreateSmartDeviceOK) IsCode(code int) bool
- func (o *CreateSmartDeviceOK) IsRedirect() bool
- func (o *CreateSmartDeviceOK) IsServerError() bool
- func (o *CreateSmartDeviceOK) IsSuccess() bool
- func (o *CreateSmartDeviceOK) String() string
- type CreateSmartDeviceOKBody
- func (o *CreateSmartDeviceOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceOKBody) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceOKBody) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceOKBody) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceOKBodyDataItems0
- func (o *CreateSmartDeviceOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceOKBodyDataItems0) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceOKBodyDataItems0) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceOKBodyDataItems0) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceOKBodyDataItems0OtherData
- func (o *CreateSmartDeviceOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateSmartDeviceOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)
- func (o *CreateSmartDeviceOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error
- func (o *CreateSmartDeviceOKBodyDataItems0OtherData) Validate(formats strfmt.Registry) error
- type CreateSmartDeviceParams
- func NewCreateSmartDeviceParams() *CreateSmartDeviceParams
- func NewCreateSmartDeviceParamsWithContext(ctx context.Context) *CreateSmartDeviceParams
- func NewCreateSmartDeviceParamsWithHTTPClient(client *http.Client) *CreateSmartDeviceParams
- func NewCreateSmartDeviceParamsWithTimeout(timeout time.Duration) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) SetAuthorization(authorization *string)
- func (o *CreateSmartDeviceParams) SetBody(body CreateSmartDeviceBody)
- func (o *CreateSmartDeviceParams) SetContext(ctx context.Context)
- func (o *CreateSmartDeviceParams) SetDefaults()
- func (o *CreateSmartDeviceParams) SetHTTPClient(client *http.Client)
- func (o *CreateSmartDeviceParams) SetTimeout(timeout time.Duration)
- func (o *CreateSmartDeviceParams) WithAuthorization(authorization *string) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WithBody(body CreateSmartDeviceBody) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WithContext(ctx context.Context) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WithDefaults() *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WithHTTPClient(client *http.Client) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WithTimeout(timeout time.Duration) *CreateSmartDeviceParams
- func (o *CreateSmartDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSmartDeviceReader
- type GetSmartDeviceByIDOK
- func (o *GetSmartDeviceByIDOK) Code() int
- func (o *GetSmartDeviceByIDOK) Error() string
- func (o *GetSmartDeviceByIDOK) GetPayload() *GetSmartDeviceByIDOKBody
- func (o *GetSmartDeviceByIDOK) IsClientError() bool
- func (o *GetSmartDeviceByIDOK) IsCode(code int) bool
- func (o *GetSmartDeviceByIDOK) IsRedirect() bool
- func (o *GetSmartDeviceByIDOK) IsServerError() bool
- func (o *GetSmartDeviceByIDOK) IsSuccess() bool
- func (o *GetSmartDeviceByIDOK) String() string
- type GetSmartDeviceByIDOKBody
- func (o *GetSmartDeviceByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetSmartDeviceByIDOKBody) MarshalBinary() ([]byte, error)
- func (o *GetSmartDeviceByIDOKBody) UnmarshalBinary(b []byte) error
- func (o *GetSmartDeviceByIDOKBody) Validate(formats strfmt.Registry) error
- type GetSmartDeviceByIDOKBodyDataItems0
- func (o *GetSmartDeviceByIDOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetSmartDeviceByIDOKBodyDataItems0) MarshalBinary() ([]byte, error)
- func (o *GetSmartDeviceByIDOKBodyDataItems0) UnmarshalBinary(b []byte) error
- func (o *GetSmartDeviceByIDOKBodyDataItems0) Validate(formats strfmt.Registry) error
- type GetSmartDeviceByIDOKBodyDataItems0OtherData
- func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)
- func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error
- func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) Validate(formats strfmt.Registry) error
- type GetSmartDeviceByIDParams
- func NewGetSmartDeviceByIDParams() *GetSmartDeviceByIDParams
- func NewGetSmartDeviceByIDParamsWithContext(ctx context.Context) *GetSmartDeviceByIDParams
- func NewGetSmartDeviceByIDParamsWithHTTPClient(client *http.Client) *GetSmartDeviceByIDParams
- func NewGetSmartDeviceByIDParamsWithTimeout(timeout time.Duration) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) SetAuthorization(authorization *string)
- func (o *GetSmartDeviceByIDParams) SetContext(ctx context.Context)
- func (o *GetSmartDeviceByIDParams) SetDefaults()
- func (o *GetSmartDeviceByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetSmartDeviceByIDParams) SetSmartDeviceUUID(smartDeviceUUID string)
- func (o *GetSmartDeviceByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetSmartDeviceByIDParams) WithAuthorization(authorization *string) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WithContext(ctx context.Context) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WithDefaults() *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WithHTTPClient(client *http.Client) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WithSmartDeviceUUID(smartDeviceUUID string) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WithTimeout(timeout time.Duration) *GetSmartDeviceByIDParams
- func (o *GetSmartDeviceByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSmartDeviceByIDReader
- type GetSmartDeviceDataPointsByIDOK
- func (o *GetSmartDeviceDataPointsByIDOK) Code() int
- func (o *GetSmartDeviceDataPointsByIDOK) Error() string
- func (o *GetSmartDeviceDataPointsByIDOK) GetPayload() *GetSmartDeviceDataPointsByIDOKBody
- func (o *GetSmartDeviceDataPointsByIDOK) IsClientError() bool
- func (o *GetSmartDeviceDataPointsByIDOK) IsCode(code int) bool
- func (o *GetSmartDeviceDataPointsByIDOK) IsRedirect() bool
- func (o *GetSmartDeviceDataPointsByIDOK) IsServerError() bool
- func (o *GetSmartDeviceDataPointsByIDOK) IsSuccess() bool
- func (o *GetSmartDeviceDataPointsByIDOK) String() string
- type GetSmartDeviceDataPointsByIDOKBody
- func (o *GetSmartDeviceDataPointsByIDOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetSmartDeviceDataPointsByIDOKBody) MarshalBinary() ([]byte, error)
- func (o *GetSmartDeviceDataPointsByIDOKBody) UnmarshalBinary(b []byte) error
- func (o *GetSmartDeviceDataPointsByIDOKBody) Validate(formats strfmt.Registry) error
- type GetSmartDeviceDataPointsByIDOKBodyDataItems0
- func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) MarshalBinary() ([]byte, error)
- func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) UnmarshalBinary(b []byte) error
- func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) Validate(formats strfmt.Registry) error
- type GetSmartDeviceDataPointsByIDParams
- func NewGetSmartDeviceDataPointsByIDParams() *GetSmartDeviceDataPointsByIDParams
- func NewGetSmartDeviceDataPointsByIDParamsWithContext(ctx context.Context) *GetSmartDeviceDataPointsByIDParams
- func NewGetSmartDeviceDataPointsByIDParamsWithHTTPClient(client *http.Client) *GetSmartDeviceDataPointsByIDParams
- func NewGetSmartDeviceDataPointsByIDParamsWithTimeout(timeout time.Duration) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) SetAuthorization(authorization *string)
- func (o *GetSmartDeviceDataPointsByIDParams) SetContext(ctx context.Context)
- func (o *GetSmartDeviceDataPointsByIDParams) SetDefaults()
- func (o *GetSmartDeviceDataPointsByIDParams) SetHTTPClient(client *http.Client)
- func (o *GetSmartDeviceDataPointsByIDParams) SetPage(page *int64)
- func (o *GetSmartDeviceDataPointsByIDParams) SetPageSize(pageSize *int64)
- func (o *GetSmartDeviceDataPointsByIDParams) SetSmartDeviceUUID(smartDeviceUUID string)
- func (o *GetSmartDeviceDataPointsByIDParams) SetTimeout(timeout time.Duration)
- func (o *GetSmartDeviceDataPointsByIDParams) WithAuthorization(authorization *string) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithContext(ctx context.Context) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithDefaults() *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithHTTPClient(client *http.Client) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithPage(page *int64) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithPageSize(pageSize *int64) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithSmartDeviceUUID(smartDeviceUUID string) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WithTimeout(timeout time.Duration) *GetSmartDeviceDataPointsByIDParams
- func (o *GetSmartDeviceDataPointsByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSmartDeviceDataPointsByIDReader
- type GetYourSmartDevicesOK
- func (o *GetYourSmartDevicesOK) Code() int
- func (o *GetYourSmartDevicesOK) Error() string
- func (o *GetYourSmartDevicesOK) GetPayload() *GetYourSmartDevicesOKBody
- func (o *GetYourSmartDevicesOK) IsClientError() bool
- func (o *GetYourSmartDevicesOK) IsCode(code int) bool
- func (o *GetYourSmartDevicesOK) IsRedirect() bool
- func (o *GetYourSmartDevicesOK) IsServerError() bool
- func (o *GetYourSmartDevicesOK) IsSuccess() bool
- func (o *GetYourSmartDevicesOK) String() string
- type GetYourSmartDevicesOKBody
- func (o *GetYourSmartDevicesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetYourSmartDevicesOKBody) MarshalBinary() ([]byte, error)
- func (o *GetYourSmartDevicesOKBody) UnmarshalBinary(b []byte) error
- func (o *GetYourSmartDevicesOKBody) Validate(formats strfmt.Registry) error
- type GetYourSmartDevicesOKBodyDataItems0
- func (o *GetYourSmartDevicesOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetYourSmartDevicesOKBodyDataItems0) MarshalBinary() ([]byte, error)
- func (o *GetYourSmartDevicesOKBodyDataItems0) UnmarshalBinary(b []byte) error
- func (o *GetYourSmartDevicesOKBodyDataItems0) Validate(formats strfmt.Registry) error
- type GetYourSmartDevicesOKBodyDataItems0OtherData
- func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)
- func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error
- func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) Validate(formats strfmt.Registry) error
- type GetYourSmartDevicesParams
- func NewGetYourSmartDevicesParams() *GetYourSmartDevicesParams
- func NewGetYourSmartDevicesParamsWithContext(ctx context.Context) *GetYourSmartDevicesParams
- func NewGetYourSmartDevicesParamsWithHTTPClient(client *http.Client) *GetYourSmartDevicesParams
- func NewGetYourSmartDevicesParamsWithTimeout(timeout time.Duration) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) SetAuthorization(authorization *string)
- func (o *GetYourSmartDevicesParams) SetContext(ctx context.Context)
- func (o *GetYourSmartDevicesParams) SetDefaults()
- func (o *GetYourSmartDevicesParams) SetHTTPClient(client *http.Client)
- func (o *GetYourSmartDevicesParams) SetPage(page *int64)
- func (o *GetYourSmartDevicesParams) SetPageSize(pageSize *int64)
- func (o *GetYourSmartDevicesParams) SetTimeout(timeout time.Duration)
- func (o *GetYourSmartDevicesParams) WithAuthorization(authorization *string) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithContext(ctx context.Context) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithDefaults() *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithHTTPClient(client *http.Client) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithPage(page *int64) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithPageSize(pageSize *int64) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WithTimeout(timeout time.Duration) *GetYourSmartDevicesParams
- func (o *GetYourSmartDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetYourSmartDevicesReader
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 ¶
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
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
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 ¶
func (o *CreateSmartDeviceDataPointOK) Code() int
Code gets the status code for the create smart device data point o k response
func (*CreateSmartDeviceDataPointOK) Error ¶
func (o *CreateSmartDeviceDataPointOK) Error() string
func (*CreateSmartDeviceDataPointOK) GetPayload ¶
func (o *CreateSmartDeviceDataPointOK) GetPayload() *CreateSmartDeviceDataPointOKBody
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 ¶
func (o *CreateSmartDeviceDataPointOK) String() 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
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 ¶
func (o *CreateSmartDeviceDataPointOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *CreateSmartDeviceDataPointParams) SetBody(body CreateSmartDeviceDataPointBody)
SetBody adds the body to the create smart device data point params
func (*CreateSmartDeviceDataPointParams) SetContext ¶
func (o *CreateSmartDeviceDataPointParams) SetContext(ctx context.Context)
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 ¶
func (o *CreateSmartDeviceDataPointParams) WithBody(body CreateSmartDeviceDataPointBody) *CreateSmartDeviceDataPointParams
WithBody adds the body to the create smart device data point params
func (*CreateSmartDeviceDataPointParams) WithContext ¶
func (o *CreateSmartDeviceDataPointParams) WithContext(ctx context.Context) *CreateSmartDeviceDataPointParams
WithContext adds the context to the create smart device data point params
func (*CreateSmartDeviceDataPointParams) WithDefaults ¶
func (o *CreateSmartDeviceDataPointParams) WithDefaults() *CreateSmartDeviceDataPointParams
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 ¶
func (o *CreateSmartDeviceDataPointParams) WithHTTPClient(client *http.Client) *CreateSmartDeviceDataPointParams
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 ¶
func (o *CreateSmartDeviceDataPointParams) WithTimeout(timeout time.Duration) *CreateSmartDeviceDataPointParams
WithTimeout adds the timeout to the create smart device data point params
func (*CreateSmartDeviceDataPointParams) WriteToRequest ¶
func (o *CreateSmartDeviceDataPointParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *CreateSmartDeviceOK) GetPayload() *CreateSmartDeviceOKBody
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
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
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 ¶
func (o *CreateSmartDeviceOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *CreateSmartDeviceParams) SetBody(body CreateSmartDeviceBody)
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 ¶
func (o *CreateSmartDeviceParams) WithBody(body CreateSmartDeviceBody) *CreateSmartDeviceParams
WithBody adds the body to the create smart device params
func (*CreateSmartDeviceParams) WithContext ¶
func (o *CreateSmartDeviceParams) WithContext(ctx context.Context) *CreateSmartDeviceParams
WithContext adds the context to the create smart device params
func (*CreateSmartDeviceParams) WithDefaults ¶
func (o *CreateSmartDeviceParams) WithDefaults() *CreateSmartDeviceParams
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 ¶
func (o *CreateSmartDeviceParams) WithTimeout(timeout time.Duration) *CreateSmartDeviceParams
WithTimeout adds the timeout to the create smart device params
func (*CreateSmartDeviceParams) WriteToRequest ¶
func (o *CreateSmartDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetSmartDeviceByIDOK) GetPayload() *GetSmartDeviceByIDOKBody
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
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
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 ¶
func (o *GetSmartDeviceByIDOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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 ¶
func (o *GetSmartDeviceByIDParams) WithContext(ctx context.Context) *GetSmartDeviceByIDParams
WithContext adds the context to the get smart device by ID params
func (*GetSmartDeviceByIDParams) WithDefaults ¶
func (o *GetSmartDeviceByIDParams) WithDefaults() *GetSmartDeviceByIDParams
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 ¶
func (o *GetSmartDeviceByIDParams) WithTimeout(timeout time.Duration) *GetSmartDeviceByIDParams
WithTimeout adds the timeout to the get smart device by ID params
func (*GetSmartDeviceByIDParams) WriteToRequest ¶
func (o *GetSmartDeviceByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetSmartDeviceDataPointsByIDOK) Code() int
Code gets the status code for the get smart device data points by Id o k response
func (*GetSmartDeviceDataPointsByIDOK) Error ¶
func (o *GetSmartDeviceDataPointsByIDOK) Error() string
func (*GetSmartDeviceDataPointsByIDOK) GetPayload ¶
func (o *GetSmartDeviceDataPointsByIDOK) GetPayload() *GetSmartDeviceDataPointsByIDOKBody
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 ¶
func (o *GetSmartDeviceDataPointsByIDOK) String() 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
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 ¶
func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get smart device data points by ID o k body data items0 based on context it is used
func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) MarshalBinary ¶
func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSmartDeviceDataPointsByIDOKBodyDataItems0) UnmarshalBinary ¶
func (o *GetSmartDeviceDataPointsByIDOKBodyDataItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *GetSmartDeviceDataPointsByIDParams) SetContext(ctx context.Context)
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 ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithAuthorization(authorization *string) *GetSmartDeviceDataPointsByIDParams
WithAuthorization adds the authorization to the get smart device data points by ID params
func (*GetSmartDeviceDataPointsByIDParams) WithContext ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithContext(ctx context.Context) *GetSmartDeviceDataPointsByIDParams
WithContext adds the context to the get smart device data points by ID params
func (*GetSmartDeviceDataPointsByIDParams) WithDefaults ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithDefaults() *GetSmartDeviceDataPointsByIDParams
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 ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithHTTPClient(client *http.Client) *GetSmartDeviceDataPointsByIDParams
WithHTTPClient adds the HTTPClient to the get smart device data points by ID params
func (*GetSmartDeviceDataPointsByIDParams) WithPage ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithPage(page *int64) *GetSmartDeviceDataPointsByIDParams
WithPage adds the page to the get smart device data points by ID params
func (*GetSmartDeviceDataPointsByIDParams) WithPageSize ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithPageSize(pageSize *int64) *GetSmartDeviceDataPointsByIDParams
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 ¶
func (o *GetSmartDeviceDataPointsByIDParams) WithTimeout(timeout time.Duration) *GetSmartDeviceDataPointsByIDParams
WithTimeout adds the timeout to the get smart device data points by ID params
func (*GetSmartDeviceDataPointsByIDParams) WriteToRequest ¶
func (o *GetSmartDeviceDataPointsByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetYourSmartDevicesOK) GetPayload() *GetYourSmartDevicesOKBody
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
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
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 ¶
func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get your smart devices o k body data items0 other data based on context it is used
func (*GetYourSmartDevicesOKBodyDataItems0OtherData) MarshalBinary ¶
func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetYourSmartDevicesOKBodyDataItems0OtherData) UnmarshalBinary ¶
func (o *GetYourSmartDevicesOKBodyDataItems0OtherData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
func (o *GetYourSmartDevicesParams) WithContext(ctx context.Context) *GetYourSmartDevicesParams
WithContext adds the context to the get your smart devices params
func (*GetYourSmartDevicesParams) WithDefaults ¶
func (o *GetYourSmartDevicesParams) WithDefaults() *GetYourSmartDevicesParams
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 ¶
func (o *GetYourSmartDevicesParams) WithPage(page *int64) *GetYourSmartDevicesParams
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 ¶
func (o *GetYourSmartDevicesParams) WithTimeout(timeout time.Duration) *GetYourSmartDevicesParams
WithTimeout adds the timeout to the get your smart devices params
func (*GetYourSmartDevicesParams) WriteToRequest ¶
func (o *GetYourSmartDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- create_smart_device_data_point_parameters.go
- create_smart_device_data_point_responses.go
- create_smart_device_parameters.go
- create_smart_device_responses.go
- get_smart_device_by_id_parameters.go
- get_smart_device_by_id_responses.go
- get_smart_device_data_points_by_id_parameters.go
- get_smart_device_data_points_by_id_responses.go
- get_your_smart_devices_parameters.go
- get_your_smart_devices_responses.go
- smart_device_client.go