yggdrasil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   GetControlMessageForDevice Get control message for device API*/
	GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)
	/*
	   GetDataMessageForDevice Get data message for device API*/
	GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)
	/*
	   PostControlMessageForDevice Post control message for device API*/
	PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)
	/*
	   PostDataMessageForDevice Post data message for device API*/
	PostDataMessageForDevice(ctx context.Context, params *PostDataMessageForDeviceParams) (*PostDataMessageForDeviceOK, *PostDataMessageForDeviceAlreadyReported, error)
}

API is the interface of the yggdrasil client

type Client

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

Client for yggdrasil API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new yggdrasil API client.

func (*Client) GetControlMessageForDevice

func (a *Client) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)

GetControlMessageForDevice Get control message for device API

func (*Client) GetDataMessageForDevice

func (a *Client) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)

GetDataMessageForDevice Get data message for device API

func (*Client) PostControlMessageForDevice

func (a *Client) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)

PostControlMessageForDevice Post control message for device API

func (*Client) PostDataMessageForDevice

PostDataMessageForDevice Post data message for device API

type GetControlMessageForDeviceForbidden

type GetControlMessageForDeviceForbidden struct {
}
GetControlMessageForDeviceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetControlMessageForDeviceForbidden

func NewGetControlMessageForDeviceForbidden() *GetControlMessageForDeviceForbidden

NewGetControlMessageForDeviceForbidden creates a GetControlMessageForDeviceForbidden with default headers values

func (*GetControlMessageForDeviceForbidden) Error

type GetControlMessageForDeviceInternalServerError

type GetControlMessageForDeviceInternalServerError struct {
}
GetControlMessageForDeviceInternalServerError describes a response with status code 500, with default header values.

Error

func NewGetControlMessageForDeviceInternalServerError

func NewGetControlMessageForDeviceInternalServerError() *GetControlMessageForDeviceInternalServerError

NewGetControlMessageForDeviceInternalServerError creates a GetControlMessageForDeviceInternalServerError with default headers values

func (*GetControlMessageForDeviceInternalServerError) Error

type GetControlMessageForDeviceNotFound

type GetControlMessageForDeviceNotFound struct {
}
GetControlMessageForDeviceNotFound describes a response with status code 404, with default header values.

Error

func NewGetControlMessageForDeviceNotFound

func NewGetControlMessageForDeviceNotFound() *GetControlMessageForDeviceNotFound

NewGetControlMessageForDeviceNotFound creates a GetControlMessageForDeviceNotFound with default headers values

func (*GetControlMessageForDeviceNotFound) Error

type GetControlMessageForDeviceOK

type GetControlMessageForDeviceOK struct {
	Payload *models.Message
}
GetControlMessageForDeviceOK describes a response with status code 200, with default header values.

Success

func NewGetControlMessageForDeviceOK

func NewGetControlMessageForDeviceOK() *GetControlMessageForDeviceOK

NewGetControlMessageForDeviceOK creates a GetControlMessageForDeviceOK with default headers values

func (*GetControlMessageForDeviceOK) Error

func (*GetControlMessageForDeviceOK) GetPayload

func (o *GetControlMessageForDeviceOK) GetPayload() *models.Message

type GetControlMessageForDeviceParams

type GetControlMessageForDeviceParams struct {

	/* DeviceID.

	   Device ID
	*/
	DeviceID string

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

GetControlMessageForDeviceParams contains all the parameters to send to the API endpoint

for the get control message for device operation.

Typically these are written to a http.Request.

func NewGetControlMessageForDeviceParams

func NewGetControlMessageForDeviceParams() *GetControlMessageForDeviceParams

NewGetControlMessageForDeviceParams creates a new GetControlMessageForDeviceParams 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 NewGetControlMessageForDeviceParamsWithContext

func NewGetControlMessageForDeviceParamsWithContext(ctx context.Context) *GetControlMessageForDeviceParams

NewGetControlMessageForDeviceParamsWithContext creates a new GetControlMessageForDeviceParams object with the ability to set a context for a request.

func NewGetControlMessageForDeviceParamsWithHTTPClient

func NewGetControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetControlMessageForDeviceParams

NewGetControlMessageForDeviceParamsWithHTTPClient creates a new GetControlMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewGetControlMessageForDeviceParamsWithTimeout

func NewGetControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetControlMessageForDeviceParams

NewGetControlMessageForDeviceParamsWithTimeout creates a new GetControlMessageForDeviceParams object with the ability to set a timeout on a request.

func (*GetControlMessageForDeviceParams) SetContext

SetContext adds the context to the get control message for device params

func (*GetControlMessageForDeviceParams) SetDefaults added in v0.2.0

func (o *GetControlMessageForDeviceParams) SetDefaults()

SetDefaults hydrates default values in the get control message for device params (not the query body).

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

func (*GetControlMessageForDeviceParams) SetDeviceID

func (o *GetControlMessageForDeviceParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the get control message for device params

func (*GetControlMessageForDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get control message for device params

func (*GetControlMessageForDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the get control message for device params

func (*GetControlMessageForDeviceParams) WithContext

WithContext adds the context to the get control message for device params

func (*GetControlMessageForDeviceParams) WithDefaults added in v0.2.0

WithDefaults hydrates default values in the get control message for device params (not the query body).

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

func (*GetControlMessageForDeviceParams) WithDeviceID

WithDeviceID adds the deviceID to the get control message for device params

func (*GetControlMessageForDeviceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get control message for device params

func (*GetControlMessageForDeviceParams) WithTimeout

WithTimeout adds the timeout to the get control message for device params

func (*GetControlMessageForDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetControlMessageForDeviceReader

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

GetControlMessageForDeviceReader is a Reader for the GetControlMessageForDevice structure.

func (*GetControlMessageForDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetControlMessageForDeviceUnauthorized

type GetControlMessageForDeviceUnauthorized struct {
}
GetControlMessageForDeviceUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetControlMessageForDeviceUnauthorized

func NewGetControlMessageForDeviceUnauthorized() *GetControlMessageForDeviceUnauthorized

NewGetControlMessageForDeviceUnauthorized creates a GetControlMessageForDeviceUnauthorized with default headers values

func (*GetControlMessageForDeviceUnauthorized) Error

type GetDataMessageForDeviceForbidden

type GetDataMessageForDeviceForbidden struct {
}
GetDataMessageForDeviceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetDataMessageForDeviceForbidden

func NewGetDataMessageForDeviceForbidden() *GetDataMessageForDeviceForbidden

NewGetDataMessageForDeviceForbidden creates a GetDataMessageForDeviceForbidden with default headers values

func (*GetDataMessageForDeviceForbidden) Error

type GetDataMessageForDeviceInternalServerError

type GetDataMessageForDeviceInternalServerError struct {
}
GetDataMessageForDeviceInternalServerError describes a response with status code 500, with default header values.

Error

func NewGetDataMessageForDeviceInternalServerError

func NewGetDataMessageForDeviceInternalServerError() *GetDataMessageForDeviceInternalServerError

NewGetDataMessageForDeviceInternalServerError creates a GetDataMessageForDeviceInternalServerError with default headers values

func (*GetDataMessageForDeviceInternalServerError) Error

type GetDataMessageForDeviceNotFound

type GetDataMessageForDeviceNotFound struct {
}
GetDataMessageForDeviceNotFound describes a response with status code 404, with default header values.

Error

func NewGetDataMessageForDeviceNotFound

func NewGetDataMessageForDeviceNotFound() *GetDataMessageForDeviceNotFound

NewGetDataMessageForDeviceNotFound creates a GetDataMessageForDeviceNotFound with default headers values

func (*GetDataMessageForDeviceNotFound) Error

type GetDataMessageForDeviceOK

type GetDataMessageForDeviceOK struct {
	Payload *models.Message
}
GetDataMessageForDeviceOK describes a response with status code 200, with default header values.

Success

func NewGetDataMessageForDeviceOK

func NewGetDataMessageForDeviceOK() *GetDataMessageForDeviceOK

NewGetDataMessageForDeviceOK creates a GetDataMessageForDeviceOK with default headers values

func (*GetDataMessageForDeviceOK) Error

func (o *GetDataMessageForDeviceOK) Error() string

func (*GetDataMessageForDeviceOK) GetPayload

func (o *GetDataMessageForDeviceOK) GetPayload() *models.Message

type GetDataMessageForDeviceParams

type GetDataMessageForDeviceParams struct {

	/* DeviceID.

	   Device ID
	*/
	DeviceID string

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

GetDataMessageForDeviceParams contains all the parameters to send to the API endpoint

for the get data message for device operation.

Typically these are written to a http.Request.

func NewGetDataMessageForDeviceParams

func NewGetDataMessageForDeviceParams() *GetDataMessageForDeviceParams

NewGetDataMessageForDeviceParams creates a new GetDataMessageForDeviceParams 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 NewGetDataMessageForDeviceParamsWithContext

func NewGetDataMessageForDeviceParamsWithContext(ctx context.Context) *GetDataMessageForDeviceParams

NewGetDataMessageForDeviceParamsWithContext creates a new GetDataMessageForDeviceParams object with the ability to set a context for a request.

func NewGetDataMessageForDeviceParamsWithHTTPClient

func NewGetDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *GetDataMessageForDeviceParams

NewGetDataMessageForDeviceParamsWithHTTPClient creates a new GetDataMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewGetDataMessageForDeviceParamsWithTimeout

func NewGetDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *GetDataMessageForDeviceParams

NewGetDataMessageForDeviceParamsWithTimeout creates a new GetDataMessageForDeviceParams object with the ability to set a timeout on a request.

func (*GetDataMessageForDeviceParams) SetContext

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

SetContext adds the context to the get data message for device params

func (*GetDataMessageForDeviceParams) SetDefaults added in v0.2.0

func (o *GetDataMessageForDeviceParams) SetDefaults()

SetDefaults hydrates default values in the get data message for device params (not the query body).

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

func (*GetDataMessageForDeviceParams) SetDeviceID

func (o *GetDataMessageForDeviceParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the get data message for device params

func (*GetDataMessageForDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get data message for device params

func (*GetDataMessageForDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the get data message for device params

func (*GetDataMessageForDeviceParams) WithContext

WithContext adds the context to the get data message for device params

func (*GetDataMessageForDeviceParams) WithDefaults added in v0.2.0

WithDefaults hydrates default values in the get data message for device params (not the query body).

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

func (*GetDataMessageForDeviceParams) WithDeviceID

WithDeviceID adds the deviceID to the get data message for device params

func (*GetDataMessageForDeviceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get data message for device params

func (*GetDataMessageForDeviceParams) WithTimeout

WithTimeout adds the timeout to the get data message for device params

func (*GetDataMessageForDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDataMessageForDeviceReader

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

GetDataMessageForDeviceReader is a Reader for the GetDataMessageForDevice structure.

func (*GetDataMessageForDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDataMessageForDeviceUnauthorized

type GetDataMessageForDeviceUnauthorized struct {
}
GetDataMessageForDeviceUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetDataMessageForDeviceUnauthorized

func NewGetDataMessageForDeviceUnauthorized() *GetDataMessageForDeviceUnauthorized

NewGetDataMessageForDeviceUnauthorized creates a GetDataMessageForDeviceUnauthorized with default headers values

func (*GetDataMessageForDeviceUnauthorized) Error

type MockAPI

type MockAPI struct {
	mock.Mock
}

MockAPI is an autogenerated mock type for the API type

func (*MockAPI) GetControlMessageForDevice

func (_m *MockAPI) GetControlMessageForDevice(ctx context.Context, params *GetControlMessageForDeviceParams) (*GetControlMessageForDeviceOK, error)

GetControlMessageForDevice provides a mock function with given fields: ctx, params

func (*MockAPI) GetDataMessageForDevice

func (_m *MockAPI) GetDataMessageForDevice(ctx context.Context, params *GetDataMessageForDeviceParams) (*GetDataMessageForDeviceOK, error)

GetDataMessageForDevice provides a mock function with given fields: ctx, params

func (*MockAPI) PostControlMessageForDevice

func (_m *MockAPI) PostControlMessageForDevice(ctx context.Context, params *PostControlMessageForDeviceParams) (*PostControlMessageForDeviceOK, error)

PostControlMessageForDevice provides a mock function with given fields: ctx, params

func (*MockAPI) PostDataMessageForDevice

PostDataMessageForDevice provides a mock function with given fields: ctx, params

type PostControlMessageForDeviceForbidden

type PostControlMessageForDeviceForbidden struct {
}
PostControlMessageForDeviceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostControlMessageForDeviceForbidden

func NewPostControlMessageForDeviceForbidden() *PostControlMessageForDeviceForbidden

NewPostControlMessageForDeviceForbidden creates a PostControlMessageForDeviceForbidden with default headers values

func (*PostControlMessageForDeviceForbidden) Error

type PostControlMessageForDeviceInternalServerError

type PostControlMessageForDeviceInternalServerError struct {
}
PostControlMessageForDeviceInternalServerError describes a response with status code 500, with default header values.

Error

func NewPostControlMessageForDeviceInternalServerError

func NewPostControlMessageForDeviceInternalServerError() *PostControlMessageForDeviceInternalServerError

NewPostControlMessageForDeviceInternalServerError creates a PostControlMessageForDeviceInternalServerError with default headers values

func (*PostControlMessageForDeviceInternalServerError) Error

type PostControlMessageForDeviceNotFound

type PostControlMessageForDeviceNotFound struct {
}
PostControlMessageForDeviceNotFound describes a response with status code 404, with default header values.

Error

func NewPostControlMessageForDeviceNotFound

func NewPostControlMessageForDeviceNotFound() *PostControlMessageForDeviceNotFound

NewPostControlMessageForDeviceNotFound creates a PostControlMessageForDeviceNotFound with default headers values

func (*PostControlMessageForDeviceNotFound) Error

type PostControlMessageForDeviceOK

type PostControlMessageForDeviceOK struct {
}
PostControlMessageForDeviceOK describes a response with status code 200, with default header values.

Success

func NewPostControlMessageForDeviceOK

func NewPostControlMessageForDeviceOK() *PostControlMessageForDeviceOK

NewPostControlMessageForDeviceOK creates a PostControlMessageForDeviceOK with default headers values

func (*PostControlMessageForDeviceOK) Error

type PostControlMessageForDeviceParams

type PostControlMessageForDeviceParams struct {

	/* DeviceID.

	   Device ID
	*/
	DeviceID string

	// Message.
	Message *models.Message

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

PostControlMessageForDeviceParams contains all the parameters to send to the API endpoint

for the post control message for device operation.

Typically these are written to a http.Request.

func NewPostControlMessageForDeviceParams

func NewPostControlMessageForDeviceParams() *PostControlMessageForDeviceParams

NewPostControlMessageForDeviceParams creates a new PostControlMessageForDeviceParams 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 NewPostControlMessageForDeviceParamsWithContext

func NewPostControlMessageForDeviceParamsWithContext(ctx context.Context) *PostControlMessageForDeviceParams

NewPostControlMessageForDeviceParamsWithContext creates a new PostControlMessageForDeviceParams object with the ability to set a context for a request.

func NewPostControlMessageForDeviceParamsWithHTTPClient

func NewPostControlMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostControlMessageForDeviceParams

NewPostControlMessageForDeviceParamsWithHTTPClient creates a new PostControlMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewPostControlMessageForDeviceParamsWithTimeout

func NewPostControlMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostControlMessageForDeviceParams

NewPostControlMessageForDeviceParamsWithTimeout creates a new PostControlMessageForDeviceParams object with the ability to set a timeout on a request.

func (*PostControlMessageForDeviceParams) SetContext

SetContext adds the context to the post control message for device params

func (*PostControlMessageForDeviceParams) SetDefaults added in v0.2.0

func (o *PostControlMessageForDeviceParams) SetDefaults()

SetDefaults hydrates default values in the post control message for device params (not the query body).

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

func (*PostControlMessageForDeviceParams) SetDeviceID

func (o *PostControlMessageForDeviceParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the post control message for device params

func (*PostControlMessageForDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post control message for device params

func (*PostControlMessageForDeviceParams) SetMessage

func (o *PostControlMessageForDeviceParams) SetMessage(message *models.Message)

SetMessage adds the message to the post control message for device params

func (*PostControlMessageForDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the post control message for device params

func (*PostControlMessageForDeviceParams) WithContext

WithContext adds the context to the post control message for device params

func (*PostControlMessageForDeviceParams) WithDefaults added in v0.2.0

WithDefaults hydrates default values in the post control message for device params (not the query body).

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

func (*PostControlMessageForDeviceParams) WithDeviceID

WithDeviceID adds the deviceID to the post control message for device params

func (*PostControlMessageForDeviceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post control message for device params

func (*PostControlMessageForDeviceParams) WithMessage

WithMessage adds the message to the post control message for device params

func (*PostControlMessageForDeviceParams) WithTimeout

WithTimeout adds the timeout to the post control message for device params

func (*PostControlMessageForDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostControlMessageForDeviceReader

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

PostControlMessageForDeviceReader is a Reader for the PostControlMessageForDevice structure.

func (*PostControlMessageForDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostControlMessageForDeviceUnauthorized

type PostControlMessageForDeviceUnauthorized struct {
}
PostControlMessageForDeviceUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostControlMessageForDeviceUnauthorized

func NewPostControlMessageForDeviceUnauthorized() *PostControlMessageForDeviceUnauthorized

NewPostControlMessageForDeviceUnauthorized creates a PostControlMessageForDeviceUnauthorized with default headers values

func (*PostControlMessageForDeviceUnauthorized) Error

type PostDataMessageForDeviceAlreadyReported added in v0.1.0

type PostDataMessageForDeviceAlreadyReported struct {
}
PostDataMessageForDeviceAlreadyReported describes a response with status code 208, with default header values.

Already Reported

func NewPostDataMessageForDeviceAlreadyReported added in v0.1.0

func NewPostDataMessageForDeviceAlreadyReported() *PostDataMessageForDeviceAlreadyReported

NewPostDataMessageForDeviceAlreadyReported creates a PostDataMessageForDeviceAlreadyReported with default headers values

func (*PostDataMessageForDeviceAlreadyReported) Error added in v0.1.0

type PostDataMessageForDeviceBadRequest

type PostDataMessageForDeviceBadRequest struct {
}
PostDataMessageForDeviceBadRequest describes a response with status code 400, with default header values.

Error

func NewPostDataMessageForDeviceBadRequest

func NewPostDataMessageForDeviceBadRequest() *PostDataMessageForDeviceBadRequest

NewPostDataMessageForDeviceBadRequest creates a PostDataMessageForDeviceBadRequest with default headers values

func (*PostDataMessageForDeviceBadRequest) Error

type PostDataMessageForDeviceForbidden

type PostDataMessageForDeviceForbidden struct {
}
PostDataMessageForDeviceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostDataMessageForDeviceForbidden

func NewPostDataMessageForDeviceForbidden() *PostDataMessageForDeviceForbidden

NewPostDataMessageForDeviceForbidden creates a PostDataMessageForDeviceForbidden with default headers values

func (*PostDataMessageForDeviceForbidden) Error

type PostDataMessageForDeviceInternalServerError

type PostDataMessageForDeviceInternalServerError struct {
}
PostDataMessageForDeviceInternalServerError describes a response with status code 500, with default header values.

Error

func NewPostDataMessageForDeviceInternalServerError

func NewPostDataMessageForDeviceInternalServerError() *PostDataMessageForDeviceInternalServerError

NewPostDataMessageForDeviceInternalServerError creates a PostDataMessageForDeviceInternalServerError with default headers values

func (*PostDataMessageForDeviceInternalServerError) Error

type PostDataMessageForDeviceNotFound

type PostDataMessageForDeviceNotFound struct {
}
PostDataMessageForDeviceNotFound describes a response with status code 404, with default header values.

Error

func NewPostDataMessageForDeviceNotFound

func NewPostDataMessageForDeviceNotFound() *PostDataMessageForDeviceNotFound

NewPostDataMessageForDeviceNotFound creates a PostDataMessageForDeviceNotFound with default headers values

func (*PostDataMessageForDeviceNotFound) Error

type PostDataMessageForDeviceOK

type PostDataMessageForDeviceOK struct {
	Payload *models.MessageResponse
}
PostDataMessageForDeviceOK describes a response with status code 200, with default header values.

Success

func NewPostDataMessageForDeviceOK

func NewPostDataMessageForDeviceOK() *PostDataMessageForDeviceOK

NewPostDataMessageForDeviceOK creates a PostDataMessageForDeviceOK with default headers values

func (*PostDataMessageForDeviceOK) Error

func (*PostDataMessageForDeviceOK) GetPayload

type PostDataMessageForDeviceParams

type PostDataMessageForDeviceParams struct {

	/* DeviceID.

	   Device ID
	*/
	DeviceID string

	// Message.
	Message *models.Message

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

PostDataMessageForDeviceParams contains all the parameters to send to the API endpoint

for the post data message for device operation.

Typically these are written to a http.Request.

func NewPostDataMessageForDeviceParams

func NewPostDataMessageForDeviceParams() *PostDataMessageForDeviceParams

NewPostDataMessageForDeviceParams creates a new PostDataMessageForDeviceParams 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 NewPostDataMessageForDeviceParamsWithContext

func NewPostDataMessageForDeviceParamsWithContext(ctx context.Context) *PostDataMessageForDeviceParams

NewPostDataMessageForDeviceParamsWithContext creates a new PostDataMessageForDeviceParams object with the ability to set a context for a request.

func NewPostDataMessageForDeviceParamsWithHTTPClient

func NewPostDataMessageForDeviceParamsWithHTTPClient(client *http.Client) *PostDataMessageForDeviceParams

NewPostDataMessageForDeviceParamsWithHTTPClient creates a new PostDataMessageForDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewPostDataMessageForDeviceParamsWithTimeout

func NewPostDataMessageForDeviceParamsWithTimeout(timeout time.Duration) *PostDataMessageForDeviceParams

NewPostDataMessageForDeviceParamsWithTimeout creates a new PostDataMessageForDeviceParams object with the ability to set a timeout on a request.

func (*PostDataMessageForDeviceParams) SetContext

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

SetContext adds the context to the post data message for device params

func (*PostDataMessageForDeviceParams) SetDefaults added in v0.2.0

func (o *PostDataMessageForDeviceParams) SetDefaults()

SetDefaults hydrates default values in the post data message for device params (not the query body).

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

func (*PostDataMessageForDeviceParams) SetDeviceID

func (o *PostDataMessageForDeviceParams) SetDeviceID(deviceID string)

SetDeviceID adds the deviceId to the post data message for device params

func (*PostDataMessageForDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post data message for device params

func (*PostDataMessageForDeviceParams) SetMessage

func (o *PostDataMessageForDeviceParams) SetMessage(message *models.Message)

SetMessage adds the message to the post data message for device params

func (*PostDataMessageForDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the post data message for device params

func (*PostDataMessageForDeviceParams) WithContext

WithContext adds the context to the post data message for device params

func (*PostDataMessageForDeviceParams) WithDefaults added in v0.2.0

WithDefaults hydrates default values in the post data message for device params (not the query body).

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

func (*PostDataMessageForDeviceParams) WithDeviceID

WithDeviceID adds the deviceID to the post data message for device params

func (*PostDataMessageForDeviceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post data message for device params

func (*PostDataMessageForDeviceParams) WithMessage

WithMessage adds the message to the post data message for device params

func (*PostDataMessageForDeviceParams) WithTimeout

WithTimeout adds the timeout to the post data message for device params

func (*PostDataMessageForDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostDataMessageForDeviceReader

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

PostDataMessageForDeviceReader is a Reader for the PostDataMessageForDevice structure.

func (*PostDataMessageForDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDataMessageForDeviceUnauthorized

type PostDataMessageForDeviceUnauthorized struct {
}
PostDataMessageForDeviceUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostDataMessageForDeviceUnauthorized

func NewPostDataMessageForDeviceUnauthorized() *PostDataMessageForDeviceUnauthorized

NewPostDataMessageForDeviceUnauthorized creates a PostDataMessageForDeviceUnauthorized with default headers values

func (*PostDataMessageForDeviceUnauthorized) Error

Jump to

Keyboard shortcuts

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