Documentation
¶
Index ¶
- type Client
- func (a *Client) ScreensCreate(params *ScreensCreateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensCreateCreated, error)
- func (a *Client) ScreensDelete(params *ScreensDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensDeleteOK, error)
- func (a *Client) ScreensList(params *ScreensListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensListOK, error)
- func (a *Client) ScreensRead(params *ScreensReadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensReadOK, error)
- func (a *Client) ScreensUpdate(params *ScreensUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensUpdateOK, error)
- func (a *Client) ScreensUpload(params *ScreensUploadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ScreensUploadCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ScreensCreateBadRequest
- type ScreensCreateCreated
- type ScreensCreateParams
- func (o *ScreensCreateParams) SetContext(ctx context.Context)
- func (o *ScreensCreateParams) SetData(data *models.ScreenCreate)
- func (o *ScreensCreateParams) SetDefaults()
- func (o *ScreensCreateParams) SetHTTPClient(client *http.Client)
- func (o *ScreensCreateParams) SetTimeout(timeout time.Duration)
- func (o *ScreensCreateParams) WithContext(ctx context.Context) *ScreensCreateParams
- func (o *ScreensCreateParams) WithData(data *models.ScreenCreate) *ScreensCreateParams
- func (o *ScreensCreateParams) WithDefaults() *ScreensCreateParams
- func (o *ScreensCreateParams) WithHTTPClient(client *http.Client) *ScreensCreateParams
- func (o *ScreensCreateParams) WithTimeout(timeout time.Duration) *ScreensCreateParams
- func (o *ScreensCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensCreateReader
- type ScreensCreateUnauthorized
- type ScreensDeleteOK
- type ScreensDeleteParams
- func (o *ScreensDeleteParams) SetContext(ctx context.Context)
- func (o *ScreensDeleteParams) SetDefaults()
- func (o *ScreensDeleteParams) SetHTTPClient(client *http.Client)
- func (o *ScreensDeleteParams) SetID(id string)
- func (o *ScreensDeleteParams) SetTimeout(timeout time.Duration)
- func (o *ScreensDeleteParams) WithContext(ctx context.Context) *ScreensDeleteParams
- func (o *ScreensDeleteParams) WithDefaults() *ScreensDeleteParams
- func (o *ScreensDeleteParams) WithHTTPClient(client *http.Client) *ScreensDeleteParams
- func (o *ScreensDeleteParams) WithID(id string) *ScreensDeleteParams
- func (o *ScreensDeleteParams) WithTimeout(timeout time.Duration) *ScreensDeleteParams
- func (o *ScreensDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensDeleteReader
- type ScreensDeleteUnauthorized
- type ScreensListOK
- type ScreensListParams
- func (o *ScreensListParams) SetContext(ctx context.Context)
- func (o *ScreensListParams) SetDefaults()
- func (o *ScreensListParams) SetHTTPClient(client *http.Client)
- func (o *ScreensListParams) SetTimeout(timeout time.Duration)
- func (o *ScreensListParams) WithContext(ctx context.Context) *ScreensListParams
- func (o *ScreensListParams) WithDefaults() *ScreensListParams
- func (o *ScreensListParams) WithHTTPClient(client *http.Client) *ScreensListParams
- func (o *ScreensListParams) WithTimeout(timeout time.Duration) *ScreensListParams
- func (o *ScreensListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensListReader
- type ScreensListUnauthorized
- type ScreensReadOK
- type ScreensReadParams
- func (o *ScreensReadParams) SetContext(ctx context.Context)
- func (o *ScreensReadParams) SetDefaults()
- func (o *ScreensReadParams) SetHTTPClient(client *http.Client)
- func (o *ScreensReadParams) SetID(id string)
- func (o *ScreensReadParams) SetTimeout(timeout time.Duration)
- func (o *ScreensReadParams) WithContext(ctx context.Context) *ScreensReadParams
- func (o *ScreensReadParams) WithDefaults() *ScreensReadParams
- func (o *ScreensReadParams) WithHTTPClient(client *http.Client) *ScreensReadParams
- func (o *ScreensReadParams) WithID(id string) *ScreensReadParams
- func (o *ScreensReadParams) WithTimeout(timeout time.Duration) *ScreensReadParams
- func (o *ScreensReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensReadReader
- type ScreensReadUnauthorized
- type ScreensUpdateBadRequest
- type ScreensUpdateOK
- type ScreensUpdateParams
- func (o *ScreensUpdateParams) SetContext(ctx context.Context)
- func (o *ScreensUpdateParams) SetData(data *models.ScreenEndpoint)
- func (o *ScreensUpdateParams) SetDefaults()
- func (o *ScreensUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ScreensUpdateParams) SetID(id string)
- func (o *ScreensUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ScreensUpdateParams) WithContext(ctx context.Context) *ScreensUpdateParams
- func (o *ScreensUpdateParams) WithData(data *models.ScreenEndpoint) *ScreensUpdateParams
- func (o *ScreensUpdateParams) WithDefaults() *ScreensUpdateParams
- func (o *ScreensUpdateParams) WithHTTPClient(client *http.Client) *ScreensUpdateParams
- func (o *ScreensUpdateParams) WithID(id string) *ScreensUpdateParams
- func (o *ScreensUpdateParams) WithTimeout(timeout time.Duration) *ScreensUpdateParams
- func (o *ScreensUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensUpdateReader
- type ScreensUpdateUnauthorized
- type ScreensUploadCreated
- type ScreensUploadParams
- func (o *ScreensUploadParams) SetContext(ctx context.Context)
- func (o *ScreensUploadParams) SetDefaults()
- func (o *ScreensUploadParams) SetHTTPClient(client *http.Client)
- func (o *ScreensUploadParams) SetName(name *string)
- func (o *ScreensUploadParams) SetPin(pin string)
- func (o *ScreensUploadParams) SetTimeout(timeout time.Duration)
- func (o *ScreensUploadParams) WithContext(ctx context.Context) *ScreensUploadParams
- func (o *ScreensUploadParams) WithDefaults() *ScreensUploadParams
- func (o *ScreensUploadParams) WithHTTPClient(client *http.Client) *ScreensUploadParams
- func (o *ScreensUploadParams) WithName(name *string) *ScreensUploadParams
- func (o *ScreensUploadParams) WithPin(pin string) *ScreensUploadParams
- func (o *ScreensUploadParams) WithTimeout(timeout time.Duration) *ScreensUploadParams
- func (o *ScreensUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScreensUploadReader
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 screens API
func (*Client) ScreensCreate ¶
func (a *Client) ScreensCreate(params *ScreensCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensCreateCreated, error)
ScreensCreate creates screen
Create new screen. Screens are a representation of the physical device running Screenly software.
func (*Client) ScreensDelete ¶
func (a *Client) ScreensDelete(params *ScreensDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensDeleteOK, error)
ScreensDelete deletes screen
Delete a specific screen. Screens are a representation of the physical device running Screenly software.
func (*Client) ScreensList ¶
func (a *Client) ScreensList(params *ScreensListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensListOK, error)
ScreensList gets screen list
Get a list of screens. Screens are a representation of the physical device running Screenly software.
func (*Client) ScreensRead ¶
func (a *Client) ScreensRead(params *ScreensReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensReadOK, error)
ScreensRead gets screen
Get the details of a specific screen. Screens are a representation of the physical device running Screenly software.
func (*Client) ScreensUpdate ¶
func (a *Client) ScreensUpdate(params *ScreensUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensUpdateOK, error)
ScreensUpdate updates screen
Change a screen. Screens are a representation of the physical device running Screenly software.
func (*Client) ScreensUpload ¶
func (a *Client) ScreensUpload(params *ScreensUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensUploadCreated, error)
ScreensUpload screens upload API
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 {
ScreensCreate(params *ScreensCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensCreateCreated, error)
ScreensDelete(params *ScreensDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensDeleteOK, error)
ScreensList(params *ScreensListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensListOK, error)
ScreensRead(params *ScreensReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensReadOK, error)
ScreensUpdate(params *ScreensUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensUpdateOK, error)
ScreensUpload(params *ScreensUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ScreensUploadCreated, 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 screens API client.
type ScreensCreateBadRequest ¶
type ScreensCreateBadRequest struct {
}
ScreensCreateBadRequest describes a response with status code 400, with default header values.
You sent a malformed or bad request.
func NewScreensCreateBadRequest ¶
func NewScreensCreateBadRequest() *ScreensCreateBadRequest
NewScreensCreateBadRequest creates a ScreensCreateBadRequest with default headers values
func (*ScreensCreateBadRequest) Error ¶
func (o *ScreensCreateBadRequest) Error() string
type ScreensCreateCreated ¶
type ScreensCreateCreated struct {
Payload *models.ScreenDetailed
}
ScreensCreateCreated describes a response with status code 201, with default header values.
ScreensCreateCreated screens create created
func NewScreensCreateCreated ¶
func NewScreensCreateCreated() *ScreensCreateCreated
NewScreensCreateCreated creates a ScreensCreateCreated with default headers values
func (*ScreensCreateCreated) Error ¶
func (o *ScreensCreateCreated) Error() string
func (*ScreensCreateCreated) GetPayload ¶
func (o *ScreensCreateCreated) GetPayload() *models.ScreenDetailed
type ScreensCreateParams ¶
type ScreensCreateParams struct {
// Data.
Data *models.ScreenCreate
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensCreateParams contains all the parameters to send to the API endpoint
for the screens create operation. Typically these are written to a http.Request.
func NewScreensCreateParams ¶
func NewScreensCreateParams() *ScreensCreateParams
NewScreensCreateParams creates a new ScreensCreateParams 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 NewScreensCreateParamsWithContext ¶
func NewScreensCreateParamsWithContext(ctx context.Context) *ScreensCreateParams
NewScreensCreateParamsWithContext creates a new ScreensCreateParams object with the ability to set a context for a request.
func NewScreensCreateParamsWithHTTPClient ¶
func NewScreensCreateParamsWithHTTPClient(client *http.Client) *ScreensCreateParams
NewScreensCreateParamsWithHTTPClient creates a new ScreensCreateParams object with the ability to set a custom HTTPClient for a request.
func NewScreensCreateParamsWithTimeout ¶
func NewScreensCreateParamsWithTimeout(timeout time.Duration) *ScreensCreateParams
NewScreensCreateParamsWithTimeout creates a new ScreensCreateParams object with the ability to set a timeout on a request.
func (*ScreensCreateParams) SetContext ¶
func (o *ScreensCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the screens create params
func (*ScreensCreateParams) SetData ¶
func (o *ScreensCreateParams) SetData(data *models.ScreenCreate)
SetData adds the data to the screens create params
func (*ScreensCreateParams) SetDefaults ¶
func (o *ScreensCreateParams) SetDefaults()
SetDefaults hydrates default values in the screens create params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensCreateParams) SetHTTPClient ¶
func (o *ScreensCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens create params
func (*ScreensCreateParams) SetTimeout ¶
func (o *ScreensCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens create params
func (*ScreensCreateParams) WithContext ¶
func (o *ScreensCreateParams) WithContext(ctx context.Context) *ScreensCreateParams
WithContext adds the context to the screens create params
func (*ScreensCreateParams) WithData ¶
func (o *ScreensCreateParams) WithData(data *models.ScreenCreate) *ScreensCreateParams
WithData adds the data to the screens create params
func (*ScreensCreateParams) WithDefaults ¶
func (o *ScreensCreateParams) WithDefaults() *ScreensCreateParams
WithDefaults hydrates default values in the screens create params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensCreateParams) WithHTTPClient ¶
func (o *ScreensCreateParams) WithHTTPClient(client *http.Client) *ScreensCreateParams
WithHTTPClient adds the HTTPClient to the screens create params
func (*ScreensCreateParams) WithTimeout ¶
func (o *ScreensCreateParams) WithTimeout(timeout time.Duration) *ScreensCreateParams
WithTimeout adds the timeout to the screens create params
func (*ScreensCreateParams) WriteToRequest ¶
func (o *ScreensCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensCreateReader ¶
type ScreensCreateReader struct {
// contains filtered or unexported fields
}
ScreensCreateReader is a Reader for the ScreensCreate structure.
func (*ScreensCreateReader) ReadResponse ¶
func (o *ScreensCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScreensCreateUnauthorized ¶
type ScreensCreateUnauthorized struct {
}
ScreensCreateUnauthorized describes a response with status code 401, with default header values.
You provided invalid credentials.
func NewScreensCreateUnauthorized ¶
func NewScreensCreateUnauthorized() *ScreensCreateUnauthorized
NewScreensCreateUnauthorized creates a ScreensCreateUnauthorized with default headers values
func (*ScreensCreateUnauthorized) Error ¶
func (o *ScreensCreateUnauthorized) Error() string
type ScreensDeleteOK ¶
type ScreensDeleteOK struct {
}
ScreensDeleteOK describes a response with status code 200, with default header values.
ScreensDeleteOK screens delete o k
func NewScreensDeleteOK ¶
func NewScreensDeleteOK() *ScreensDeleteOK
NewScreensDeleteOK creates a ScreensDeleteOK with default headers values
func (*ScreensDeleteOK) Error ¶
func (o *ScreensDeleteOK) Error() string
type ScreensDeleteParams ¶
type ScreensDeleteParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensDeleteParams contains all the parameters to send to the API endpoint
for the screens delete operation. Typically these are written to a http.Request.
func NewScreensDeleteParams ¶
func NewScreensDeleteParams() *ScreensDeleteParams
NewScreensDeleteParams creates a new ScreensDeleteParams 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 NewScreensDeleteParamsWithContext ¶
func NewScreensDeleteParamsWithContext(ctx context.Context) *ScreensDeleteParams
NewScreensDeleteParamsWithContext creates a new ScreensDeleteParams object with the ability to set a context for a request.
func NewScreensDeleteParamsWithHTTPClient ¶
func NewScreensDeleteParamsWithHTTPClient(client *http.Client) *ScreensDeleteParams
NewScreensDeleteParamsWithHTTPClient creates a new ScreensDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewScreensDeleteParamsWithTimeout ¶
func NewScreensDeleteParamsWithTimeout(timeout time.Duration) *ScreensDeleteParams
NewScreensDeleteParamsWithTimeout creates a new ScreensDeleteParams object with the ability to set a timeout on a request.
func (*ScreensDeleteParams) SetContext ¶
func (o *ScreensDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the screens delete params
func (*ScreensDeleteParams) SetDefaults ¶
func (o *ScreensDeleteParams) SetDefaults()
SetDefaults hydrates default values in the screens delete params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensDeleteParams) SetHTTPClient ¶
func (o *ScreensDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens delete params
func (*ScreensDeleteParams) SetID ¶
func (o *ScreensDeleteParams) SetID(id string)
SetID adds the id to the screens delete params
func (*ScreensDeleteParams) SetTimeout ¶
func (o *ScreensDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens delete params
func (*ScreensDeleteParams) WithContext ¶
func (o *ScreensDeleteParams) WithContext(ctx context.Context) *ScreensDeleteParams
WithContext adds the context to the screens delete params
func (*ScreensDeleteParams) WithDefaults ¶
func (o *ScreensDeleteParams) WithDefaults() *ScreensDeleteParams
WithDefaults hydrates default values in the screens delete params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensDeleteParams) WithHTTPClient ¶
func (o *ScreensDeleteParams) WithHTTPClient(client *http.Client) *ScreensDeleteParams
WithHTTPClient adds the HTTPClient to the screens delete params
func (*ScreensDeleteParams) WithID ¶
func (o *ScreensDeleteParams) WithID(id string) *ScreensDeleteParams
WithID adds the id to the screens delete params
func (*ScreensDeleteParams) WithTimeout ¶
func (o *ScreensDeleteParams) WithTimeout(timeout time.Duration) *ScreensDeleteParams
WithTimeout adds the timeout to the screens delete params
func (*ScreensDeleteParams) WriteToRequest ¶
func (o *ScreensDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensDeleteReader ¶
type ScreensDeleteReader struct {
// contains filtered or unexported fields
}
ScreensDeleteReader is a Reader for the ScreensDelete structure.
func (*ScreensDeleteReader) ReadResponse ¶
func (o *ScreensDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScreensDeleteUnauthorized ¶
type ScreensDeleteUnauthorized struct {
}
ScreensDeleteUnauthorized describes a response with status code 401, with default header values.
You provided invalid credentials.
func NewScreensDeleteUnauthorized ¶
func NewScreensDeleteUnauthorized() *ScreensDeleteUnauthorized
NewScreensDeleteUnauthorized creates a ScreensDeleteUnauthorized with default headers values
func (*ScreensDeleteUnauthorized) Error ¶
func (o *ScreensDeleteUnauthorized) Error() string
type ScreensListOK ¶
type ScreensListOK struct {
Payload []*models.ScreenEndpoint
}
ScreensListOK describes a response with status code 200, with default header values.
ScreensListOK screens list o k
func NewScreensListOK ¶
func NewScreensListOK() *ScreensListOK
NewScreensListOK creates a ScreensListOK with default headers values
func (*ScreensListOK) Error ¶
func (o *ScreensListOK) Error() string
func (*ScreensListOK) GetPayload ¶
func (o *ScreensListOK) GetPayload() []*models.ScreenEndpoint
type ScreensListParams ¶
type ScreensListParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensListParams contains all the parameters to send to the API endpoint
for the screens list operation. Typically these are written to a http.Request.
func NewScreensListParams ¶
func NewScreensListParams() *ScreensListParams
NewScreensListParams creates a new ScreensListParams 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 NewScreensListParamsWithContext ¶
func NewScreensListParamsWithContext(ctx context.Context) *ScreensListParams
NewScreensListParamsWithContext creates a new ScreensListParams object with the ability to set a context for a request.
func NewScreensListParamsWithHTTPClient ¶
func NewScreensListParamsWithHTTPClient(client *http.Client) *ScreensListParams
NewScreensListParamsWithHTTPClient creates a new ScreensListParams object with the ability to set a custom HTTPClient for a request.
func NewScreensListParamsWithTimeout ¶
func NewScreensListParamsWithTimeout(timeout time.Duration) *ScreensListParams
NewScreensListParamsWithTimeout creates a new ScreensListParams object with the ability to set a timeout on a request.
func (*ScreensListParams) SetContext ¶
func (o *ScreensListParams) SetContext(ctx context.Context)
SetContext adds the context to the screens list params
func (*ScreensListParams) SetDefaults ¶
func (o *ScreensListParams) SetDefaults()
SetDefaults hydrates default values in the screens list params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensListParams) SetHTTPClient ¶
func (o *ScreensListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens list params
func (*ScreensListParams) SetTimeout ¶
func (o *ScreensListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens list params
func (*ScreensListParams) WithContext ¶
func (o *ScreensListParams) WithContext(ctx context.Context) *ScreensListParams
WithContext adds the context to the screens list params
func (*ScreensListParams) WithDefaults ¶
func (o *ScreensListParams) WithDefaults() *ScreensListParams
WithDefaults hydrates default values in the screens list params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensListParams) WithHTTPClient ¶
func (o *ScreensListParams) WithHTTPClient(client *http.Client) *ScreensListParams
WithHTTPClient adds the HTTPClient to the screens list params
func (*ScreensListParams) WithTimeout ¶
func (o *ScreensListParams) WithTimeout(timeout time.Duration) *ScreensListParams
WithTimeout adds the timeout to the screens list params
func (*ScreensListParams) WriteToRequest ¶
func (o *ScreensListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensListReader ¶
type ScreensListReader struct {
// contains filtered or unexported fields
}
ScreensListReader is a Reader for the ScreensList structure.
func (*ScreensListReader) ReadResponse ¶
func (o *ScreensListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScreensListUnauthorized ¶
type ScreensListUnauthorized struct {
}
ScreensListUnauthorized describes a response with status code 401, with default header values.
You provided invalid credentials.
func NewScreensListUnauthorized ¶
func NewScreensListUnauthorized() *ScreensListUnauthorized
NewScreensListUnauthorized creates a ScreensListUnauthorized with default headers values
func (*ScreensListUnauthorized) Error ¶
func (o *ScreensListUnauthorized) Error() string
type ScreensReadOK ¶
type ScreensReadOK struct {
Payload *models.ScreenDetailed
}
ScreensReadOK describes a response with status code 200, with default header values.
ScreensReadOK screens read o k
func NewScreensReadOK ¶
func NewScreensReadOK() *ScreensReadOK
NewScreensReadOK creates a ScreensReadOK with default headers values
func (*ScreensReadOK) Error ¶
func (o *ScreensReadOK) Error() string
func (*ScreensReadOK) GetPayload ¶
func (o *ScreensReadOK) GetPayload() *models.ScreenDetailed
type ScreensReadParams ¶
type ScreensReadParams struct {
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensReadParams contains all the parameters to send to the API endpoint
for the screens read operation. Typically these are written to a http.Request.
func NewScreensReadParams ¶
func NewScreensReadParams() *ScreensReadParams
NewScreensReadParams creates a new ScreensReadParams 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 NewScreensReadParamsWithContext ¶
func NewScreensReadParamsWithContext(ctx context.Context) *ScreensReadParams
NewScreensReadParamsWithContext creates a new ScreensReadParams object with the ability to set a context for a request.
func NewScreensReadParamsWithHTTPClient ¶
func NewScreensReadParamsWithHTTPClient(client *http.Client) *ScreensReadParams
NewScreensReadParamsWithHTTPClient creates a new ScreensReadParams object with the ability to set a custom HTTPClient for a request.
func NewScreensReadParamsWithTimeout ¶
func NewScreensReadParamsWithTimeout(timeout time.Duration) *ScreensReadParams
NewScreensReadParamsWithTimeout creates a new ScreensReadParams object with the ability to set a timeout on a request.
func (*ScreensReadParams) SetContext ¶
func (o *ScreensReadParams) SetContext(ctx context.Context)
SetContext adds the context to the screens read params
func (*ScreensReadParams) SetDefaults ¶
func (o *ScreensReadParams) SetDefaults()
SetDefaults hydrates default values in the screens read params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensReadParams) SetHTTPClient ¶
func (o *ScreensReadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens read params
func (*ScreensReadParams) SetID ¶
func (o *ScreensReadParams) SetID(id string)
SetID adds the id to the screens read params
func (*ScreensReadParams) SetTimeout ¶
func (o *ScreensReadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens read params
func (*ScreensReadParams) WithContext ¶
func (o *ScreensReadParams) WithContext(ctx context.Context) *ScreensReadParams
WithContext adds the context to the screens read params
func (*ScreensReadParams) WithDefaults ¶
func (o *ScreensReadParams) WithDefaults() *ScreensReadParams
WithDefaults hydrates default values in the screens read params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensReadParams) WithHTTPClient ¶
func (o *ScreensReadParams) WithHTTPClient(client *http.Client) *ScreensReadParams
WithHTTPClient adds the HTTPClient to the screens read params
func (*ScreensReadParams) WithID ¶
func (o *ScreensReadParams) WithID(id string) *ScreensReadParams
WithID adds the id to the screens read params
func (*ScreensReadParams) WithTimeout ¶
func (o *ScreensReadParams) WithTimeout(timeout time.Duration) *ScreensReadParams
WithTimeout adds the timeout to the screens read params
func (*ScreensReadParams) WriteToRequest ¶
func (o *ScreensReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensReadReader ¶
type ScreensReadReader struct {
// contains filtered or unexported fields
}
ScreensReadReader is a Reader for the ScreensRead structure.
func (*ScreensReadReader) ReadResponse ¶
func (o *ScreensReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScreensReadUnauthorized ¶
type ScreensReadUnauthorized struct {
}
ScreensReadUnauthorized describes a response with status code 401, with default header values.
You provided invalid credentials.
func NewScreensReadUnauthorized ¶
func NewScreensReadUnauthorized() *ScreensReadUnauthorized
NewScreensReadUnauthorized creates a ScreensReadUnauthorized with default headers values
func (*ScreensReadUnauthorized) Error ¶
func (o *ScreensReadUnauthorized) Error() string
type ScreensUpdateBadRequest ¶
type ScreensUpdateBadRequest struct {
}
ScreensUpdateBadRequest describes a response with status code 400, with default header values.
You sent a malformed or bad request.
func NewScreensUpdateBadRequest ¶
func NewScreensUpdateBadRequest() *ScreensUpdateBadRequest
NewScreensUpdateBadRequest creates a ScreensUpdateBadRequest with default headers values
func (*ScreensUpdateBadRequest) Error ¶
func (o *ScreensUpdateBadRequest) Error() string
type ScreensUpdateOK ¶
type ScreensUpdateOK struct {
Payload *models.ScreenDetailed
}
ScreensUpdateOK describes a response with status code 200, with default header values.
ScreensUpdateOK screens update o k
func NewScreensUpdateOK ¶
func NewScreensUpdateOK() *ScreensUpdateOK
NewScreensUpdateOK creates a ScreensUpdateOK with default headers values
func (*ScreensUpdateOK) Error ¶
func (o *ScreensUpdateOK) Error() string
func (*ScreensUpdateOK) GetPayload ¶
func (o *ScreensUpdateOK) GetPayload() *models.ScreenDetailed
type ScreensUpdateParams ¶
type ScreensUpdateParams struct {
// Data.
Data *models.ScreenEndpoint
// ID.
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensUpdateParams contains all the parameters to send to the API endpoint
for the screens update operation. Typically these are written to a http.Request.
func NewScreensUpdateParams ¶
func NewScreensUpdateParams() *ScreensUpdateParams
NewScreensUpdateParams creates a new ScreensUpdateParams 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 NewScreensUpdateParamsWithContext ¶
func NewScreensUpdateParamsWithContext(ctx context.Context) *ScreensUpdateParams
NewScreensUpdateParamsWithContext creates a new ScreensUpdateParams object with the ability to set a context for a request.
func NewScreensUpdateParamsWithHTTPClient ¶
func NewScreensUpdateParamsWithHTTPClient(client *http.Client) *ScreensUpdateParams
NewScreensUpdateParamsWithHTTPClient creates a new ScreensUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewScreensUpdateParamsWithTimeout ¶
func NewScreensUpdateParamsWithTimeout(timeout time.Duration) *ScreensUpdateParams
NewScreensUpdateParamsWithTimeout creates a new ScreensUpdateParams object with the ability to set a timeout on a request.
func (*ScreensUpdateParams) SetContext ¶
func (o *ScreensUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the screens update params
func (*ScreensUpdateParams) SetData ¶
func (o *ScreensUpdateParams) SetData(data *models.ScreenEndpoint)
SetData adds the data to the screens update params
func (*ScreensUpdateParams) SetDefaults ¶
func (o *ScreensUpdateParams) SetDefaults()
SetDefaults hydrates default values in the screens update params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensUpdateParams) SetHTTPClient ¶
func (o *ScreensUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens update params
func (*ScreensUpdateParams) SetID ¶
func (o *ScreensUpdateParams) SetID(id string)
SetID adds the id to the screens update params
func (*ScreensUpdateParams) SetTimeout ¶
func (o *ScreensUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens update params
func (*ScreensUpdateParams) WithContext ¶
func (o *ScreensUpdateParams) WithContext(ctx context.Context) *ScreensUpdateParams
WithContext adds the context to the screens update params
func (*ScreensUpdateParams) WithData ¶
func (o *ScreensUpdateParams) WithData(data *models.ScreenEndpoint) *ScreensUpdateParams
WithData adds the data to the screens update params
func (*ScreensUpdateParams) WithDefaults ¶
func (o *ScreensUpdateParams) WithDefaults() *ScreensUpdateParams
WithDefaults hydrates default values in the screens update params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensUpdateParams) WithHTTPClient ¶
func (o *ScreensUpdateParams) WithHTTPClient(client *http.Client) *ScreensUpdateParams
WithHTTPClient adds the HTTPClient to the screens update params
func (*ScreensUpdateParams) WithID ¶
func (o *ScreensUpdateParams) WithID(id string) *ScreensUpdateParams
WithID adds the id to the screens update params
func (*ScreensUpdateParams) WithTimeout ¶
func (o *ScreensUpdateParams) WithTimeout(timeout time.Duration) *ScreensUpdateParams
WithTimeout adds the timeout to the screens update params
func (*ScreensUpdateParams) WriteToRequest ¶
func (o *ScreensUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensUpdateReader ¶
type ScreensUpdateReader struct {
// contains filtered or unexported fields
}
ScreensUpdateReader is a Reader for the ScreensUpdate structure.
func (*ScreensUpdateReader) ReadResponse ¶
func (o *ScreensUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScreensUpdateUnauthorized ¶
type ScreensUpdateUnauthorized struct {
}
ScreensUpdateUnauthorized describes a response with status code 401, with default header values.
You provided invalid credentials.
func NewScreensUpdateUnauthorized ¶
func NewScreensUpdateUnauthorized() *ScreensUpdateUnauthorized
NewScreensUpdateUnauthorized creates a ScreensUpdateUnauthorized with default headers values
func (*ScreensUpdateUnauthorized) Error ¶
func (o *ScreensUpdateUnauthorized) Error() string
type ScreensUploadCreated ¶
type ScreensUploadCreated struct {
Payload *models.ScreenCreate
}
ScreensUploadCreated describes a response with status code 201, with default header values.
ScreensUploadCreated screens upload created
func NewScreensUploadCreated ¶
func NewScreensUploadCreated() *ScreensUploadCreated
NewScreensUploadCreated creates a ScreensUploadCreated with default headers values
func (*ScreensUploadCreated) Error ¶
func (o *ScreensUploadCreated) Error() string
func (*ScreensUploadCreated) GetPayload ¶
func (o *ScreensUploadCreated) GetPayload() *models.ScreenCreate
type ScreensUploadParams ¶
type ScreensUploadParams struct {
/* Name.
Name of the new screen
*/
Name *string
/* Pin.
Pin code created with registrations endpoint
*/
Pin string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ScreensUploadParams contains all the parameters to send to the API endpoint
for the screens upload operation. Typically these are written to a http.Request.
func NewScreensUploadParams ¶
func NewScreensUploadParams() *ScreensUploadParams
NewScreensUploadParams creates a new ScreensUploadParams 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 NewScreensUploadParamsWithContext ¶
func NewScreensUploadParamsWithContext(ctx context.Context) *ScreensUploadParams
NewScreensUploadParamsWithContext creates a new ScreensUploadParams object with the ability to set a context for a request.
func NewScreensUploadParamsWithHTTPClient ¶
func NewScreensUploadParamsWithHTTPClient(client *http.Client) *ScreensUploadParams
NewScreensUploadParamsWithHTTPClient creates a new ScreensUploadParams object with the ability to set a custom HTTPClient for a request.
func NewScreensUploadParamsWithTimeout ¶
func NewScreensUploadParamsWithTimeout(timeout time.Duration) *ScreensUploadParams
NewScreensUploadParamsWithTimeout creates a new ScreensUploadParams object with the ability to set a timeout on a request.
func (*ScreensUploadParams) SetContext ¶
func (o *ScreensUploadParams) SetContext(ctx context.Context)
SetContext adds the context to the screens upload params
func (*ScreensUploadParams) SetDefaults ¶
func (o *ScreensUploadParams) SetDefaults()
SetDefaults hydrates default values in the screens upload params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensUploadParams) SetHTTPClient ¶
func (o *ScreensUploadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the screens upload params
func (*ScreensUploadParams) SetName ¶
func (o *ScreensUploadParams) SetName(name *string)
SetName adds the name to the screens upload params
func (*ScreensUploadParams) SetPin ¶
func (o *ScreensUploadParams) SetPin(pin string)
SetPin adds the pin to the screens upload params
func (*ScreensUploadParams) SetTimeout ¶
func (o *ScreensUploadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the screens upload params
func (*ScreensUploadParams) WithContext ¶
func (o *ScreensUploadParams) WithContext(ctx context.Context) *ScreensUploadParams
WithContext adds the context to the screens upload params
func (*ScreensUploadParams) WithDefaults ¶
func (o *ScreensUploadParams) WithDefaults() *ScreensUploadParams
WithDefaults hydrates default values in the screens upload params (not the query body).
All values with no default are reset to their zero value.
func (*ScreensUploadParams) WithHTTPClient ¶
func (o *ScreensUploadParams) WithHTTPClient(client *http.Client) *ScreensUploadParams
WithHTTPClient adds the HTTPClient to the screens upload params
func (*ScreensUploadParams) WithName ¶
func (o *ScreensUploadParams) WithName(name *string) *ScreensUploadParams
WithName adds the name to the screens upload params
func (*ScreensUploadParams) WithPin ¶
func (o *ScreensUploadParams) WithPin(pin string) *ScreensUploadParams
WithPin adds the pin to the screens upload params
func (*ScreensUploadParams) WithTimeout ¶
func (o *ScreensUploadParams) WithTimeout(timeout time.Duration) *ScreensUploadParams
WithTimeout adds the timeout to the screens upload params
func (*ScreensUploadParams) WriteToRequest ¶
func (o *ScreensUploadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScreensUploadReader ¶
type ScreensUploadReader struct {
// contains filtered or unexported fields
}
ScreensUploadReader is a Reader for the ScreensUpload structure.
func (*ScreensUploadReader) ReadResponse ¶
func (o *ScreensUploadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- screens_client.go
- screens_create_parameters.go
- screens_create_responses.go
- screens_delete_parameters.go
- screens_delete_responses.go
- screens_list_parameters.go
- screens_list_responses.go
- screens_read_parameters.go
- screens_read_responses.go
- screens_update_parameters.go
- screens_update_responses.go
- screens_upload_parameters.go
- screens_upload_responses.go