rooms

package
v0.0.0-...-97f4547 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for rooms API

func (*Client) CreateRoom

func (a *Client) CreateRoom(params *CreateRoomParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRoomOK, error)

CreateRoom creates a room

Create a Room for the Location.

func (*Client) DeleteRoom

func (a *Client) DeleteRoom(params *DeleteRoomParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRoomOK, error)

DeleteRoom deletes a room

Delete a Room from a location.

func (*Client) GetRoom

func (a *Client) GetRoom(params *GetRoomParams, authInfo runtime.ClientAuthInfoWriter) (*GetRoomOK, error)

GetRoom gets a room

Get a specific Room.

func (*Client) ListRooms

func (a *Client) ListRooms(params *ListRoomsParams, authInfo runtime.ClientAuthInfoWriter) (*ListRoomsOK, error)

ListRooms lists rooms

List all Rooms currently available in a Location.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRoom

func (a *Client) UpdateRoom(params *UpdateRoomParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRoomOK, error)

UpdateRoom updates a room

All the fields in the request body are optional. Only the specified fields will be updated.

type ClientService

type ClientService interface {
	CreateRoom(params *CreateRoomParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRoomOK, error)

	DeleteRoom(params *DeleteRoomParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRoomOK, error)

	GetRoom(params *GetRoomParams, authInfo runtime.ClientAuthInfoWriter) (*GetRoomOK, error)

	ListRooms(params *ListRoomsParams, authInfo runtime.ClientAuthInfoWriter) (*ListRoomsOK, error)

	UpdateRoom(params *UpdateRoomParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRoomOK, 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 rooms API client.

type CreateRoomBadRequest

type CreateRoomBadRequest struct {
	Payload *models.ErrorResponse
}

CreateRoomBadRequest handles this case with default header values.

Bad request

func NewCreateRoomBadRequest

func NewCreateRoomBadRequest() *CreateRoomBadRequest

NewCreateRoomBadRequest creates a CreateRoomBadRequest with default headers values

func (*CreateRoomBadRequest) Error

func (o *CreateRoomBadRequest) Error() string

func (*CreateRoomBadRequest) GetPayload

func (o *CreateRoomBadRequest) GetPayload() *models.ErrorResponse

type CreateRoomDefault

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

CreateRoomDefault handles this case with default header values.

Unexpected error

func NewCreateRoomDefault

func NewCreateRoomDefault(code int) *CreateRoomDefault

NewCreateRoomDefault creates a CreateRoomDefault with default headers values

func (*CreateRoomDefault) Code

func (o *CreateRoomDefault) Code() int

Code gets the status code for the create room default response

func (*CreateRoomDefault) Error

func (o *CreateRoomDefault) Error() string

func (*CreateRoomDefault) GetPayload

func (o *CreateRoomDefault) GetPayload() *models.ErrorResponse

type CreateRoomForbidden

type CreateRoomForbidden struct {
}

CreateRoomForbidden handles this case with default header values.

Forbidden

func NewCreateRoomForbidden

func NewCreateRoomForbidden() *CreateRoomForbidden

NewCreateRoomForbidden creates a CreateRoomForbidden with default headers values

func (*CreateRoomForbidden) Error

func (o *CreateRoomForbidden) Error() string

type CreateRoomOK

type CreateRoomOK struct {
	Payload *models.Room
}

CreateRoomOK handles this case with default header values.

Created successfully.

func NewCreateRoomOK

func NewCreateRoomOK() *CreateRoomOK

NewCreateRoomOK creates a CreateRoomOK with default headers values

func (*CreateRoomOK) Error

func (o *CreateRoomOK) Error() string

func (*CreateRoomOK) GetPayload

func (o *CreateRoomOK) GetPayload() *models.Room

type CreateRoomParams

type CreateRoomParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string

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

CreateRoomParams contains all the parameters to send to the API endpoint for the create room operation typically these are written to a http.Request

func NewCreateRoomParams

func NewCreateRoomParams() *CreateRoomParams

NewCreateRoomParams creates a new CreateRoomParams object with the default values initialized.

func NewCreateRoomParamsWithContext

func NewCreateRoomParamsWithContext(ctx context.Context) *CreateRoomParams

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

func NewCreateRoomParamsWithHTTPClient

func NewCreateRoomParamsWithHTTPClient(client *http.Client) *CreateRoomParams

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

func NewCreateRoomParamsWithTimeout

func NewCreateRoomParamsWithTimeout(timeout time.Duration) *CreateRoomParams

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

func (*CreateRoomParams) SetAuthorization

func (o *CreateRoomParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the create room params

func (*CreateRoomParams) SetContext

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

SetContext adds the context to the create room params

func (*CreateRoomParams) SetCreateRoomRequest

func (o *CreateRoomParams) SetCreateRoomRequest(createRoomRequest *models.CreateRoomRequest)

SetCreateRoomRequest adds the createRoomRequest to the create room params

func (*CreateRoomParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create room params

func (*CreateRoomParams) SetLocationID

func (o *CreateRoomParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the create room params

func (*CreateRoomParams) SetTimeout

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

SetTimeout adds the timeout to the create room params

func (*CreateRoomParams) WithAuthorization

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

WithAuthorization adds the authorization to the create room params

func (*CreateRoomParams) WithContext

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

WithContext adds the context to the create room params

func (*CreateRoomParams) WithCreateRoomRequest

func (o *CreateRoomParams) WithCreateRoomRequest(createRoomRequest *models.CreateRoomRequest) *CreateRoomParams

WithCreateRoomRequest adds the createRoomRequest to the create room params

func (*CreateRoomParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create room params

func (*CreateRoomParams) WithLocationID

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

WithLocationID adds the locationID to the create room params

func (*CreateRoomParams) WithTimeout

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

WithTimeout adds the timeout to the create room params

func (*CreateRoomParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRoomReader

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

CreateRoomReader is a Reader for the CreateRoom structure.

func (*CreateRoomReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRoomTooManyRequests

type CreateRoomTooManyRequests struct {
	Payload *models.ErrorResponse
}

CreateRoomTooManyRequests handles this case with default header values.

Too many requests

func NewCreateRoomTooManyRequests

func NewCreateRoomTooManyRequests() *CreateRoomTooManyRequests

NewCreateRoomTooManyRequests creates a CreateRoomTooManyRequests with default headers values

func (*CreateRoomTooManyRequests) Error

func (o *CreateRoomTooManyRequests) Error() string

func (*CreateRoomTooManyRequests) GetPayload

type CreateRoomUnauthorized

type CreateRoomUnauthorized struct {
}

CreateRoomUnauthorized handles this case with default header values.

Unauthorized

func NewCreateRoomUnauthorized

func NewCreateRoomUnauthorized() *CreateRoomUnauthorized

NewCreateRoomUnauthorized creates a CreateRoomUnauthorized with default headers values

func (*CreateRoomUnauthorized) Error

func (o *CreateRoomUnauthorized) Error() string

type CreateRoomUnprocessableEntity

type CreateRoomUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

CreateRoomUnprocessableEntity handles this case with default header values.

Unprocessable Entity

func NewCreateRoomUnprocessableEntity

func NewCreateRoomUnprocessableEntity() *CreateRoomUnprocessableEntity

NewCreateRoomUnprocessableEntity creates a CreateRoomUnprocessableEntity with default headers values

func (*CreateRoomUnprocessableEntity) Error

func (*CreateRoomUnprocessableEntity) GetPayload

type DeleteRoomBadRequest

type DeleteRoomBadRequest struct {
	Payload *models.ErrorResponse
}

DeleteRoomBadRequest handles this case with default header values.

Bad request

func NewDeleteRoomBadRequest

func NewDeleteRoomBadRequest() *DeleteRoomBadRequest

NewDeleteRoomBadRequest creates a DeleteRoomBadRequest with default headers values

func (*DeleteRoomBadRequest) Error

func (o *DeleteRoomBadRequest) Error() string

func (*DeleteRoomBadRequest) GetPayload

func (o *DeleteRoomBadRequest) GetPayload() *models.ErrorResponse

type DeleteRoomDefault

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

DeleteRoomDefault handles this case with default header values.

Unexpected error

func NewDeleteRoomDefault

func NewDeleteRoomDefault(code int) *DeleteRoomDefault

NewDeleteRoomDefault creates a DeleteRoomDefault with default headers values

func (*DeleteRoomDefault) Code

func (o *DeleteRoomDefault) Code() int

Code gets the status code for the delete room default response

func (*DeleteRoomDefault) Error

func (o *DeleteRoomDefault) Error() string

func (*DeleteRoomDefault) GetPayload

func (o *DeleteRoomDefault) GetPayload() *models.ErrorResponse

type DeleteRoomForbidden

type DeleteRoomForbidden struct {
}

DeleteRoomForbidden handles this case with default header values.

Forbidden

func NewDeleteRoomForbidden

func NewDeleteRoomForbidden() *DeleteRoomForbidden

NewDeleteRoomForbidden creates a DeleteRoomForbidden with default headers values

func (*DeleteRoomForbidden) Error

func (o *DeleteRoomForbidden) Error() string

type DeleteRoomOK

type DeleteRoomOK struct {
	Payload models.DeleteRoomResponse
}

DeleteRoomOK handles this case with default header values.

An empty object response.

func NewDeleteRoomOK

func NewDeleteRoomOK() *DeleteRoomOK

NewDeleteRoomOK creates a DeleteRoomOK with default headers values

func (*DeleteRoomOK) Error

func (o *DeleteRoomOK) Error() string

func (*DeleteRoomOK) GetPayload

func (o *DeleteRoomOK) GetPayload() models.DeleteRoomResponse

type DeleteRoomParams

type DeleteRoomParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string
	/*RoomID
	  The ID of the room.

	*/
	RoomID string

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

DeleteRoomParams contains all the parameters to send to the API endpoint for the delete room operation typically these are written to a http.Request

func NewDeleteRoomParams

func NewDeleteRoomParams() *DeleteRoomParams

NewDeleteRoomParams creates a new DeleteRoomParams object with the default values initialized.

func NewDeleteRoomParamsWithContext

func NewDeleteRoomParamsWithContext(ctx context.Context) *DeleteRoomParams

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

func NewDeleteRoomParamsWithHTTPClient

func NewDeleteRoomParamsWithHTTPClient(client *http.Client) *DeleteRoomParams

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

func NewDeleteRoomParamsWithTimeout

func NewDeleteRoomParamsWithTimeout(timeout time.Duration) *DeleteRoomParams

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

func (*DeleteRoomParams) SetAuthorization

func (o *DeleteRoomParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete room params

func (*DeleteRoomParams) SetContext

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

SetContext adds the context to the delete room params

func (*DeleteRoomParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete room params

func (*DeleteRoomParams) SetLocationID

func (o *DeleteRoomParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the delete room params

func (*DeleteRoomParams) SetRoomID

func (o *DeleteRoomParams) SetRoomID(roomID string)

SetRoomID adds the roomId to the delete room params

func (*DeleteRoomParams) SetTimeout

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

SetTimeout adds the timeout to the delete room params

func (*DeleteRoomParams) WithAuthorization

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

WithAuthorization adds the authorization to the delete room params

func (*DeleteRoomParams) WithContext

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

WithContext adds the context to the delete room params

func (*DeleteRoomParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete room params

func (*DeleteRoomParams) WithLocationID

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

WithLocationID adds the locationID to the delete room params

func (*DeleteRoomParams) WithRoomID

func (o *DeleteRoomParams) WithRoomID(roomID string) *DeleteRoomParams

WithRoomID adds the roomID to the delete room params

func (*DeleteRoomParams) WithTimeout

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

WithTimeout adds the timeout to the delete room params

func (*DeleteRoomParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRoomReader

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

DeleteRoomReader is a Reader for the DeleteRoom structure.

func (*DeleteRoomReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRoomTooManyRequests

type DeleteRoomTooManyRequests struct {
	Payload *models.ErrorResponse
}

DeleteRoomTooManyRequests handles this case with default header values.

Too many requests

func NewDeleteRoomTooManyRequests

func NewDeleteRoomTooManyRequests() *DeleteRoomTooManyRequests

NewDeleteRoomTooManyRequests creates a DeleteRoomTooManyRequests with default headers values

func (*DeleteRoomTooManyRequests) Error

func (o *DeleteRoomTooManyRequests) Error() string

func (*DeleteRoomTooManyRequests) GetPayload

type DeleteRoomUnauthorized

type DeleteRoomUnauthorized struct {
}

DeleteRoomUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteRoomUnauthorized

func NewDeleteRoomUnauthorized() *DeleteRoomUnauthorized

NewDeleteRoomUnauthorized creates a DeleteRoomUnauthorized with default headers values

func (*DeleteRoomUnauthorized) Error

func (o *DeleteRoomUnauthorized) Error() string

type GetRoomBadRequest

type GetRoomBadRequest struct {
	Payload *models.ErrorResponse
}

GetRoomBadRequest handles this case with default header values.

Bad request

func NewGetRoomBadRequest

func NewGetRoomBadRequest() *GetRoomBadRequest

NewGetRoomBadRequest creates a GetRoomBadRequest with default headers values

func (*GetRoomBadRequest) Error

func (o *GetRoomBadRequest) Error() string

func (*GetRoomBadRequest) GetPayload

func (o *GetRoomBadRequest) GetPayload() *models.ErrorResponse

type GetRoomDefault

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

GetRoomDefault handles this case with default header values.

Unexpected error

func NewGetRoomDefault

func NewGetRoomDefault(code int) *GetRoomDefault

NewGetRoomDefault creates a GetRoomDefault with default headers values

func (*GetRoomDefault) Code

func (o *GetRoomDefault) Code() int

Code gets the status code for the get room default response

func (*GetRoomDefault) Error

func (o *GetRoomDefault) Error() string

func (*GetRoomDefault) GetPayload

func (o *GetRoomDefault) GetPayload() *models.ErrorResponse

type GetRoomForbidden

type GetRoomForbidden struct {
}

GetRoomForbidden handles this case with default header values.

Forbidden

func NewGetRoomForbidden

func NewGetRoomForbidden() *GetRoomForbidden

NewGetRoomForbidden creates a GetRoomForbidden with default headers values

func (*GetRoomForbidden) Error

func (o *GetRoomForbidden) Error() string

type GetRoomOK

type GetRoomOK struct {
	Payload *models.Room
}

GetRoomOK handles this case with default header values.

A Room.

func NewGetRoomOK

func NewGetRoomOK() *GetRoomOK

NewGetRoomOK creates a GetRoomOK with default headers values

func (*GetRoomOK) Error

func (o *GetRoomOK) Error() string

func (*GetRoomOK) GetPayload

func (o *GetRoomOK) GetPayload() *models.Room

type GetRoomParams

type GetRoomParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string
	/*RoomID
	  The ID of the room.

	*/
	RoomID string

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

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

func NewGetRoomParams

func NewGetRoomParams() *GetRoomParams

NewGetRoomParams creates a new GetRoomParams object with the default values initialized.

func NewGetRoomParamsWithContext

func NewGetRoomParamsWithContext(ctx context.Context) *GetRoomParams

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

func NewGetRoomParamsWithHTTPClient

func NewGetRoomParamsWithHTTPClient(client *http.Client) *GetRoomParams

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

func NewGetRoomParamsWithTimeout

func NewGetRoomParamsWithTimeout(timeout time.Duration) *GetRoomParams

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

func (*GetRoomParams) SetAuthorization

func (o *GetRoomParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get room params

func (*GetRoomParams) SetContext

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

SetContext adds the context to the get room params

func (*GetRoomParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get room params

func (*GetRoomParams) SetLocationID

func (o *GetRoomParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the get room params

func (*GetRoomParams) SetRoomID

func (o *GetRoomParams) SetRoomID(roomID string)

SetRoomID adds the roomId to the get room params

func (*GetRoomParams) SetTimeout

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

SetTimeout adds the timeout to the get room params

func (*GetRoomParams) WithAuthorization

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

WithAuthorization adds the authorization to the get room params

func (*GetRoomParams) WithContext

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

WithContext adds the context to the get room params

func (*GetRoomParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get room params

func (*GetRoomParams) WithLocationID

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

WithLocationID adds the locationID to the get room params

func (*GetRoomParams) WithRoomID

func (o *GetRoomParams) WithRoomID(roomID string) *GetRoomParams

WithRoomID adds the roomID to the get room params

func (*GetRoomParams) WithTimeout

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

WithTimeout adds the timeout to the get room params

func (*GetRoomParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoomReader

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

GetRoomReader is a Reader for the GetRoom structure.

func (*GetRoomReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoomTooManyRequests

type GetRoomTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetRoomTooManyRequests handles this case with default header values.

Too many requests

func NewGetRoomTooManyRequests

func NewGetRoomTooManyRequests() *GetRoomTooManyRequests

NewGetRoomTooManyRequests creates a GetRoomTooManyRequests with default headers values

func (*GetRoomTooManyRequests) Error

func (o *GetRoomTooManyRequests) Error() string

func (*GetRoomTooManyRequests) GetPayload

func (o *GetRoomTooManyRequests) GetPayload() *models.ErrorResponse

type GetRoomUnauthorized

type GetRoomUnauthorized struct {
}

GetRoomUnauthorized handles this case with default header values.

Unauthorized

func NewGetRoomUnauthorized

func NewGetRoomUnauthorized() *GetRoomUnauthorized

NewGetRoomUnauthorized creates a GetRoomUnauthorized with default headers values

func (*GetRoomUnauthorized) Error

func (o *GetRoomUnauthorized) Error() string

type ListRoomsDefault

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

ListRoomsDefault handles this case with default header values.

Unexpected error

func NewListRoomsDefault

func NewListRoomsDefault(code int) *ListRoomsDefault

NewListRoomsDefault creates a ListRoomsDefault with default headers values

func (*ListRoomsDefault) Code

func (o *ListRoomsDefault) Code() int

Code gets the status code for the list rooms default response

func (*ListRoomsDefault) Error

func (o *ListRoomsDefault) Error() string

func (*ListRoomsDefault) GetPayload

func (o *ListRoomsDefault) GetPayload() *models.ErrorResponse

type ListRoomsForbidden

type ListRoomsForbidden struct {
}

ListRoomsForbidden handles this case with default header values.

Forbidden

func NewListRoomsForbidden

func NewListRoomsForbidden() *ListRoomsForbidden

NewListRoomsForbidden creates a ListRoomsForbidden with default headers values

func (*ListRoomsForbidden) Error

func (o *ListRoomsForbidden) Error() string

type ListRoomsOK

type ListRoomsOK struct {
	Payload *models.PagedRooms
}

ListRoomsOK handles this case with default header values.

An array of Rooms

func NewListRoomsOK

func NewListRoomsOK() *ListRoomsOK

NewListRoomsOK creates a ListRoomsOK with default headers values

func (*ListRoomsOK) Error

func (o *ListRoomsOK) Error() string

func (*ListRoomsOK) GetPayload

func (o *ListRoomsOK) GetPayload() *models.PagedRooms

type ListRoomsParams

type ListRoomsParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string

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

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

func NewListRoomsParams

func NewListRoomsParams() *ListRoomsParams

NewListRoomsParams creates a new ListRoomsParams object with the default values initialized.

func NewListRoomsParamsWithContext

func NewListRoomsParamsWithContext(ctx context.Context) *ListRoomsParams

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

func NewListRoomsParamsWithHTTPClient

func NewListRoomsParamsWithHTTPClient(client *http.Client) *ListRoomsParams

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

func NewListRoomsParamsWithTimeout

func NewListRoomsParamsWithTimeout(timeout time.Duration) *ListRoomsParams

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

func (*ListRoomsParams) SetAuthorization

func (o *ListRoomsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the list rooms params

func (*ListRoomsParams) SetContext

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

SetContext adds the context to the list rooms params

func (*ListRoomsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list rooms params

func (*ListRoomsParams) SetLocationID

func (o *ListRoomsParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the list rooms params

func (*ListRoomsParams) SetTimeout

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

SetTimeout adds the timeout to the list rooms params

func (*ListRoomsParams) WithAuthorization

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

WithAuthorization adds the authorization to the list rooms params

func (*ListRoomsParams) WithContext

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

WithContext adds the context to the list rooms params

func (*ListRoomsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list rooms params

func (*ListRoomsParams) WithLocationID

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

WithLocationID adds the locationID to the list rooms params

func (*ListRoomsParams) WithTimeout

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

WithTimeout adds the timeout to the list rooms params

func (*ListRoomsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRoomsReader

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

ListRoomsReader is a Reader for the ListRooms structure.

func (*ListRoomsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRoomsTooManyRequests

type ListRoomsTooManyRequests struct {
	Payload *models.ErrorResponse
}

ListRoomsTooManyRequests handles this case with default header values.

Too many requests

func NewListRoomsTooManyRequests

func NewListRoomsTooManyRequests() *ListRoomsTooManyRequests

NewListRoomsTooManyRequests creates a ListRoomsTooManyRequests with default headers values

func (*ListRoomsTooManyRequests) Error

func (o *ListRoomsTooManyRequests) Error() string

func (*ListRoomsTooManyRequests) GetPayload

type ListRoomsUnauthorized

type ListRoomsUnauthorized struct {
}

ListRoomsUnauthorized handles this case with default header values.

Unauthorized

func NewListRoomsUnauthorized

func NewListRoomsUnauthorized() *ListRoomsUnauthorized

NewListRoomsUnauthorized creates a ListRoomsUnauthorized with default headers values

func (*ListRoomsUnauthorized) Error

func (o *ListRoomsUnauthorized) Error() string

type UpdateRoomBadRequest

type UpdateRoomBadRequest struct {
	Payload *models.ErrorResponse
}

UpdateRoomBadRequest handles this case with default header values.

Bad request

func NewUpdateRoomBadRequest

func NewUpdateRoomBadRequest() *UpdateRoomBadRequest

NewUpdateRoomBadRequest creates a UpdateRoomBadRequest with default headers values

func (*UpdateRoomBadRequest) Error

func (o *UpdateRoomBadRequest) Error() string

func (*UpdateRoomBadRequest) GetPayload

func (o *UpdateRoomBadRequest) GetPayload() *models.ErrorResponse

type UpdateRoomDefault

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

UpdateRoomDefault handles this case with default header values.

Unexpected error

func NewUpdateRoomDefault

func NewUpdateRoomDefault(code int) *UpdateRoomDefault

NewUpdateRoomDefault creates a UpdateRoomDefault with default headers values

func (*UpdateRoomDefault) Code

func (o *UpdateRoomDefault) Code() int

Code gets the status code for the update room default response

func (*UpdateRoomDefault) Error

func (o *UpdateRoomDefault) Error() string

func (*UpdateRoomDefault) GetPayload

func (o *UpdateRoomDefault) GetPayload() *models.ErrorResponse

type UpdateRoomForbidden

type UpdateRoomForbidden struct {
}

UpdateRoomForbidden handles this case with default header values.

Forbidden

func NewUpdateRoomForbidden

func NewUpdateRoomForbidden() *UpdateRoomForbidden

NewUpdateRoomForbidden creates a UpdateRoomForbidden with default headers values

func (*UpdateRoomForbidden) Error

func (o *UpdateRoomForbidden) Error() string

type UpdateRoomOK

type UpdateRoomOK struct {
	Payload *models.Room
}

UpdateRoomOK handles this case with default header values.

A Room.

func NewUpdateRoomOK

func NewUpdateRoomOK() *UpdateRoomOK

NewUpdateRoomOK creates a UpdateRoomOK with default headers values

func (*UpdateRoomOK) Error

func (o *UpdateRoomOK) Error() string

func (*UpdateRoomOK) GetPayload

func (o *UpdateRoomOK) GetPayload() *models.Room

type UpdateRoomParams

type UpdateRoomParams struct {

	/*Authorization
	  OAuth token

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

	*/
	LocationID string
	/*RoomID
	  The ID of the room.

	*/
	RoomID string
	/*UpdateRoomRequest*/
	UpdateRoomRequest *models.UpdateRoomRequest

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

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

func NewUpdateRoomParams

func NewUpdateRoomParams() *UpdateRoomParams

NewUpdateRoomParams creates a new UpdateRoomParams object with the default values initialized.

func NewUpdateRoomParamsWithContext

func NewUpdateRoomParamsWithContext(ctx context.Context) *UpdateRoomParams

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

func NewUpdateRoomParamsWithHTTPClient

func NewUpdateRoomParamsWithHTTPClient(client *http.Client) *UpdateRoomParams

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

func NewUpdateRoomParamsWithTimeout

func NewUpdateRoomParamsWithTimeout(timeout time.Duration) *UpdateRoomParams

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

func (*UpdateRoomParams) SetAuthorization

func (o *UpdateRoomParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the update room params

func (*UpdateRoomParams) SetContext

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

SetContext adds the context to the update room params

func (*UpdateRoomParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update room params

func (*UpdateRoomParams) SetLocationID

func (o *UpdateRoomParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the update room params

func (*UpdateRoomParams) SetRoomID

func (o *UpdateRoomParams) SetRoomID(roomID string)

SetRoomID adds the roomId to the update room params

func (*UpdateRoomParams) SetTimeout

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

SetTimeout adds the timeout to the update room params

func (*UpdateRoomParams) SetUpdateRoomRequest

func (o *UpdateRoomParams) SetUpdateRoomRequest(updateRoomRequest *models.UpdateRoomRequest)

SetUpdateRoomRequest adds the updateRoomRequest to the update room params

func (*UpdateRoomParams) WithAuthorization

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

WithAuthorization adds the authorization to the update room params

func (*UpdateRoomParams) WithContext

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

WithContext adds the context to the update room params

func (*UpdateRoomParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update room params

func (*UpdateRoomParams) WithLocationID

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

WithLocationID adds the locationID to the update room params

func (*UpdateRoomParams) WithRoomID

func (o *UpdateRoomParams) WithRoomID(roomID string) *UpdateRoomParams

WithRoomID adds the roomID to the update room params

func (*UpdateRoomParams) WithTimeout

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

WithTimeout adds the timeout to the update room params

func (*UpdateRoomParams) WithUpdateRoomRequest

func (o *UpdateRoomParams) WithUpdateRoomRequest(updateRoomRequest *models.UpdateRoomRequest) *UpdateRoomParams

WithUpdateRoomRequest adds the updateRoomRequest to the update room params

func (*UpdateRoomParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRoomReader

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

UpdateRoomReader is a Reader for the UpdateRoom structure.

func (*UpdateRoomReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRoomTooManyRequests

type UpdateRoomTooManyRequests struct {
	Payload *models.ErrorResponse
}

UpdateRoomTooManyRequests handles this case with default header values.

Too many requests

func NewUpdateRoomTooManyRequests

func NewUpdateRoomTooManyRequests() *UpdateRoomTooManyRequests

NewUpdateRoomTooManyRequests creates a UpdateRoomTooManyRequests with default headers values

func (*UpdateRoomTooManyRequests) Error

func (o *UpdateRoomTooManyRequests) Error() string

func (*UpdateRoomTooManyRequests) GetPayload

type UpdateRoomUnauthorized

type UpdateRoomUnauthorized struct {
}

UpdateRoomUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateRoomUnauthorized

func NewUpdateRoomUnauthorized() *UpdateRoomUnauthorized

NewUpdateRoomUnauthorized creates a UpdateRoomUnauthorized with default headers values

func (*UpdateRoomUnauthorized) Error

func (o *UpdateRoomUnauthorized) Error() string

type UpdateRoomUnprocessableEntity

type UpdateRoomUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

UpdateRoomUnprocessableEntity handles this case with default header values.

Unprocessable Entity

func NewUpdateRoomUnprocessableEntity

func NewUpdateRoomUnprocessableEntity() *UpdateRoomUnprocessableEntity

NewUpdateRoomUnprocessableEntity creates a UpdateRoomUnprocessableEntity with default headers values

func (*UpdateRoomUnprocessableEntity) Error

func (*UpdateRoomUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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