Documentation ¶
Index ¶
- type Client
- type GetGrillLightsDefault
- type GetGrillLightsOK
- type GetGrillLightsOKBody
- type GetGrillLightsParams
- func NewGetGrillLightsParams() *GetGrillLightsParams
- func NewGetGrillLightsParamsWithContext(ctx context.Context) *GetGrillLightsParams
- func NewGetGrillLightsParamsWithHTTPClient(client *http.Client) *GetGrillLightsParams
- func NewGetGrillLightsParamsWithTimeout(timeout time.Duration) *GetGrillLightsParams
- func (o *GetGrillLightsParams) SetContext(ctx context.Context)
- func (o *GetGrillLightsParams) SetHTTPClient(client *http.Client)
- func (o *GetGrillLightsParams) SetTimeout(timeout time.Duration)
- func (o *GetGrillLightsParams) WithContext(ctx context.Context) *GetGrillLightsParams
- func (o *GetGrillLightsParams) WithHTTPClient(client *http.Client) *GetGrillLightsParams
- func (o *GetGrillLightsParams) WithTimeout(timeout time.Duration) *GetGrillLightsParams
- func (o *GetGrillLightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGrillLightsReader
- type UpdateGrillLightsDefault
- type UpdateGrillLightsOK
- type UpdateGrillLightsParams
- func NewUpdateGrillLightsParams() *UpdateGrillLightsParams
- func NewUpdateGrillLightsParamsWithContext(ctx context.Context) *UpdateGrillLightsParams
- func NewUpdateGrillLightsParamsWithHTTPClient(client *http.Client) *UpdateGrillLightsParams
- func NewUpdateGrillLightsParamsWithTimeout(timeout time.Duration) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) SetContext(ctx context.Context)
- func (o *UpdateGrillLightsParams) SetHTTPClient(client *http.Client)
- func (o *UpdateGrillLightsParams) SetName(name string)
- func (o *UpdateGrillLightsParams) SetPeriod(period int64)
- func (o *UpdateGrillLightsParams) SetTimeout(timeout time.Duration)
- func (o *UpdateGrillLightsParams) WithContext(ctx context.Context) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) WithHTTPClient(client *http.Client) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) WithName(name string) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) WithPeriod(period int64) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) WithTimeout(timeout time.Duration) *UpdateGrillLightsParams
- func (o *UpdateGrillLightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateGrillLightsReader
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 lights API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new lights API client.
func (*Client) GetGrillLights ¶
func (a *Client) GetGrillLights(params *GetGrillLightsParams) (*GetGrillLightsOK, error)
GetGrillLights gets the colors currently showing on the grill lights
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateGrillLights ¶
func (a *Client) UpdateGrillLights(params *UpdateGrillLightsParams) (*UpdateGrillLightsOK, error)
UpdateGrillLights enables a light show on the grill lights
type GetGrillLightsDefault ¶
type GetGrillLightsDefault struct { Payload *models.Error // contains filtered or unexported fields }
GetGrillLightsDefault handles this case with default header values.
Unexpected error
func NewGetGrillLightsDefault ¶
func NewGetGrillLightsDefault(code int) *GetGrillLightsDefault
NewGetGrillLightsDefault creates a GetGrillLightsDefault with default headers values
func (*GetGrillLightsDefault) Code ¶
func (o *GetGrillLightsDefault) Code() int
Code gets the status code for the get grill lights default response
func (*GetGrillLightsDefault) Error ¶
func (o *GetGrillLightsDefault) Error() string
type GetGrillLightsOK ¶
type GetGrillLightsOK struct {
Payload GetGrillLightsOKBody
}
GetGrillLightsOK handles this case with default header values.
Pixels were read successfully
func NewGetGrillLightsOK ¶
func NewGetGrillLightsOK() *GetGrillLightsOK
NewGetGrillLightsOK creates a GetGrillLightsOK with default headers values
func (*GetGrillLightsOK) Error ¶
func (o *GetGrillLightsOK) Error() string
type GetGrillLightsOKBody ¶
type GetGrillLightsOKBody []*models.LightStrip
GetGrillLightsOKBody get grill lights o k body swagger:model GetGrillLightsOKBody
type GetGrillLightsParams ¶
type GetGrillLightsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGrillLightsParams contains all the parameters to send to the API endpoint for the get grill lights operation typically these are written to a http.Request
func NewGetGrillLightsParams ¶
func NewGetGrillLightsParams() *GetGrillLightsParams
NewGetGrillLightsParams creates a new GetGrillLightsParams object with the default values initialized.
func NewGetGrillLightsParamsWithContext ¶
func NewGetGrillLightsParamsWithContext(ctx context.Context) *GetGrillLightsParams
NewGetGrillLightsParamsWithContext creates a new GetGrillLightsParams object with the default values initialized, and the ability to set a context for a request
func NewGetGrillLightsParamsWithHTTPClient ¶
func NewGetGrillLightsParamsWithHTTPClient(client *http.Client) *GetGrillLightsParams
NewGetGrillLightsParamsWithHTTPClient creates a new GetGrillLightsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetGrillLightsParamsWithTimeout ¶
func NewGetGrillLightsParamsWithTimeout(timeout time.Duration) *GetGrillLightsParams
NewGetGrillLightsParamsWithTimeout creates a new GetGrillLightsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetGrillLightsParams) SetContext ¶
func (o *GetGrillLightsParams) SetContext(ctx context.Context)
SetContext adds the context to the get grill lights params
func (*GetGrillLightsParams) SetHTTPClient ¶
func (o *GetGrillLightsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get grill lights params
func (*GetGrillLightsParams) SetTimeout ¶
func (o *GetGrillLightsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get grill lights params
func (*GetGrillLightsParams) WithContext ¶
func (o *GetGrillLightsParams) WithContext(ctx context.Context) *GetGrillLightsParams
WithContext adds the context to the get grill lights params
func (*GetGrillLightsParams) WithHTTPClient ¶
func (o *GetGrillLightsParams) WithHTTPClient(client *http.Client) *GetGrillLightsParams
WithHTTPClient adds the HTTPClient to the get grill lights params
func (*GetGrillLightsParams) WithTimeout ¶
func (o *GetGrillLightsParams) WithTimeout(timeout time.Duration) *GetGrillLightsParams
WithTimeout adds the timeout to the get grill lights params
func (*GetGrillLightsParams) WriteToRequest ¶
func (o *GetGrillLightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGrillLightsReader ¶
type GetGrillLightsReader struct {
// contains filtered or unexported fields
}
GetGrillLightsReader is a Reader for the GetGrillLights structure.
func (*GetGrillLightsReader) ReadResponse ¶
func (o *GetGrillLightsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateGrillLightsDefault ¶
type UpdateGrillLightsDefault struct { Payload *models.Error // contains filtered or unexported fields }
UpdateGrillLightsDefault handles this case with default header values.
Unexpected error
func NewUpdateGrillLightsDefault ¶
func NewUpdateGrillLightsDefault(code int) *UpdateGrillLightsDefault
NewUpdateGrillLightsDefault creates a UpdateGrillLightsDefault with default headers values
func (*UpdateGrillLightsDefault) Code ¶
func (o *UpdateGrillLightsDefault) Code() int
Code gets the status code for the update grill lights default response
func (*UpdateGrillLightsDefault) Error ¶
func (o *UpdateGrillLightsDefault) Error() string
type UpdateGrillLightsOK ¶
type UpdateGrillLightsOK struct { }
UpdateGrillLightsOK handles this case with default header values.
The lights were updated successfully
func NewUpdateGrillLightsOK ¶
func NewUpdateGrillLightsOK() *UpdateGrillLightsOK
NewUpdateGrillLightsOK creates a UpdateGrillLightsOK with default headers values
func (*UpdateGrillLightsOK) Error ¶
func (o *UpdateGrillLightsOK) Error() string
type UpdateGrillLightsParams ¶
type UpdateGrillLightsParams struct { /*Name The light show to enable */ Name string /*Period The time period between updates in microseconds */ Period int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateGrillLightsParams contains all the parameters to send to the API endpoint for the update grill lights operation typically these are written to a http.Request
func NewUpdateGrillLightsParams ¶
func NewUpdateGrillLightsParams() *UpdateGrillLightsParams
NewUpdateGrillLightsParams creates a new UpdateGrillLightsParams object with the default values initialized.
func NewUpdateGrillLightsParamsWithContext ¶
func NewUpdateGrillLightsParamsWithContext(ctx context.Context) *UpdateGrillLightsParams
NewUpdateGrillLightsParamsWithContext creates a new UpdateGrillLightsParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateGrillLightsParamsWithHTTPClient ¶
func NewUpdateGrillLightsParamsWithHTTPClient(client *http.Client) *UpdateGrillLightsParams
NewUpdateGrillLightsParamsWithHTTPClient creates a new UpdateGrillLightsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateGrillLightsParamsWithTimeout ¶
func NewUpdateGrillLightsParamsWithTimeout(timeout time.Duration) *UpdateGrillLightsParams
NewUpdateGrillLightsParamsWithTimeout creates a new UpdateGrillLightsParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateGrillLightsParams) SetContext ¶
func (o *UpdateGrillLightsParams) SetContext(ctx context.Context)
SetContext adds the context to the update grill lights params
func (*UpdateGrillLightsParams) SetHTTPClient ¶
func (o *UpdateGrillLightsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update grill lights params
func (*UpdateGrillLightsParams) SetName ¶
func (o *UpdateGrillLightsParams) SetName(name string)
SetName adds the name to the update grill lights params
func (*UpdateGrillLightsParams) SetPeriod ¶
func (o *UpdateGrillLightsParams) SetPeriod(period int64)
SetPeriod adds the period to the update grill lights params
func (*UpdateGrillLightsParams) SetTimeout ¶
func (o *UpdateGrillLightsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update grill lights params
func (*UpdateGrillLightsParams) WithContext ¶
func (o *UpdateGrillLightsParams) WithContext(ctx context.Context) *UpdateGrillLightsParams
WithContext adds the context to the update grill lights params
func (*UpdateGrillLightsParams) WithHTTPClient ¶
func (o *UpdateGrillLightsParams) WithHTTPClient(client *http.Client) *UpdateGrillLightsParams
WithHTTPClient adds the HTTPClient to the update grill lights params
func (*UpdateGrillLightsParams) WithName ¶
func (o *UpdateGrillLightsParams) WithName(name string) *UpdateGrillLightsParams
WithName adds the name to the update grill lights params
func (*UpdateGrillLightsParams) WithPeriod ¶
func (o *UpdateGrillLightsParams) WithPeriod(period int64) *UpdateGrillLightsParams
WithPeriod adds the period to the update grill lights params
func (*UpdateGrillLightsParams) WithTimeout ¶
func (o *UpdateGrillLightsParams) WithTimeout(timeout time.Duration) *UpdateGrillLightsParams
WithTimeout adds the timeout to the update grill lights params
func (*UpdateGrillLightsParams) WriteToRequest ¶
func (o *UpdateGrillLightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateGrillLightsReader ¶
type UpdateGrillLightsReader struct {
// contains filtered or unexported fields
}
UpdateGrillLightsReader is a Reader for the UpdateGrillLights structure.
func (*UpdateGrillLightsReader) ReadResponse ¶
func (o *UpdateGrillLightsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.