Help us shape the future of Go! Take the 2026 Go Developer Survey

scenes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 4

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 scenes API

func New

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

New creates a new scenes API client.

func (*Client) ExecuteScene

func (a *Client) ExecuteScene(params *ExecuteSceneParams, authInfo runtime.ClientAuthInfoWriter) (*ExecuteSceneOK, error)

ExecuteScene executes scene

Execute a Scene by id for the logged in user and given locationId

func (*Client) ListScenes

func (a *Client) ListScenes(params *ListScenesParams, authInfo runtime.ClientAuthInfoWriter) (*ListScenesOK, error)

ListScenes lists scenes

Fetch a list of Scenes for the logged in user and given locationId

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ExecuteSceneDefault

type ExecuteSceneDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ExecuteSceneDefault handles this case with default header values.

Unexpected error

func NewExecuteSceneDefault

func NewExecuteSceneDefault(code int) *ExecuteSceneDefault

NewExecuteSceneDefault creates a ExecuteSceneDefault with default headers values

func (*ExecuteSceneDefault) Code

func (o *ExecuteSceneDefault) Code() int

Code gets the status code for the execute scene default response

func (*ExecuteSceneDefault) Error

func (o *ExecuteSceneDefault) Error() string

type ExecuteSceneForbidden

type ExecuteSceneForbidden struct {
}

ExecuteSceneForbidden handles this case with default header values.

Not authorized

func NewExecuteSceneForbidden

func NewExecuteSceneForbidden() *ExecuteSceneForbidden

NewExecuteSceneForbidden creates a ExecuteSceneForbidden with default headers values

func (*ExecuteSceneForbidden) Error

func (o *ExecuteSceneForbidden) Error() string

type ExecuteSceneOK

type ExecuteSceneOK struct {
	Payload *models.StandardSuccessResponse
}

ExecuteSceneOK handles this case with default header values.

The Scene has been executed

func NewExecuteSceneOK

func NewExecuteSceneOK() *ExecuteSceneOK

NewExecuteSceneOK creates a ExecuteSceneOK with default headers values

func (*ExecuteSceneOK) Error

func (o *ExecuteSceneOK) Error() string

type ExecuteSceneParams

type ExecuteSceneParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location.

	*/
	LocationID string
	/*SceneID
	  The ID of the Scene.

	*/
	SceneID string

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

ExecuteSceneParams contains all the parameters to send to the API endpoint for the execute scene operation typically these are written to a http.Request

func NewExecuteSceneParams

func NewExecuteSceneParams() *ExecuteSceneParams

NewExecuteSceneParams creates a new ExecuteSceneParams object with the default values initialized.

func NewExecuteSceneParamsWithContext

func NewExecuteSceneParamsWithContext(ctx context.Context) *ExecuteSceneParams

NewExecuteSceneParamsWithContext creates a new ExecuteSceneParams object with the default values initialized, and the ability to set a context for a request

func NewExecuteSceneParamsWithHTTPClient

func NewExecuteSceneParamsWithHTTPClient(client *http.Client) *ExecuteSceneParams

NewExecuteSceneParamsWithHTTPClient creates a new ExecuteSceneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewExecuteSceneParamsWithTimeout

func NewExecuteSceneParamsWithTimeout(timeout time.Duration) *ExecuteSceneParams

NewExecuteSceneParamsWithTimeout creates a new ExecuteSceneParams object with the default values initialized, and the ability to set a timeout on a request

func (*ExecuteSceneParams) SetAuthorization

func (o *ExecuteSceneParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the execute scene params

func (*ExecuteSceneParams) SetContext

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

SetContext adds the context to the execute scene params

func (*ExecuteSceneParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the execute scene params

func (*ExecuteSceneParams) SetLocationID

func (o *ExecuteSceneParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the execute scene params

func (*ExecuteSceneParams) SetSceneID

func (o *ExecuteSceneParams) SetSceneID(sceneID string)

SetSceneID adds the sceneId to the execute scene params

func (*ExecuteSceneParams) SetTimeout

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

SetTimeout adds the timeout to the execute scene params

func (*ExecuteSceneParams) WithAuthorization

func (o *ExecuteSceneParams) WithAuthorization(authorization string) *ExecuteSceneParams

WithAuthorization adds the authorization to the execute scene params

func (*ExecuteSceneParams) WithContext

WithContext adds the context to the execute scene params

func (*ExecuteSceneParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the execute scene params

func (*ExecuteSceneParams) WithLocationID

func (o *ExecuteSceneParams) WithLocationID(locationID string) *ExecuteSceneParams

WithLocationID adds the locationID to the execute scene params

func (*ExecuteSceneParams) WithSceneID

func (o *ExecuteSceneParams) WithSceneID(sceneID string) *ExecuteSceneParams

WithSceneID adds the sceneID to the execute scene params

func (*ExecuteSceneParams) WithTimeout

func (o *ExecuteSceneParams) WithTimeout(timeout time.Duration) *ExecuteSceneParams

WithTimeout adds the timeout to the execute scene params

func (*ExecuteSceneParams) WriteToRequest

func (o *ExecuteSceneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExecuteSceneReader

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

ExecuteSceneReader is a Reader for the ExecuteScene structure.

func (*ExecuteSceneReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExecuteSceneTooManyRequests

type ExecuteSceneTooManyRequests struct {
	Payload *models.ErrorResponse
}

ExecuteSceneTooManyRequests handles this case with default header values.

Too many requests

func NewExecuteSceneTooManyRequests

func NewExecuteSceneTooManyRequests() *ExecuteSceneTooManyRequests

NewExecuteSceneTooManyRequests creates a ExecuteSceneTooManyRequests with default headers values

func (*ExecuteSceneTooManyRequests) Error

type ExecuteSceneUnauthorized

type ExecuteSceneUnauthorized struct {
}

ExecuteSceneUnauthorized handles this case with default header values.

Not authenticated

func NewExecuteSceneUnauthorized

func NewExecuteSceneUnauthorized() *ExecuteSceneUnauthorized

NewExecuteSceneUnauthorized creates a ExecuteSceneUnauthorized with default headers values

func (*ExecuteSceneUnauthorized) Error

func (o *ExecuteSceneUnauthorized) Error() string

type ListScenesDefault

type ListScenesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListScenesDefault handles this case with default header values.

Unexpected error

func NewListScenesDefault

func NewListScenesDefault(code int) *ListScenesDefault

NewListScenesDefault creates a ListScenesDefault with default headers values

func (*ListScenesDefault) Code

func (o *ListScenesDefault) Code() int

Code gets the status code for the list scenes default response

func (*ListScenesDefault) Error

func (o *ListScenesDefault) Error() string

type ListScenesForbidden

type ListScenesForbidden struct {
}

ListScenesForbidden handles this case with default header values.

Not authorized

func NewListScenesForbidden

func NewListScenesForbidden() *ListScenesForbidden

NewListScenesForbidden creates a ListScenesForbidden with default headers values

func (*ListScenesForbidden) Error

func (o *ListScenesForbidden) Error() string

type ListScenesOK

type ListScenesOK struct {
	Payload *models.ScenePagedResult
}

ListScenesOK handles this case with default header values.

The Scenes have been fetched

func NewListScenesOK

func NewListScenesOK() *ListScenesOK

NewListScenesOK creates a ListScenesOK with default headers values

func (*ListScenesOK) Error

func (o *ListScenesOK) Error() string

type ListScenesParams

type ListScenesParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location.

	*/
	LocationID string
	/*Max
	  The max number of items to return

	*/
	Max *int64
	/*Offset
	  The index where the list of items should start

	*/
	Offset *int64

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

ListScenesParams contains all the parameters to send to the API endpoint for the list scenes operation typically these are written to a http.Request

func NewListScenesParams

func NewListScenesParams() *ListScenesParams

NewListScenesParams creates a new ListScenesParams object with the default values initialized.

func NewListScenesParamsWithContext

func NewListScenesParamsWithContext(ctx context.Context) *ListScenesParams

NewListScenesParamsWithContext creates a new ListScenesParams object with the default values initialized, and the ability to set a context for a request

func NewListScenesParamsWithHTTPClient

func NewListScenesParamsWithHTTPClient(client *http.Client) *ListScenesParams

NewListScenesParamsWithHTTPClient creates a new ListScenesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListScenesParamsWithTimeout

func NewListScenesParamsWithTimeout(timeout time.Duration) *ListScenesParams

NewListScenesParamsWithTimeout creates a new ListScenesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListScenesParams) SetAuthorization

func (o *ListScenesParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the list scenes params

func (*ListScenesParams) SetContext

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

SetContext adds the context to the list scenes params

func (*ListScenesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list scenes params

func (*ListScenesParams) SetLocationID

func (o *ListScenesParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the list scenes params

func (*ListScenesParams) SetMax

func (o *ListScenesParams) SetMax(max *int64)

SetMax adds the max to the list scenes params

func (*ListScenesParams) SetOffset

func (o *ListScenesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list scenes params

func (*ListScenesParams) SetTimeout

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

SetTimeout adds the timeout to the list scenes params

func (*ListScenesParams) WithAuthorization

func (o *ListScenesParams) WithAuthorization(authorization string) *ListScenesParams

WithAuthorization adds the authorization to the list scenes params

func (*ListScenesParams) WithContext

func (o *ListScenesParams) WithContext(ctx context.Context) *ListScenesParams

WithContext adds the context to the list scenes params

func (*ListScenesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list scenes params

func (*ListScenesParams) WithLocationID

func (o *ListScenesParams) WithLocationID(locationID string) *ListScenesParams

WithLocationID adds the locationID to the list scenes params

func (*ListScenesParams) WithMax

func (o *ListScenesParams) WithMax(max *int64) *ListScenesParams

WithMax adds the max to the list scenes params

func (*ListScenesParams) WithOffset

func (o *ListScenesParams) WithOffset(offset *int64) *ListScenesParams

WithOffset adds the offset to the list scenes params

func (*ListScenesParams) WithTimeout

func (o *ListScenesParams) WithTimeout(timeout time.Duration) *ListScenesParams

WithTimeout adds the timeout to the list scenes params

func (*ListScenesParams) WriteToRequest

func (o *ListScenesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListScenesReader

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

ListScenesReader is a Reader for the ListScenes structure.

func (*ListScenesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListScenesTooManyRequests

type ListScenesTooManyRequests struct {
	Payload *models.ErrorResponse
}

ListScenesTooManyRequests handles this case with default header values.

Too many requests

func NewListScenesTooManyRequests

func NewListScenesTooManyRequests() *ListScenesTooManyRequests

NewListScenesTooManyRequests creates a ListScenesTooManyRequests with default headers values

func (*ListScenesTooManyRequests) Error

func (o *ListScenesTooManyRequests) Error() string

type ListScenesUnauthorized

type ListScenesUnauthorized struct {
}

ListScenesUnauthorized handles this case with default header values.

Not authenticated

func NewListScenesUnauthorized

func NewListScenesUnauthorized() *ListScenesUnauthorized

NewListScenesUnauthorized creates a ListScenesUnauthorized with default headers values

func (*ListScenesUnauthorized) Error

func (o *ListScenesUnauthorized) Error() string

Jump to

Keyboard shortcuts

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