template

package
v0.0.0-...-1a3ccaa Latest Latest
Warning

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

Go to latest
Published: Nov 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 Client

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

Client for template API

func (*Client) GetTemplateDevice

func (a *Client) GetTemplateDevice(params *GetTemplateDeviceParams, opts ...ClientOption) (*GetTemplateDeviceOK, error)

GetTemplateDevice gets paginated list of device templates

func (*Client) GetTemplateDeviceName

func (a *Client) GetTemplateDeviceName(params *GetTemplateDeviceNameParams, opts ...ClientOption) (*GetTemplateDeviceNameOK, error)

GetTemplateDeviceName gets device template by its name

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 is the option for Client methods

type ClientService

type ClientService interface {
	GetTemplateDevice(params *GetTemplateDeviceParams, opts ...ClientOption) (*GetTemplateDeviceOK, error)

	GetTemplateDeviceName(params *GetTemplateDeviceNameParams, opts ...ClientOption) (*GetTemplateDeviceNameOK, 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 template API client.

type GetTemplateDeviceInternalServerError

type GetTemplateDeviceInternalServerError struct {
}

GetTemplateDeviceInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetTemplateDeviceInternalServerError

func NewGetTemplateDeviceInternalServerError() *GetTemplateDeviceInternalServerError

NewGetTemplateDeviceInternalServerError creates a GetTemplateDeviceInternalServerError with default headers values

func (*GetTemplateDeviceInternalServerError) Error

func (*GetTemplateDeviceInternalServerError) IsClientError

func (o *GetTemplateDeviceInternalServerError) IsClientError() bool

IsClientError returns true when this get template device internal server error response has a 4xx status code

func (*GetTemplateDeviceInternalServerError) IsCode

IsCode returns true when this get template device internal server error response a status code equal to that given

func (*GetTemplateDeviceInternalServerError) IsRedirect

IsRedirect returns true when this get template device internal server error response has a 3xx status code

func (*GetTemplateDeviceInternalServerError) IsServerError

func (o *GetTemplateDeviceInternalServerError) IsServerError() bool

IsServerError returns true when this get template device internal server error response has a 5xx status code

func (*GetTemplateDeviceInternalServerError) IsSuccess

IsSuccess returns true when this get template device internal server error response has a 2xx status code

func (*GetTemplateDeviceInternalServerError) String

type GetTemplateDeviceNameInternalServerError

type GetTemplateDeviceNameInternalServerError struct {
}

GetTemplateDeviceNameInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetTemplateDeviceNameInternalServerError

func NewGetTemplateDeviceNameInternalServerError() *GetTemplateDeviceNameInternalServerError

NewGetTemplateDeviceNameInternalServerError creates a GetTemplateDeviceNameInternalServerError with default headers values

func (*GetTemplateDeviceNameInternalServerError) Error

func (*GetTemplateDeviceNameInternalServerError) IsClientError

IsClientError returns true when this get template device name internal server error response has a 4xx status code

func (*GetTemplateDeviceNameInternalServerError) IsCode

IsCode returns true when this get template device name internal server error response a status code equal to that given

func (*GetTemplateDeviceNameInternalServerError) IsRedirect

IsRedirect returns true when this get template device name internal server error response has a 3xx status code

func (*GetTemplateDeviceNameInternalServerError) IsServerError

IsServerError returns true when this get template device name internal server error response has a 5xx status code

func (*GetTemplateDeviceNameInternalServerError) IsSuccess

IsSuccess returns true when this get template device name internal server error response has a 2xx status code

func (*GetTemplateDeviceNameInternalServerError) String

type GetTemplateDeviceNameNotFound

type GetTemplateDeviceNameNotFound struct {
}

GetTemplateDeviceNameNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetTemplateDeviceNameNotFound

func NewGetTemplateDeviceNameNotFound() *GetTemplateDeviceNameNotFound

NewGetTemplateDeviceNameNotFound creates a GetTemplateDeviceNameNotFound with default headers values

func (*GetTemplateDeviceNameNotFound) Error

func (*GetTemplateDeviceNameNotFound) IsClientError

func (o *GetTemplateDeviceNameNotFound) IsClientError() bool

IsClientError returns true when this get template device name not found response has a 4xx status code

func (*GetTemplateDeviceNameNotFound) IsCode

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

IsCode returns true when this get template device name not found response a status code equal to that given

func (*GetTemplateDeviceNameNotFound) IsRedirect

func (o *GetTemplateDeviceNameNotFound) IsRedirect() bool

IsRedirect returns true when this get template device name not found response has a 3xx status code

func (*GetTemplateDeviceNameNotFound) IsServerError

func (o *GetTemplateDeviceNameNotFound) IsServerError() bool

IsServerError returns true when this get template device name not found response has a 5xx status code

func (*GetTemplateDeviceNameNotFound) IsSuccess

func (o *GetTemplateDeviceNameNotFound) IsSuccess() bool

IsSuccess returns true when this get template device name not found response has a 2xx status code

func (*GetTemplateDeviceNameNotFound) String

type GetTemplateDeviceNameOK

type GetTemplateDeviceNameOK struct {
	Payload *models.DtosDeviceTemplateDto
}

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

OK

func NewGetTemplateDeviceNameOK

func NewGetTemplateDeviceNameOK() *GetTemplateDeviceNameOK

NewGetTemplateDeviceNameOK creates a GetTemplateDeviceNameOK with default headers values

func (*GetTemplateDeviceNameOK) Error

func (o *GetTemplateDeviceNameOK) Error() string

func (*GetTemplateDeviceNameOK) GetPayload

func (*GetTemplateDeviceNameOK) IsClientError

func (o *GetTemplateDeviceNameOK) IsClientError() bool

IsClientError returns true when this get template device name o k response has a 4xx status code

func (*GetTemplateDeviceNameOK) IsCode

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

IsCode returns true when this get template device name o k response a status code equal to that given

func (*GetTemplateDeviceNameOK) IsRedirect

func (o *GetTemplateDeviceNameOK) IsRedirect() bool

IsRedirect returns true when this get template device name o k response has a 3xx status code

func (*GetTemplateDeviceNameOK) IsServerError

func (o *GetTemplateDeviceNameOK) IsServerError() bool

IsServerError returns true when this get template device name o k response has a 5xx status code

func (*GetTemplateDeviceNameOK) IsSuccess

func (o *GetTemplateDeviceNameOK) IsSuccess() bool

IsSuccess returns true when this get template device name o k response has a 2xx status code

func (*GetTemplateDeviceNameOK) String

func (o *GetTemplateDeviceNameOK) String() string

type GetTemplateDeviceNameParams

type GetTemplateDeviceNameParams struct {

	/* Name.

	   device template name
	*/
	Name string

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

GetTemplateDeviceNameParams contains all the parameters to send to the API endpoint

for the get template device name operation.

Typically these are written to a http.Request.

func NewGetTemplateDeviceNameParams

func NewGetTemplateDeviceNameParams() *GetTemplateDeviceNameParams

NewGetTemplateDeviceNameParams creates a new GetTemplateDeviceNameParams 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 NewGetTemplateDeviceNameParamsWithContext

func NewGetTemplateDeviceNameParamsWithContext(ctx context.Context) *GetTemplateDeviceNameParams

NewGetTemplateDeviceNameParamsWithContext creates a new GetTemplateDeviceNameParams object with the ability to set a context for a request.

func NewGetTemplateDeviceNameParamsWithHTTPClient

func NewGetTemplateDeviceNameParamsWithHTTPClient(client *http.Client) *GetTemplateDeviceNameParams

NewGetTemplateDeviceNameParamsWithHTTPClient creates a new GetTemplateDeviceNameParams object with the ability to set a custom HTTPClient for a request.

func NewGetTemplateDeviceNameParamsWithTimeout

func NewGetTemplateDeviceNameParamsWithTimeout(timeout time.Duration) *GetTemplateDeviceNameParams

NewGetTemplateDeviceNameParamsWithTimeout creates a new GetTemplateDeviceNameParams object with the ability to set a timeout on a request.

func (*GetTemplateDeviceNameParams) SetContext

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

SetContext adds the context to the get template device name params

func (*GetTemplateDeviceNameParams) SetDefaults

func (o *GetTemplateDeviceNameParams) SetDefaults()

SetDefaults hydrates default values in the get template device name params (not the query body).

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

func (*GetTemplateDeviceNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get template device name params

func (*GetTemplateDeviceNameParams) SetName

func (o *GetTemplateDeviceNameParams) SetName(name string)

SetName adds the name to the get template device name params

func (*GetTemplateDeviceNameParams) SetTimeout

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

SetTimeout adds the timeout to the get template device name params

func (*GetTemplateDeviceNameParams) WithContext

WithContext adds the context to the get template device name params

func (*GetTemplateDeviceNameParams) WithDefaults

WithDefaults hydrates default values in the get template device name params (not the query body).

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

func (*GetTemplateDeviceNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get template device name params

func (*GetTemplateDeviceNameParams) WithName

WithName adds the name to the get template device name params

func (*GetTemplateDeviceNameParams) WithTimeout

WithTimeout adds the timeout to the get template device name params

func (*GetTemplateDeviceNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTemplateDeviceNameReader

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

GetTemplateDeviceNameReader is a Reader for the GetTemplateDeviceName structure.

func (*GetTemplateDeviceNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTemplateDeviceOK

type GetTemplateDeviceOK struct {
	Payload *models.DtosPaginatedItemsDtoDtosDeviceTemplateDto
}

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

OK

func NewGetTemplateDeviceOK

func NewGetTemplateDeviceOK() *GetTemplateDeviceOK

NewGetTemplateDeviceOK creates a GetTemplateDeviceOK with default headers values

func (*GetTemplateDeviceOK) Error

func (o *GetTemplateDeviceOK) Error() string

func (*GetTemplateDeviceOK) GetPayload

func (*GetTemplateDeviceOK) IsClientError

func (o *GetTemplateDeviceOK) IsClientError() bool

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

func (*GetTemplateDeviceOK) IsCode

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

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

func (*GetTemplateDeviceOK) IsRedirect

func (o *GetTemplateDeviceOK) IsRedirect() bool

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

func (*GetTemplateDeviceOK) IsServerError

func (o *GetTemplateDeviceOK) IsServerError() bool

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

func (*GetTemplateDeviceOK) IsSuccess

func (o *GetTemplateDeviceOK) IsSuccess() bool

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

func (*GetTemplateDeviceOK) String

func (o *GetTemplateDeviceOK) String() string

type GetTemplateDeviceParams

type GetTemplateDeviceParams struct {

	/* OrderBy.

	   Order by field
	*/
	OrderBy *string

	/* OrderDirection.

	   'asc' or 'desc' for ascending or descending order
	*/
	OrderDirection *string

	/* Page.

	   page number
	*/
	Page *int64

	/* PageSize.

	   number of entities per page
	*/
	PageSize *int64

	/* Search.

	   searchable value in entity
	*/
	Search *string

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

GetTemplateDeviceParams contains all the parameters to send to the API endpoint

for the get template device operation.

Typically these are written to a http.Request.

func NewGetTemplateDeviceParams

func NewGetTemplateDeviceParams() *GetTemplateDeviceParams

NewGetTemplateDeviceParams creates a new GetTemplateDeviceParams 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 NewGetTemplateDeviceParamsWithContext

func NewGetTemplateDeviceParamsWithContext(ctx context.Context) *GetTemplateDeviceParams

NewGetTemplateDeviceParamsWithContext creates a new GetTemplateDeviceParams object with the ability to set a context for a request.

func NewGetTemplateDeviceParamsWithHTTPClient

func NewGetTemplateDeviceParamsWithHTTPClient(client *http.Client) *GetTemplateDeviceParams

NewGetTemplateDeviceParamsWithHTTPClient creates a new GetTemplateDeviceParams object with the ability to set a custom HTTPClient for a request.

func NewGetTemplateDeviceParamsWithTimeout

func NewGetTemplateDeviceParamsWithTimeout(timeout time.Duration) *GetTemplateDeviceParams

NewGetTemplateDeviceParamsWithTimeout creates a new GetTemplateDeviceParams object with the ability to set a timeout on a request.

func (*GetTemplateDeviceParams) SetContext

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

SetContext adds the context to the get template device params

func (*GetTemplateDeviceParams) SetDefaults

func (o *GetTemplateDeviceParams) SetDefaults()

SetDefaults hydrates default values in the get template device params (not the query body).

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

func (*GetTemplateDeviceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get template device params

func (*GetTemplateDeviceParams) SetOrderBy

func (o *GetTemplateDeviceParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get template device params

func (*GetTemplateDeviceParams) SetOrderDirection

func (o *GetTemplateDeviceParams) SetOrderDirection(orderDirection *string)

SetOrderDirection adds the orderDirection to the get template device params

func (*GetTemplateDeviceParams) SetPage

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

SetPage adds the page to the get template device params

func (*GetTemplateDeviceParams) SetPageSize

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

SetPageSize adds the pageSize to the get template device params

func (*GetTemplateDeviceParams) SetSearch

func (o *GetTemplateDeviceParams) SetSearch(search *string)

SetSearch adds the search to the get template device params

func (*GetTemplateDeviceParams) SetTimeout

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

SetTimeout adds the timeout to the get template device params

func (*GetTemplateDeviceParams) WithContext

WithContext adds the context to the get template device params

func (*GetTemplateDeviceParams) WithDefaults

WithDefaults hydrates default values in the get template device params (not the query body).

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

func (*GetTemplateDeviceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get template device params

func (*GetTemplateDeviceParams) WithOrderBy

func (o *GetTemplateDeviceParams) WithOrderBy(orderBy *string) *GetTemplateDeviceParams

WithOrderBy adds the orderBy to the get template device params

func (*GetTemplateDeviceParams) WithOrderDirection

func (o *GetTemplateDeviceParams) WithOrderDirection(orderDirection *string) *GetTemplateDeviceParams

WithOrderDirection adds the orderDirection to the get template device params

func (*GetTemplateDeviceParams) WithPage

WithPage adds the page to the get template device params

func (*GetTemplateDeviceParams) WithPageSize

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

WithPageSize adds the pageSize to the get template device params

func (*GetTemplateDeviceParams) WithSearch

func (o *GetTemplateDeviceParams) WithSearch(search *string) *GetTemplateDeviceParams

WithSearch adds the search to the get template device params

func (*GetTemplateDeviceParams) WithTimeout

WithTimeout adds the timeout to the get template device params

func (*GetTemplateDeviceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTemplateDeviceReader

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

GetTemplateDeviceReader is a Reader for the GetTemplateDevice structure.

func (*GetTemplateDeviceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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