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

modes

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeModeBadRequest

type ChangeModeBadRequest struct {
	Payload *models.ErrorResponse
}

ChangeModeBadRequest handles this case with default header values.

Bad request

func NewChangeModeBadRequest

func NewChangeModeBadRequest() *ChangeModeBadRequest

NewChangeModeBadRequest creates a ChangeModeBadRequest with default headers values

func (*ChangeModeBadRequest) Error

func (o *ChangeModeBadRequest) Error() string

type ChangeModeDefault

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

ChangeModeDefault handles this case with default header values.

Unexpected error

func NewChangeModeDefault

func NewChangeModeDefault(code int) *ChangeModeDefault

NewChangeModeDefault creates a ChangeModeDefault with default headers values

func (*ChangeModeDefault) Code

func (o *ChangeModeDefault) Code() int

Code gets the status code for the change mode default response

func (*ChangeModeDefault) Error

func (o *ChangeModeDefault) Error() string

type ChangeModeForbidden

type ChangeModeForbidden struct {
}

ChangeModeForbidden handles this case with default header values.

Forbidden

func NewChangeModeForbidden

func NewChangeModeForbidden() *ChangeModeForbidden

NewChangeModeForbidden creates a ChangeModeForbidden with default headers values

func (*ChangeModeForbidden) Error

func (o *ChangeModeForbidden) Error() string

type ChangeModeOK

type ChangeModeOK struct {
	Payload *models.Mode
}

ChangeModeOK handles this case with default header values.

Changed successfully.

func NewChangeModeOK

func NewChangeModeOK() *ChangeModeOK

NewChangeModeOK creates a ChangeModeOK with default headers values

func (*ChangeModeOK) Error

func (o *ChangeModeOK) Error() string

type ChangeModeParams

type ChangeModeParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string

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

ChangeModeParams contains all the parameters to send to the API endpoint for the change mode operation typically these are written to a http.Request

func NewChangeModeParams

func NewChangeModeParams() *ChangeModeParams

NewChangeModeParams creates a new ChangeModeParams object with the default values initialized.

func NewChangeModeParamsWithContext

func NewChangeModeParamsWithContext(ctx context.Context) *ChangeModeParams

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

func NewChangeModeParamsWithHTTPClient

func NewChangeModeParamsWithHTTPClient(client *http.Client) *ChangeModeParams

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

func NewChangeModeParamsWithTimeout

func NewChangeModeParamsWithTimeout(timeout time.Duration) *ChangeModeParams

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

func (*ChangeModeParams) SetAuthorization

func (o *ChangeModeParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the change mode params

func (*ChangeModeParams) SetChangeModeRequest

func (o *ChangeModeParams) SetChangeModeRequest(changeModeRequest *models.ChangeModeRequest)

SetChangeModeRequest adds the changeModeRequest to the change mode params

func (*ChangeModeParams) SetContext

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

SetContext adds the context to the change mode params

func (*ChangeModeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change mode params

func (*ChangeModeParams) SetLocationID

func (o *ChangeModeParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the change mode params

func (*ChangeModeParams) SetTimeout

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

SetTimeout adds the timeout to the change mode params

func (*ChangeModeParams) WithAuthorization

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

WithAuthorization adds the authorization to the change mode params

func (*ChangeModeParams) WithChangeModeRequest

func (o *ChangeModeParams) WithChangeModeRequest(changeModeRequest *models.ChangeModeRequest) *ChangeModeParams

WithChangeModeRequest adds the changeModeRequest to the change mode params

func (*ChangeModeParams) WithContext

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

WithContext adds the context to the change mode params

func (*ChangeModeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the change mode params

func (*ChangeModeParams) WithLocationID

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

WithLocationID adds the locationID to the change mode params

func (*ChangeModeParams) WithTimeout

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

WithTimeout adds the timeout to the change mode params

func (*ChangeModeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChangeModeReader

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

ChangeModeReader is a Reader for the ChangeMode structure.

func (*ChangeModeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChangeModeTooManyRequests

type ChangeModeTooManyRequests struct {
	Payload *models.ErrorResponse
}

ChangeModeTooManyRequests handles this case with default header values.

Too many requests

func NewChangeModeTooManyRequests

func NewChangeModeTooManyRequests() *ChangeModeTooManyRequests

NewChangeModeTooManyRequests creates a ChangeModeTooManyRequests with default headers values

func (*ChangeModeTooManyRequests) Error

func (o *ChangeModeTooManyRequests) Error() string

type ChangeModeUnauthorized

type ChangeModeUnauthorized struct {
}

ChangeModeUnauthorized handles this case with default header values.

Unauthorized

func NewChangeModeUnauthorized

func NewChangeModeUnauthorized() *ChangeModeUnauthorized

NewChangeModeUnauthorized creates a ChangeModeUnauthorized with default headers values

func (*ChangeModeUnauthorized) Error

func (o *ChangeModeUnauthorized) Error() string

type ChangeModeUnprocessableEntity

type ChangeModeUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

ChangeModeUnprocessableEntity handles this case with default header values.

Unprocessable Entity

func NewChangeModeUnprocessableEntity

func NewChangeModeUnprocessableEntity() *ChangeModeUnprocessableEntity

NewChangeModeUnprocessableEntity creates a ChangeModeUnprocessableEntity with default headers values

func (*ChangeModeUnprocessableEntity) Error

type Client

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

Client for modes API

func New

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

New creates a new modes API client.

func (*Client) ChangeMode

func (a *Client) ChangeMode(params *ChangeModeParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeModeOK, error)

ChangeMode changes the location s current mode

Change the location's current mode.

func (*Client) GetCurrentMode

func (a *Client) GetCurrentMode(params *GetCurrentModeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentModeOK, error)

GetCurrentMode gets the current location mode

Get current Mode of a Location.

func (*Client) GetMode

func (a *Client) GetMode(params *GetModeParams, authInfo runtime.ClientAuthInfoWriter) (*GetModeOK, error)

GetMode gets a mode

Get a specific Mode from a Location.

func (*Client) GetModes

func (a *Client) GetModes(params *GetModesParams, authInfo runtime.ClientAuthInfoWriter) (*GetModesOK, error)

GetModes gets the modes of a location

Get the Modes of a Location from a user's account.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateMode

func (a *Client) UpdateMode(params *UpdateModeParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateModeOK, error)

UpdateMode updates a mode

Update a Mode.

type GetCurrentModeBadRequest

type GetCurrentModeBadRequest struct {
	Payload *models.ErrorResponse
}

GetCurrentModeBadRequest handles this case with default header values.

Bad request

func NewGetCurrentModeBadRequest

func NewGetCurrentModeBadRequest() *GetCurrentModeBadRequest

NewGetCurrentModeBadRequest creates a GetCurrentModeBadRequest with default headers values

func (*GetCurrentModeBadRequest) Error

func (o *GetCurrentModeBadRequest) Error() string

type GetCurrentModeDefault

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

GetCurrentModeDefault handles this case with default header values.

Unexpected error

func NewGetCurrentModeDefault

func NewGetCurrentModeDefault(code int) *GetCurrentModeDefault

NewGetCurrentModeDefault creates a GetCurrentModeDefault with default headers values

func (*GetCurrentModeDefault) Code

func (o *GetCurrentModeDefault) Code() int

Code gets the status code for the get current mode default response

func (*GetCurrentModeDefault) Error

func (o *GetCurrentModeDefault) Error() string

type GetCurrentModeForbidden

type GetCurrentModeForbidden struct {
}

GetCurrentModeForbidden handles this case with default header values.

Forbidden

func NewGetCurrentModeForbidden

func NewGetCurrentModeForbidden() *GetCurrentModeForbidden

NewGetCurrentModeForbidden creates a GetCurrentModeForbidden with default headers values

func (*GetCurrentModeForbidden) Error

func (o *GetCurrentModeForbidden) Error() string

type GetCurrentModeOK

type GetCurrentModeOK struct {
	/*This header field describes the natural language(s) of the intended audience for the representation. This can have multiple values as per [RFC 7231, section 3.1.3.2](https://tools.ietf.org/html/rfc7231#section-3.1.3.2)
	 */
	ContentLanguage string

	Payload *models.Mode
}

GetCurrentModeOK handles this case with default header values.

The Mode.

func NewGetCurrentModeOK

func NewGetCurrentModeOK() *GetCurrentModeOK

NewGetCurrentModeOK creates a GetCurrentModeOK with default headers values

func (*GetCurrentModeOK) Error

func (o *GetCurrentModeOK) Error() string

type GetCurrentModeParams

type GetCurrentModeParams struct {

	/*AcceptLanguage
	  Language header representing the client's preferred language. The format of the `Accept-Language` header follows what is defined in [RFC 7231, section 5.3.5](https://tools.ietf.org/html/rfc7231#section-5.3.5)

	*/
	AcceptLanguage *string
	/*Authorization
	  OAuth token

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

	*/
	LocationID string

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

GetCurrentModeParams contains all the parameters to send to the API endpoint for the get current mode operation typically these are written to a http.Request

func NewGetCurrentModeParams

func NewGetCurrentModeParams() *GetCurrentModeParams

NewGetCurrentModeParams creates a new GetCurrentModeParams object with the default values initialized.

func NewGetCurrentModeParamsWithContext

func NewGetCurrentModeParamsWithContext(ctx context.Context) *GetCurrentModeParams

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

func NewGetCurrentModeParamsWithHTTPClient

func NewGetCurrentModeParamsWithHTTPClient(client *http.Client) *GetCurrentModeParams

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

func NewGetCurrentModeParamsWithTimeout

func NewGetCurrentModeParamsWithTimeout(timeout time.Duration) *GetCurrentModeParams

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

func (*GetCurrentModeParams) SetAcceptLanguage

func (o *GetCurrentModeParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the get current mode params

func (*GetCurrentModeParams) SetAuthorization

func (o *GetCurrentModeParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get current mode params

func (*GetCurrentModeParams) SetContext

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

SetContext adds the context to the get current mode params

func (*GetCurrentModeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current mode params

func (*GetCurrentModeParams) SetLocationID

func (o *GetCurrentModeParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the get current mode params

func (*GetCurrentModeParams) SetTimeout

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

SetTimeout adds the timeout to the get current mode params

func (*GetCurrentModeParams) WithAcceptLanguage

func (o *GetCurrentModeParams) WithAcceptLanguage(acceptLanguage *string) *GetCurrentModeParams

WithAcceptLanguage adds the acceptLanguage to the get current mode params

func (*GetCurrentModeParams) WithAuthorization

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

WithAuthorization adds the authorization to the get current mode params

func (*GetCurrentModeParams) WithContext

WithContext adds the context to the get current mode params

func (*GetCurrentModeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get current mode params

func (*GetCurrentModeParams) WithLocationID

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

WithLocationID adds the locationID to the get current mode params

func (*GetCurrentModeParams) WithTimeout

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

WithTimeout adds the timeout to the get current mode params

func (*GetCurrentModeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCurrentModeReader

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

GetCurrentModeReader is a Reader for the GetCurrentMode structure.

func (*GetCurrentModeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentModeTooManyRequests

type GetCurrentModeTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetCurrentModeTooManyRequests handles this case with default header values.

Too many requests

func NewGetCurrentModeTooManyRequests

func NewGetCurrentModeTooManyRequests() *GetCurrentModeTooManyRequests

NewGetCurrentModeTooManyRequests creates a GetCurrentModeTooManyRequests with default headers values

func (*GetCurrentModeTooManyRequests) Error

type GetCurrentModeUnauthorized

type GetCurrentModeUnauthorized struct {
}

GetCurrentModeUnauthorized handles this case with default header values.

Unauthorized

func NewGetCurrentModeUnauthorized

func NewGetCurrentModeUnauthorized() *GetCurrentModeUnauthorized

NewGetCurrentModeUnauthorized creates a GetCurrentModeUnauthorized with default headers values

func (*GetCurrentModeUnauthorized) Error

type GetModeBadRequest

type GetModeBadRequest struct {
	Payload *models.ErrorResponse
}

GetModeBadRequest handles this case with default header values.

Bad request

func NewGetModeBadRequest

func NewGetModeBadRequest() *GetModeBadRequest

NewGetModeBadRequest creates a GetModeBadRequest with default headers values

func (*GetModeBadRequest) Error

func (o *GetModeBadRequest) Error() string

type GetModeDefault

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

GetModeDefault handles this case with default header values.

Unexpected error

func NewGetModeDefault

func NewGetModeDefault(code int) *GetModeDefault

NewGetModeDefault creates a GetModeDefault with default headers values

func (*GetModeDefault) Code

func (o *GetModeDefault) Code() int

Code gets the status code for the get mode default response

func (*GetModeDefault) Error

func (o *GetModeDefault) Error() string

type GetModeForbidden

type GetModeForbidden struct {
}

GetModeForbidden handles this case with default header values.

Forbidden

func NewGetModeForbidden

func NewGetModeForbidden() *GetModeForbidden

NewGetModeForbidden creates a GetModeForbidden with default headers values

func (*GetModeForbidden) Error

func (o *GetModeForbidden) Error() string

type GetModeOK

type GetModeOK struct {
	/*This header field describes the natural language(s) of the intended audience for the representation. This can have multiple values as per [RFC 7231, section 3.1.3.2](https://tools.ietf.org/html/rfc7231#section-3.1.3.2)
	 */
	ContentLanguage string

	Payload *models.Mode
}

GetModeOK handles this case with default header values.

The Mode.

func NewGetModeOK

func NewGetModeOK() *GetModeOK

NewGetModeOK creates a GetModeOK with default headers values

func (*GetModeOK) Error

func (o *GetModeOK) Error() string

type GetModeParams

type GetModeParams struct {

	/*AcceptLanguage
	  Language header representing the client's preferred language. The format of the `Accept-Language` header follows what is defined in [RFC 7231, section 5.3.5](https://tools.ietf.org/html/rfc7231#section-5.3.5)

	*/
	AcceptLanguage *string
	/*Authorization
	  OAuth token

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

	*/
	LocationID string
	/*ModeID
	  The ID of the Mode.

	*/
	ModeID string

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

GetModeParams contains all the parameters to send to the API endpoint for the get mode operation typically these are written to a http.Request

func NewGetModeParams

func NewGetModeParams() *GetModeParams

NewGetModeParams creates a new GetModeParams object with the default values initialized.

func NewGetModeParamsWithContext

func NewGetModeParamsWithContext(ctx context.Context) *GetModeParams

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

func NewGetModeParamsWithHTTPClient

func NewGetModeParamsWithHTTPClient(client *http.Client) *GetModeParams

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

func NewGetModeParamsWithTimeout

func NewGetModeParamsWithTimeout(timeout time.Duration) *GetModeParams

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

func (*GetModeParams) SetAcceptLanguage

func (o *GetModeParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the get mode params

func (*GetModeParams) SetAuthorization

func (o *GetModeParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get mode params

func (*GetModeParams) SetContext

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

SetContext adds the context to the get mode params

func (*GetModeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get mode params

func (*GetModeParams) SetLocationID

func (o *GetModeParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the get mode params

func (*GetModeParams) SetModeID

func (o *GetModeParams) SetModeID(modeID string)

SetModeID adds the modeId to the get mode params

func (*GetModeParams) SetTimeout

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

SetTimeout adds the timeout to the get mode params

func (*GetModeParams) WithAcceptLanguage

func (o *GetModeParams) WithAcceptLanguage(acceptLanguage *string) *GetModeParams

WithAcceptLanguage adds the acceptLanguage to the get mode params

func (*GetModeParams) WithAuthorization

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

WithAuthorization adds the authorization to the get mode params

func (*GetModeParams) WithContext

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

WithContext adds the context to the get mode params

func (*GetModeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get mode params

func (*GetModeParams) WithLocationID

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

WithLocationID adds the locationID to the get mode params

func (*GetModeParams) WithModeID

func (o *GetModeParams) WithModeID(modeID string) *GetModeParams

WithModeID adds the modeID to the get mode params

func (*GetModeParams) WithTimeout

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

WithTimeout adds the timeout to the get mode params

func (*GetModeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetModeReader

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

GetModeReader is a Reader for the GetMode structure.

func (*GetModeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetModeTooManyRequests

type GetModeTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetModeTooManyRequests handles this case with default header values.

Too many requests

func NewGetModeTooManyRequests

func NewGetModeTooManyRequests() *GetModeTooManyRequests

NewGetModeTooManyRequests creates a GetModeTooManyRequests with default headers values

func (*GetModeTooManyRequests) Error

func (o *GetModeTooManyRequests) Error() string

type GetModeUnauthorized

type GetModeUnauthorized struct {
}

GetModeUnauthorized handles this case with default header values.

Unauthorized

func NewGetModeUnauthorized

func NewGetModeUnauthorized() *GetModeUnauthorized

NewGetModeUnauthorized creates a GetModeUnauthorized with default headers values

func (*GetModeUnauthorized) Error

func (o *GetModeUnauthorized) Error() string

type GetModesBadRequest

type GetModesBadRequest struct {
	Payload *models.ErrorResponse
}

GetModesBadRequest handles this case with default header values.

Bad request

func NewGetModesBadRequest

func NewGetModesBadRequest() *GetModesBadRequest

NewGetModesBadRequest creates a GetModesBadRequest with default headers values

func (*GetModesBadRequest) Error

func (o *GetModesBadRequest) Error() string

type GetModesDefault

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

GetModesDefault handles this case with default header values.

Unexpected error

func NewGetModesDefault

func NewGetModesDefault(code int) *GetModesDefault

NewGetModesDefault creates a GetModesDefault with default headers values

func (*GetModesDefault) Code

func (o *GetModesDefault) Code() int

Code gets the status code for the get modes default response

func (*GetModesDefault) Error

func (o *GetModesDefault) Error() string

type GetModesForbidden

type GetModesForbidden struct {
}

GetModesForbidden handles this case with default header values.

Forbidden

func NewGetModesForbidden

func NewGetModesForbidden() *GetModesForbidden

NewGetModesForbidden creates a GetModesForbidden with default headers values

func (*GetModesForbidden) Error

func (o *GetModesForbidden) Error() string

type GetModesOK

type GetModesOK struct {
	/*This header field describes the natural language(s) of the intended audience for the representation. This can have multiple values as per [RFC 7231, section 3.1.3.2](https://tools.ietf.org/html/rfc7231#section-3.1.3.2)
	 */
	ContentLanguage string

	Payload *models.ModesResponse
}

GetModesOK handles this case with default header values.

A List of Modes.

func NewGetModesOK

func NewGetModesOK() *GetModesOK

NewGetModesOK creates a GetModesOK with default headers values

func (*GetModesOK) Error

func (o *GetModesOK) Error() string

type GetModesParams

type GetModesParams struct {

	/*AcceptLanguage
	  Language header representing the client's preferred language. The format of the `Accept-Language` header follows what is defined in [RFC 7231, section 5.3.5](https://tools.ietf.org/html/rfc7231#section-5.3.5)

	*/
	AcceptLanguage *string
	/*Authorization
	  OAuth token

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

	*/
	LocationID string

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

GetModesParams contains all the parameters to send to the API endpoint for the get modes operation typically these are written to a http.Request

func NewGetModesParams

func NewGetModesParams() *GetModesParams

NewGetModesParams creates a new GetModesParams object with the default values initialized.

func NewGetModesParamsWithContext

func NewGetModesParamsWithContext(ctx context.Context) *GetModesParams

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

func NewGetModesParamsWithHTTPClient

func NewGetModesParamsWithHTTPClient(client *http.Client) *GetModesParams

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

func NewGetModesParamsWithTimeout

func NewGetModesParamsWithTimeout(timeout time.Duration) *GetModesParams

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

func (*GetModesParams) SetAcceptLanguage

func (o *GetModesParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the get modes params

func (*GetModesParams) SetAuthorization

func (o *GetModesParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get modes params

func (*GetModesParams) SetContext

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

SetContext adds the context to the get modes params

func (*GetModesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get modes params

func (*GetModesParams) SetLocationID

func (o *GetModesParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the get modes params

func (*GetModesParams) SetTimeout

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

SetTimeout adds the timeout to the get modes params

func (*GetModesParams) WithAcceptLanguage

func (o *GetModesParams) WithAcceptLanguage(acceptLanguage *string) *GetModesParams

WithAcceptLanguage adds the acceptLanguage to the get modes params

func (*GetModesParams) WithAuthorization

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

WithAuthorization adds the authorization to the get modes params

func (*GetModesParams) WithContext

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

WithContext adds the context to the get modes params

func (*GetModesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get modes params

func (*GetModesParams) WithLocationID

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

WithLocationID adds the locationID to the get modes params

func (*GetModesParams) WithTimeout

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

WithTimeout adds the timeout to the get modes params

func (*GetModesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetModesReader

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

GetModesReader is a Reader for the GetModes structure.

func (*GetModesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetModesTooManyRequests

type GetModesTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetModesTooManyRequests handles this case with default header values.

Too many requests

func NewGetModesTooManyRequests

func NewGetModesTooManyRequests() *GetModesTooManyRequests

NewGetModesTooManyRequests creates a GetModesTooManyRequests with default headers values

func (*GetModesTooManyRequests) Error

func (o *GetModesTooManyRequests) Error() string

type GetModesUnauthorized

type GetModesUnauthorized struct {
}

GetModesUnauthorized handles this case with default header values.

Unauthorized

func NewGetModesUnauthorized

func NewGetModesUnauthorized() *GetModesUnauthorized

NewGetModesUnauthorized creates a GetModesUnauthorized with default headers values

func (*GetModesUnauthorized) Error

func (o *GetModesUnauthorized) Error() string

type UpdateModeBadRequest

type UpdateModeBadRequest struct {
	Payload *models.ErrorResponse
}

UpdateModeBadRequest handles this case with default header values.

Bad request

func NewUpdateModeBadRequest

func NewUpdateModeBadRequest() *UpdateModeBadRequest

NewUpdateModeBadRequest creates a UpdateModeBadRequest with default headers values

func (*UpdateModeBadRequest) Error

func (o *UpdateModeBadRequest) Error() string

type UpdateModeDefault

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

UpdateModeDefault handles this case with default header values.

Unexpected error

func NewUpdateModeDefault

func NewUpdateModeDefault(code int) *UpdateModeDefault

NewUpdateModeDefault creates a UpdateModeDefault with default headers values

func (*UpdateModeDefault) Code

func (o *UpdateModeDefault) Code() int

Code gets the status code for the update mode default response

func (*UpdateModeDefault) Error

func (o *UpdateModeDefault) Error() string

type UpdateModeForbidden

type UpdateModeForbidden struct {
}

UpdateModeForbidden handles this case with default header values.

Forbidden

func NewUpdateModeForbidden

func NewUpdateModeForbidden() *UpdateModeForbidden

NewUpdateModeForbidden creates a UpdateModeForbidden with default headers values

func (*UpdateModeForbidden) Error

func (o *UpdateModeForbidden) Error() string

type UpdateModeOK

type UpdateModeOK struct {
	Payload *models.Mode
}

UpdateModeOK handles this case with default header values.

Created successfully.

func NewUpdateModeOK

func NewUpdateModeOK() *UpdateModeOK

NewUpdateModeOK creates a UpdateModeOK with default headers values

func (*UpdateModeOK) Error

func (o *UpdateModeOK) Error() string

type UpdateModeParams

type UpdateModeParams struct {

	/*AcceptLanguage
	  Language header representing the client's preferred language. The format of the `Accept-Language` header follows what is defined in [RFC 7231, section 5.3.5](https://tools.ietf.org/html/rfc7231#section-5.3.5)

	*/
	AcceptLanguage *string
	/*Authorization
	  OAuth token

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

	*/
	LocationID string
	/*ModeID
	  The ID of the Mode.

	*/
	ModeID string
	/*UpdateModeRequest*/
	UpdateModeRequest *models.UpdateModeRequest

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

UpdateModeParams contains all the parameters to send to the API endpoint for the update mode operation typically these are written to a http.Request

func NewUpdateModeParams

func NewUpdateModeParams() *UpdateModeParams

NewUpdateModeParams creates a new UpdateModeParams object with the default values initialized.

func NewUpdateModeParamsWithContext

func NewUpdateModeParamsWithContext(ctx context.Context) *UpdateModeParams

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

func NewUpdateModeParamsWithHTTPClient

func NewUpdateModeParamsWithHTTPClient(client *http.Client) *UpdateModeParams

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

func NewUpdateModeParamsWithTimeout

func NewUpdateModeParamsWithTimeout(timeout time.Duration) *UpdateModeParams

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

func (*UpdateModeParams) SetAcceptLanguage

func (o *UpdateModeParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the update mode params

func (*UpdateModeParams) SetAuthorization

func (o *UpdateModeParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the update mode params

func (*UpdateModeParams) SetContext

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

SetContext adds the context to the update mode params

func (*UpdateModeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update mode params

func (*UpdateModeParams) SetLocationID

func (o *UpdateModeParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the update mode params

func (*UpdateModeParams) SetModeID

func (o *UpdateModeParams) SetModeID(modeID string)

SetModeID adds the modeId to the update mode params

func (*UpdateModeParams) SetTimeout

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

SetTimeout adds the timeout to the update mode params

func (*UpdateModeParams) SetUpdateModeRequest

func (o *UpdateModeParams) SetUpdateModeRequest(updateModeRequest *models.UpdateModeRequest)

SetUpdateModeRequest adds the updateModeRequest to the update mode params

func (*UpdateModeParams) WithAcceptLanguage

func (o *UpdateModeParams) WithAcceptLanguage(acceptLanguage *string) *UpdateModeParams

WithAcceptLanguage adds the acceptLanguage to the update mode params

func (*UpdateModeParams) WithAuthorization

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

WithAuthorization adds the authorization to the update mode params

func (*UpdateModeParams) WithContext

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

WithContext adds the context to the update mode params

func (*UpdateModeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update mode params

func (*UpdateModeParams) WithLocationID

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

WithLocationID adds the locationID to the update mode params

func (*UpdateModeParams) WithModeID

func (o *UpdateModeParams) WithModeID(modeID string) *UpdateModeParams

WithModeID adds the modeID to the update mode params

func (*UpdateModeParams) WithTimeout

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

WithTimeout adds the timeout to the update mode params

func (*UpdateModeParams) WithUpdateModeRequest

func (o *UpdateModeParams) WithUpdateModeRequest(updateModeRequest *models.UpdateModeRequest) *UpdateModeParams

WithUpdateModeRequest adds the updateModeRequest to the update mode params

func (*UpdateModeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateModeReader

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

UpdateModeReader is a Reader for the UpdateMode structure.

func (*UpdateModeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateModeTooManyRequests

type UpdateModeTooManyRequests struct {
	Payload *models.ErrorResponse
}

UpdateModeTooManyRequests handles this case with default header values.

Too many requests

func NewUpdateModeTooManyRequests

func NewUpdateModeTooManyRequests() *UpdateModeTooManyRequests

NewUpdateModeTooManyRequests creates a UpdateModeTooManyRequests with default headers values

func (*UpdateModeTooManyRequests) Error

func (o *UpdateModeTooManyRequests) Error() string

type UpdateModeUnauthorized

type UpdateModeUnauthorized struct {
}

UpdateModeUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateModeUnauthorized

func NewUpdateModeUnauthorized() *UpdateModeUnauthorized

NewUpdateModeUnauthorized creates a UpdateModeUnauthorized with default headers values

func (*UpdateModeUnauthorized) Error

func (o *UpdateModeUnauthorized) Error() string

type UpdateModeUnprocessableEntity

type UpdateModeUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

UpdateModeUnprocessableEntity handles this case with default header values.

Unprocessable Entity

func NewUpdateModeUnprocessableEntity

func NewUpdateModeUnprocessableEntity() *UpdateModeUnprocessableEntity

NewUpdateModeUnprocessableEntity creates a UpdateModeUnprocessableEntity with default headers values

func (*UpdateModeUnprocessableEntity) Error

Jump to

Keyboard shortcuts

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