chat

package
v0.0.0-...-e2f0fdc Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 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 API

type API interface {
	/*
	   GetChatSettings gets chat settings
	   This route is deprecated, please use /chats/settings instead
	*/
	GetChatSettings(ctx context.Context, params *GetChatSettingsParams) (*GetChatSettingsOK, error)
	/*
	   GetChatsSettings gets chat settings
	*/
	GetChatsSettings(ctx context.Context, params *GetChatsSettingsParams) (*GetChatsSettingsOK, error)
	/*
	   PatchChatSettings patches chat settings
	   This route is deprecated, please use /chats/settings instead
	*/
	PatchChatSettings(ctx context.Context, params *PatchChatSettingsParams) (*PatchChatSettingsOK, error)
	/*
	   PatchChatsSettings patches chat settings
	*/
	PatchChatsSettings(ctx context.Context, params *PatchChatsSettingsParams) (*PatchChatsSettingsOK, error)
	/*
	   PutChatSettings updates chat settings
	   This route is deprecated, please use /chats/settings instead
	*/
	PutChatSettings(ctx context.Context, params *PutChatSettingsParams) (*PutChatSettingsOK, error)
	/*
	   PutChatsSettings updates chat settings
	*/
	PutChatsSettings(ctx context.Context, params *PutChatsSettingsParams) (*PutChatsSettingsOK, error)
}

API is the interface of the chat client

type Client

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

Client for chat API

func New

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

New creates a new chat API client.

func (*Client) GetChatSettings

func (a *Client) GetChatSettings(ctx context.Context, params *GetChatSettingsParams) (*GetChatSettingsOK, error)

GetChatSettings gets chat settings

This route is deprecated, please use /chats/settings instead

func (*Client) GetChatsSettings

func (a *Client) GetChatsSettings(ctx context.Context, params *GetChatsSettingsParams) (*GetChatsSettingsOK, error)

GetChatsSettings gets chat settings

func (*Client) PatchChatSettings

func (a *Client) PatchChatSettings(ctx context.Context, params *PatchChatSettingsParams) (*PatchChatSettingsOK, error)

PatchChatSettings patches chat settings

This route is deprecated, please use /chats/settings instead

func (*Client) PatchChatsSettings

func (a *Client) PatchChatsSettings(ctx context.Context, params *PatchChatsSettingsParams) (*PatchChatsSettingsOK, error)

PatchChatsSettings patches chat settings

func (*Client) PutChatSettings

func (a *Client) PutChatSettings(ctx context.Context, params *PutChatSettingsParams) (*PutChatSettingsOK, error)

PutChatSettings updates chat settings

This route is deprecated, please use /chats/settings instead

func (*Client) PutChatsSettings

func (a *Client) PutChatsSettings(ctx context.Context, params *PutChatsSettingsParams) (*PutChatsSettingsOK, error)

PutChatsSettings updates chat settings

type GetChatSettingsBadRequest

type GetChatSettingsBadRequest struct {
	Payload *models.ErrorBody
}

GetChatSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewGetChatSettingsBadRequest

func NewGetChatSettingsBadRequest() *GetChatSettingsBadRequest

NewGetChatSettingsBadRequest creates a GetChatSettingsBadRequest with default headers values

func (*GetChatSettingsBadRequest) Error

func (o *GetChatSettingsBadRequest) Error() string

func (*GetChatSettingsBadRequest) GetPayload

func (o *GetChatSettingsBadRequest) GetPayload() *models.ErrorBody

func (*GetChatSettingsBadRequest) IsClientError

func (o *GetChatSettingsBadRequest) IsClientError() bool

IsClientError returns true when this get chat settings bad request response has a 4xx status code

func (*GetChatSettingsBadRequest) IsCode

func (o *GetChatSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this get chat settings bad request response a status code equal to that given

func (*GetChatSettingsBadRequest) IsRedirect

func (o *GetChatSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this get chat settings bad request response has a 3xx status code

func (*GetChatSettingsBadRequest) IsServerError

func (o *GetChatSettingsBadRequest) IsServerError() bool

IsServerError returns true when this get chat settings bad request response has a 5xx status code

func (*GetChatSettingsBadRequest) IsSuccess

func (o *GetChatSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this get chat settings bad request response has a 2xx status code

func (*GetChatSettingsBadRequest) String

func (o *GetChatSettingsBadRequest) String() string

type GetChatSettingsForbidden

type GetChatSettingsForbidden struct {
	Payload *models.ErrorBody
}

GetChatSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewGetChatSettingsForbidden

func NewGetChatSettingsForbidden() *GetChatSettingsForbidden

NewGetChatSettingsForbidden creates a GetChatSettingsForbidden with default headers values

func (*GetChatSettingsForbidden) Error

func (o *GetChatSettingsForbidden) Error() string

func (*GetChatSettingsForbidden) GetPayload

func (o *GetChatSettingsForbidden) GetPayload() *models.ErrorBody

func (*GetChatSettingsForbidden) IsClientError

func (o *GetChatSettingsForbidden) IsClientError() bool

IsClientError returns true when this get chat settings forbidden response has a 4xx status code

func (*GetChatSettingsForbidden) IsCode

func (o *GetChatSettingsForbidden) IsCode(code int) bool

IsCode returns true when this get chat settings forbidden response a status code equal to that given

func (*GetChatSettingsForbidden) IsRedirect

func (o *GetChatSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this get chat settings forbidden response has a 3xx status code

func (*GetChatSettingsForbidden) IsServerError

func (o *GetChatSettingsForbidden) IsServerError() bool

IsServerError returns true when this get chat settings forbidden response has a 5xx status code

func (*GetChatSettingsForbidden) IsSuccess

func (o *GetChatSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this get chat settings forbidden response has a 2xx status code

func (*GetChatSettingsForbidden) String

func (o *GetChatSettingsForbidden) String() string

type GetChatSettingsGatewayTimeout

type GetChatSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

GetChatSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewGetChatSettingsGatewayTimeout

func NewGetChatSettingsGatewayTimeout() *GetChatSettingsGatewayTimeout

NewGetChatSettingsGatewayTimeout creates a GetChatSettingsGatewayTimeout with default headers values

func (*GetChatSettingsGatewayTimeout) Error

func (*GetChatSettingsGatewayTimeout) GetPayload

func (*GetChatSettingsGatewayTimeout) IsClientError

func (o *GetChatSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this get chat settings gateway timeout response has a 4xx status code

func (*GetChatSettingsGatewayTimeout) IsCode

func (o *GetChatSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this get chat settings gateway timeout response a status code equal to that given

func (*GetChatSettingsGatewayTimeout) IsRedirect

func (o *GetChatSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this get chat settings gateway timeout response has a 3xx status code

func (*GetChatSettingsGatewayTimeout) IsServerError

func (o *GetChatSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this get chat settings gateway timeout response has a 5xx status code

func (*GetChatSettingsGatewayTimeout) IsSuccess

func (o *GetChatSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this get chat settings gateway timeout response has a 2xx status code

func (*GetChatSettingsGatewayTimeout) String

type GetChatSettingsInternalServerError

type GetChatSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

GetChatSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewGetChatSettingsInternalServerError

func NewGetChatSettingsInternalServerError() *GetChatSettingsInternalServerError

NewGetChatSettingsInternalServerError creates a GetChatSettingsInternalServerError with default headers values

func (*GetChatSettingsInternalServerError) Error

func (*GetChatSettingsInternalServerError) GetPayload

func (*GetChatSettingsInternalServerError) IsClientError

func (o *GetChatSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this get chat settings internal server error response has a 4xx status code

func (*GetChatSettingsInternalServerError) IsCode

IsCode returns true when this get chat settings internal server error response a status code equal to that given

func (*GetChatSettingsInternalServerError) IsRedirect

func (o *GetChatSettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get chat settings internal server error response has a 3xx status code

func (*GetChatSettingsInternalServerError) IsServerError

func (o *GetChatSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this get chat settings internal server error response has a 5xx status code

func (*GetChatSettingsInternalServerError) IsSuccess

IsSuccess returns true when this get chat settings internal server error response has a 2xx status code

func (*GetChatSettingsInternalServerError) String

type GetChatSettingsNotFound

type GetChatSettingsNotFound struct {
	Payload *models.ErrorBody
}

GetChatSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewGetChatSettingsNotFound

func NewGetChatSettingsNotFound() *GetChatSettingsNotFound

NewGetChatSettingsNotFound creates a GetChatSettingsNotFound with default headers values

func (*GetChatSettingsNotFound) Error

func (o *GetChatSettingsNotFound) Error() string

func (*GetChatSettingsNotFound) GetPayload

func (o *GetChatSettingsNotFound) GetPayload() *models.ErrorBody

func (*GetChatSettingsNotFound) IsClientError

func (o *GetChatSettingsNotFound) IsClientError() bool

IsClientError returns true when this get chat settings not found response has a 4xx status code

func (*GetChatSettingsNotFound) IsCode

func (o *GetChatSettingsNotFound) IsCode(code int) bool

IsCode returns true when this get chat settings not found response a status code equal to that given

func (*GetChatSettingsNotFound) IsRedirect

func (o *GetChatSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this get chat settings not found response has a 3xx status code

func (*GetChatSettingsNotFound) IsServerError

func (o *GetChatSettingsNotFound) IsServerError() bool

IsServerError returns true when this get chat settings not found response has a 5xx status code

func (*GetChatSettingsNotFound) IsSuccess

func (o *GetChatSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this get chat settings not found response has a 2xx status code

func (*GetChatSettingsNotFound) String

func (o *GetChatSettingsNotFound) String() string

type GetChatSettingsOK

type GetChatSettingsOK struct {
	Payload *models.ChatSettings
}

GetChatSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewGetChatSettingsOK

func NewGetChatSettingsOK() *GetChatSettingsOK

NewGetChatSettingsOK creates a GetChatSettingsOK with default headers values

func (*GetChatSettingsOK) Error

func (o *GetChatSettingsOK) Error() string

func (*GetChatSettingsOK) GetPayload

func (o *GetChatSettingsOK) GetPayload() *models.ChatSettings

func (*GetChatSettingsOK) IsClientError

func (o *GetChatSettingsOK) IsClientError() bool

IsClientError returns true when this get chat settings o k response has a 4xx status code

func (*GetChatSettingsOK) IsCode

func (o *GetChatSettingsOK) IsCode(code int) bool

IsCode returns true when this get chat settings o k response a status code equal to that given

func (*GetChatSettingsOK) IsRedirect

func (o *GetChatSettingsOK) IsRedirect() bool

IsRedirect returns true when this get chat settings o k response has a 3xx status code

func (*GetChatSettingsOK) IsServerError

func (o *GetChatSettingsOK) IsServerError() bool

IsServerError returns true when this get chat settings o k response has a 5xx status code

func (*GetChatSettingsOK) IsSuccess

func (o *GetChatSettingsOK) IsSuccess() bool

IsSuccess returns true when this get chat settings o k response has a 2xx status code

func (*GetChatSettingsOK) String

func (o *GetChatSettingsOK) String() string

type GetChatSettingsParams

type GetChatSettingsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetChatSettingsParams contains all the parameters to send to the API endpoint

for the get chat settings operation.

Typically these are written to a http.Request.

func NewGetChatSettingsParams

func NewGetChatSettingsParams() *GetChatSettingsParams

NewGetChatSettingsParams creates a new GetChatSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetChatSettingsParamsWithContext

func NewGetChatSettingsParamsWithContext(ctx context.Context) *GetChatSettingsParams

NewGetChatSettingsParamsWithContext creates a new GetChatSettingsParams object with the ability to set a context for a request.

func NewGetChatSettingsParamsWithHTTPClient

func NewGetChatSettingsParamsWithHTTPClient(client *http.Client) *GetChatSettingsParams

NewGetChatSettingsParamsWithHTTPClient creates a new GetChatSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewGetChatSettingsParamsWithTimeout

func NewGetChatSettingsParamsWithTimeout(timeout time.Duration) *GetChatSettingsParams

NewGetChatSettingsParamsWithTimeout creates a new GetChatSettingsParams object with the ability to set a timeout on a request.

func (*GetChatSettingsParams) SetContext

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

SetContext adds the context to the get chat settings params

func (*GetChatSettingsParams) SetDefaults

func (o *GetChatSettingsParams) SetDefaults()

SetDefaults hydrates default values in the get chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*GetChatSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chat settings params

func (*GetChatSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the get chat settings params

func (*GetChatSettingsParams) WithContext

WithContext adds the context to the get chat settings params

func (*GetChatSettingsParams) WithDefaults

func (o *GetChatSettingsParams) WithDefaults() *GetChatSettingsParams

WithDefaults hydrates default values in the get chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*GetChatSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get chat settings params

func (*GetChatSettingsParams) WithTimeout

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

WithTimeout adds the timeout to the get chat settings params

func (*GetChatSettingsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetChatSettingsReader

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

GetChatSettingsReader is a Reader for the GetChatSettings structure.

func (*GetChatSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatSettingsRequestEntityTooLarge

type GetChatSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

GetChatSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewGetChatSettingsRequestEntityTooLarge

func NewGetChatSettingsRequestEntityTooLarge() *GetChatSettingsRequestEntityTooLarge

NewGetChatSettingsRequestEntityTooLarge creates a GetChatSettingsRequestEntityTooLarge with default headers values

func (*GetChatSettingsRequestEntityTooLarge) Error

func (*GetChatSettingsRequestEntityTooLarge) GetPayload

func (*GetChatSettingsRequestEntityTooLarge) IsClientError

func (o *GetChatSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this get chat settings request entity too large response has a 4xx status code

func (*GetChatSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this get chat settings request entity too large response a status code equal to that given

func (*GetChatSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this get chat settings request entity too large response has a 3xx status code

func (*GetChatSettingsRequestEntityTooLarge) IsServerError

func (o *GetChatSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this get chat settings request entity too large response has a 5xx status code

func (*GetChatSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this get chat settings request entity too large response has a 2xx status code

func (*GetChatSettingsRequestEntityTooLarge) String

type GetChatSettingsRequestTimeout

type GetChatSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

GetChatSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewGetChatSettingsRequestTimeout

func NewGetChatSettingsRequestTimeout() *GetChatSettingsRequestTimeout

NewGetChatSettingsRequestTimeout creates a GetChatSettingsRequestTimeout with default headers values

func (*GetChatSettingsRequestTimeout) Error

func (*GetChatSettingsRequestTimeout) GetPayload

func (*GetChatSettingsRequestTimeout) IsClientError

func (o *GetChatSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this get chat settings request timeout response has a 4xx status code

func (*GetChatSettingsRequestTimeout) IsCode

func (o *GetChatSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this get chat settings request timeout response a status code equal to that given

func (*GetChatSettingsRequestTimeout) IsRedirect

func (o *GetChatSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this get chat settings request timeout response has a 3xx status code

func (*GetChatSettingsRequestTimeout) IsServerError

func (o *GetChatSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this get chat settings request timeout response has a 5xx status code

func (*GetChatSettingsRequestTimeout) IsSuccess

func (o *GetChatSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this get chat settings request timeout response has a 2xx status code

func (*GetChatSettingsRequestTimeout) String

type GetChatSettingsServiceUnavailable

type GetChatSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

GetChatSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewGetChatSettingsServiceUnavailable

func NewGetChatSettingsServiceUnavailable() *GetChatSettingsServiceUnavailable

NewGetChatSettingsServiceUnavailable creates a GetChatSettingsServiceUnavailable with default headers values

func (*GetChatSettingsServiceUnavailable) Error

func (*GetChatSettingsServiceUnavailable) GetPayload

func (*GetChatSettingsServiceUnavailable) IsClientError

func (o *GetChatSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this get chat settings service unavailable response has a 4xx status code

func (*GetChatSettingsServiceUnavailable) IsCode

func (o *GetChatSettingsServiceUnavailable) IsCode(code int) bool

IsCode returns true when this get chat settings service unavailable response a status code equal to that given

func (*GetChatSettingsServiceUnavailable) IsRedirect

func (o *GetChatSettingsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get chat settings service unavailable response has a 3xx status code

func (*GetChatSettingsServiceUnavailable) IsServerError

func (o *GetChatSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this get chat settings service unavailable response has a 5xx status code

func (*GetChatSettingsServiceUnavailable) IsSuccess

func (o *GetChatSettingsServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get chat settings service unavailable response has a 2xx status code

func (*GetChatSettingsServiceUnavailable) String

type GetChatSettingsTooManyRequests

type GetChatSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

GetChatSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewGetChatSettingsTooManyRequests

func NewGetChatSettingsTooManyRequests() *GetChatSettingsTooManyRequests

NewGetChatSettingsTooManyRequests creates a GetChatSettingsTooManyRequests with default headers values

func (*GetChatSettingsTooManyRequests) Error

func (*GetChatSettingsTooManyRequests) GetPayload

func (*GetChatSettingsTooManyRequests) IsClientError

func (o *GetChatSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this get chat settings too many requests response has a 4xx status code

func (*GetChatSettingsTooManyRequests) IsCode

func (o *GetChatSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this get chat settings too many requests response a status code equal to that given

func (*GetChatSettingsTooManyRequests) IsRedirect

func (o *GetChatSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get chat settings too many requests response has a 3xx status code

func (*GetChatSettingsTooManyRequests) IsServerError

func (o *GetChatSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this get chat settings too many requests response has a 5xx status code

func (*GetChatSettingsTooManyRequests) IsSuccess

func (o *GetChatSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get chat settings too many requests response has a 2xx status code

func (*GetChatSettingsTooManyRequests) String

type GetChatSettingsUnauthorized

type GetChatSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

GetChatSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewGetChatSettingsUnauthorized

func NewGetChatSettingsUnauthorized() *GetChatSettingsUnauthorized

NewGetChatSettingsUnauthorized creates a GetChatSettingsUnauthorized with default headers values

func (*GetChatSettingsUnauthorized) Error

func (*GetChatSettingsUnauthorized) GetPayload

func (o *GetChatSettingsUnauthorized) GetPayload() *models.ErrorBody

func (*GetChatSettingsUnauthorized) IsClientError

func (o *GetChatSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this get chat settings unauthorized response has a 4xx status code

func (*GetChatSettingsUnauthorized) IsCode

func (o *GetChatSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this get chat settings unauthorized response a status code equal to that given

func (*GetChatSettingsUnauthorized) IsRedirect

func (o *GetChatSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get chat settings unauthorized response has a 3xx status code

func (*GetChatSettingsUnauthorized) IsServerError

func (o *GetChatSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this get chat settings unauthorized response has a 5xx status code

func (*GetChatSettingsUnauthorized) IsSuccess

func (o *GetChatSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get chat settings unauthorized response has a 2xx status code

func (*GetChatSettingsUnauthorized) String

func (o *GetChatSettingsUnauthorized) String() string

type GetChatSettingsUnsupportedMediaType

type GetChatSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

GetChatSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewGetChatSettingsUnsupportedMediaType

func NewGetChatSettingsUnsupportedMediaType() *GetChatSettingsUnsupportedMediaType

NewGetChatSettingsUnsupportedMediaType creates a GetChatSettingsUnsupportedMediaType with default headers values

func (*GetChatSettingsUnsupportedMediaType) Error

func (*GetChatSettingsUnsupportedMediaType) GetPayload

func (*GetChatSettingsUnsupportedMediaType) IsClientError

func (o *GetChatSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this get chat settings unsupported media type response has a 4xx status code

func (*GetChatSettingsUnsupportedMediaType) IsCode

IsCode returns true when this get chat settings unsupported media type response a status code equal to that given

func (*GetChatSettingsUnsupportedMediaType) IsRedirect

func (o *GetChatSettingsUnsupportedMediaType) IsRedirect() bool

IsRedirect returns true when this get chat settings unsupported media type response has a 3xx status code

func (*GetChatSettingsUnsupportedMediaType) IsServerError

func (o *GetChatSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this get chat settings unsupported media type response has a 5xx status code

func (*GetChatSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this get chat settings unsupported media type response has a 2xx status code

func (*GetChatSettingsUnsupportedMediaType) String

type GetChatsSettingsBadRequest

type GetChatsSettingsBadRequest struct {
	Payload *models.ErrorBody
}

GetChatsSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewGetChatsSettingsBadRequest

func NewGetChatsSettingsBadRequest() *GetChatsSettingsBadRequest

NewGetChatsSettingsBadRequest creates a GetChatsSettingsBadRequest with default headers values

func (*GetChatsSettingsBadRequest) Error

func (*GetChatsSettingsBadRequest) GetPayload

func (o *GetChatsSettingsBadRequest) GetPayload() *models.ErrorBody

func (*GetChatsSettingsBadRequest) IsClientError

func (o *GetChatsSettingsBadRequest) IsClientError() bool

IsClientError returns true when this get chats settings bad request response has a 4xx status code

func (*GetChatsSettingsBadRequest) IsCode

func (o *GetChatsSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this get chats settings bad request response a status code equal to that given

func (*GetChatsSettingsBadRequest) IsRedirect

func (o *GetChatsSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this get chats settings bad request response has a 3xx status code

func (*GetChatsSettingsBadRequest) IsServerError

func (o *GetChatsSettingsBadRequest) IsServerError() bool

IsServerError returns true when this get chats settings bad request response has a 5xx status code

func (*GetChatsSettingsBadRequest) IsSuccess

func (o *GetChatsSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this get chats settings bad request response has a 2xx status code

func (*GetChatsSettingsBadRequest) String

func (o *GetChatsSettingsBadRequest) String() string

type GetChatsSettingsForbidden

type GetChatsSettingsForbidden struct {
	Payload *models.ErrorBody
}

GetChatsSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewGetChatsSettingsForbidden

func NewGetChatsSettingsForbidden() *GetChatsSettingsForbidden

NewGetChatsSettingsForbidden creates a GetChatsSettingsForbidden with default headers values

func (*GetChatsSettingsForbidden) Error

func (o *GetChatsSettingsForbidden) Error() string

func (*GetChatsSettingsForbidden) GetPayload

func (o *GetChatsSettingsForbidden) GetPayload() *models.ErrorBody

func (*GetChatsSettingsForbidden) IsClientError

func (o *GetChatsSettingsForbidden) IsClientError() bool

IsClientError returns true when this get chats settings forbidden response has a 4xx status code

func (*GetChatsSettingsForbidden) IsCode

func (o *GetChatsSettingsForbidden) IsCode(code int) bool

IsCode returns true when this get chats settings forbidden response a status code equal to that given

func (*GetChatsSettingsForbidden) IsRedirect

func (o *GetChatsSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this get chats settings forbidden response has a 3xx status code

func (*GetChatsSettingsForbidden) IsServerError

func (o *GetChatsSettingsForbidden) IsServerError() bool

IsServerError returns true when this get chats settings forbidden response has a 5xx status code

func (*GetChatsSettingsForbidden) IsSuccess

func (o *GetChatsSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this get chats settings forbidden response has a 2xx status code

func (*GetChatsSettingsForbidden) String

func (o *GetChatsSettingsForbidden) String() string

type GetChatsSettingsGatewayTimeout

type GetChatsSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

GetChatsSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewGetChatsSettingsGatewayTimeout

func NewGetChatsSettingsGatewayTimeout() *GetChatsSettingsGatewayTimeout

NewGetChatsSettingsGatewayTimeout creates a GetChatsSettingsGatewayTimeout with default headers values

func (*GetChatsSettingsGatewayTimeout) Error

func (*GetChatsSettingsGatewayTimeout) GetPayload

func (*GetChatsSettingsGatewayTimeout) IsClientError

func (o *GetChatsSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this get chats settings gateway timeout response has a 4xx status code

func (*GetChatsSettingsGatewayTimeout) IsCode

func (o *GetChatsSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this get chats settings gateway timeout response a status code equal to that given

func (*GetChatsSettingsGatewayTimeout) IsRedirect

func (o *GetChatsSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this get chats settings gateway timeout response has a 3xx status code

func (*GetChatsSettingsGatewayTimeout) IsServerError

func (o *GetChatsSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this get chats settings gateway timeout response has a 5xx status code

func (*GetChatsSettingsGatewayTimeout) IsSuccess

func (o *GetChatsSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this get chats settings gateway timeout response has a 2xx status code

func (*GetChatsSettingsGatewayTimeout) String

type GetChatsSettingsInternalServerError

type GetChatsSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

GetChatsSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewGetChatsSettingsInternalServerError

func NewGetChatsSettingsInternalServerError() *GetChatsSettingsInternalServerError

NewGetChatsSettingsInternalServerError creates a GetChatsSettingsInternalServerError with default headers values

func (*GetChatsSettingsInternalServerError) Error

func (*GetChatsSettingsInternalServerError) GetPayload

func (*GetChatsSettingsInternalServerError) IsClientError

func (o *GetChatsSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this get chats settings internal server error response has a 4xx status code

func (*GetChatsSettingsInternalServerError) IsCode

IsCode returns true when this get chats settings internal server error response a status code equal to that given

func (*GetChatsSettingsInternalServerError) IsRedirect

func (o *GetChatsSettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get chats settings internal server error response has a 3xx status code

func (*GetChatsSettingsInternalServerError) IsServerError

func (o *GetChatsSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this get chats settings internal server error response has a 5xx status code

func (*GetChatsSettingsInternalServerError) IsSuccess

IsSuccess returns true when this get chats settings internal server error response has a 2xx status code

func (*GetChatsSettingsInternalServerError) String

type GetChatsSettingsNotFound

type GetChatsSettingsNotFound struct {
	Payload *models.ErrorBody
}

GetChatsSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewGetChatsSettingsNotFound

func NewGetChatsSettingsNotFound() *GetChatsSettingsNotFound

NewGetChatsSettingsNotFound creates a GetChatsSettingsNotFound with default headers values

func (*GetChatsSettingsNotFound) Error

func (o *GetChatsSettingsNotFound) Error() string

func (*GetChatsSettingsNotFound) GetPayload

func (o *GetChatsSettingsNotFound) GetPayload() *models.ErrorBody

func (*GetChatsSettingsNotFound) IsClientError

func (o *GetChatsSettingsNotFound) IsClientError() bool

IsClientError returns true when this get chats settings not found response has a 4xx status code

func (*GetChatsSettingsNotFound) IsCode

func (o *GetChatsSettingsNotFound) IsCode(code int) bool

IsCode returns true when this get chats settings not found response a status code equal to that given

func (*GetChatsSettingsNotFound) IsRedirect

func (o *GetChatsSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this get chats settings not found response has a 3xx status code

func (*GetChatsSettingsNotFound) IsServerError

func (o *GetChatsSettingsNotFound) IsServerError() bool

IsServerError returns true when this get chats settings not found response has a 5xx status code

func (*GetChatsSettingsNotFound) IsSuccess

func (o *GetChatsSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this get chats settings not found response has a 2xx status code

func (*GetChatsSettingsNotFound) String

func (o *GetChatsSettingsNotFound) String() string

type GetChatsSettingsOK

type GetChatsSettingsOK struct {
	Payload *models.ChatSettings
}

GetChatsSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewGetChatsSettingsOK

func NewGetChatsSettingsOK() *GetChatsSettingsOK

NewGetChatsSettingsOK creates a GetChatsSettingsOK with default headers values

func (*GetChatsSettingsOK) Error

func (o *GetChatsSettingsOK) Error() string

func (*GetChatsSettingsOK) GetPayload

func (o *GetChatsSettingsOK) GetPayload() *models.ChatSettings

func (*GetChatsSettingsOK) IsClientError

func (o *GetChatsSettingsOK) IsClientError() bool

IsClientError returns true when this get chats settings o k response has a 4xx status code

func (*GetChatsSettingsOK) IsCode

func (o *GetChatsSettingsOK) IsCode(code int) bool

IsCode returns true when this get chats settings o k response a status code equal to that given

func (*GetChatsSettingsOK) IsRedirect

func (o *GetChatsSettingsOK) IsRedirect() bool

IsRedirect returns true when this get chats settings o k response has a 3xx status code

func (*GetChatsSettingsOK) IsServerError

func (o *GetChatsSettingsOK) IsServerError() bool

IsServerError returns true when this get chats settings o k response has a 5xx status code

func (*GetChatsSettingsOK) IsSuccess

func (o *GetChatsSettingsOK) IsSuccess() bool

IsSuccess returns true when this get chats settings o k response has a 2xx status code

func (*GetChatsSettingsOK) String

func (o *GetChatsSettingsOK) String() string

type GetChatsSettingsParams

type GetChatsSettingsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetChatsSettingsParams contains all the parameters to send to the API endpoint

for the get chats settings operation.

Typically these are written to a http.Request.

func NewGetChatsSettingsParams

func NewGetChatsSettingsParams() *GetChatsSettingsParams

NewGetChatsSettingsParams creates a new GetChatsSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetChatsSettingsParamsWithContext

func NewGetChatsSettingsParamsWithContext(ctx context.Context) *GetChatsSettingsParams

NewGetChatsSettingsParamsWithContext creates a new GetChatsSettingsParams object with the ability to set a context for a request.

func NewGetChatsSettingsParamsWithHTTPClient

func NewGetChatsSettingsParamsWithHTTPClient(client *http.Client) *GetChatsSettingsParams

NewGetChatsSettingsParamsWithHTTPClient creates a new GetChatsSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewGetChatsSettingsParamsWithTimeout

func NewGetChatsSettingsParamsWithTimeout(timeout time.Duration) *GetChatsSettingsParams

NewGetChatsSettingsParamsWithTimeout creates a new GetChatsSettingsParams object with the ability to set a timeout on a request.

func (*GetChatsSettingsParams) SetContext

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

SetContext adds the context to the get chats settings params

func (*GetChatsSettingsParams) SetDefaults

func (o *GetChatsSettingsParams) SetDefaults()

SetDefaults hydrates default values in the get chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*GetChatsSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get chats settings params

func (*GetChatsSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the get chats settings params

func (*GetChatsSettingsParams) WithContext

WithContext adds the context to the get chats settings params

func (*GetChatsSettingsParams) WithDefaults

WithDefaults hydrates default values in the get chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*GetChatsSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get chats settings params

func (*GetChatsSettingsParams) WithTimeout

WithTimeout adds the timeout to the get chats settings params

func (*GetChatsSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetChatsSettingsReader

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

GetChatsSettingsReader is a Reader for the GetChatsSettings structure.

func (*GetChatsSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChatsSettingsRequestEntityTooLarge

type GetChatsSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

GetChatsSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewGetChatsSettingsRequestEntityTooLarge

func NewGetChatsSettingsRequestEntityTooLarge() *GetChatsSettingsRequestEntityTooLarge

NewGetChatsSettingsRequestEntityTooLarge creates a GetChatsSettingsRequestEntityTooLarge with default headers values

func (*GetChatsSettingsRequestEntityTooLarge) Error

func (*GetChatsSettingsRequestEntityTooLarge) GetPayload

func (*GetChatsSettingsRequestEntityTooLarge) IsClientError

func (o *GetChatsSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this get chats settings request entity too large response has a 4xx status code

func (*GetChatsSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this get chats settings request entity too large response a status code equal to that given

func (*GetChatsSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this get chats settings request entity too large response has a 3xx status code

func (*GetChatsSettingsRequestEntityTooLarge) IsServerError

func (o *GetChatsSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this get chats settings request entity too large response has a 5xx status code

func (*GetChatsSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this get chats settings request entity too large response has a 2xx status code

func (*GetChatsSettingsRequestEntityTooLarge) String

type GetChatsSettingsRequestTimeout

type GetChatsSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

GetChatsSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewGetChatsSettingsRequestTimeout

func NewGetChatsSettingsRequestTimeout() *GetChatsSettingsRequestTimeout

NewGetChatsSettingsRequestTimeout creates a GetChatsSettingsRequestTimeout with default headers values

func (*GetChatsSettingsRequestTimeout) Error

func (*GetChatsSettingsRequestTimeout) GetPayload

func (*GetChatsSettingsRequestTimeout) IsClientError

func (o *GetChatsSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this get chats settings request timeout response has a 4xx status code

func (*GetChatsSettingsRequestTimeout) IsCode

func (o *GetChatsSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this get chats settings request timeout response a status code equal to that given

func (*GetChatsSettingsRequestTimeout) IsRedirect

func (o *GetChatsSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this get chats settings request timeout response has a 3xx status code

func (*GetChatsSettingsRequestTimeout) IsServerError

func (o *GetChatsSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this get chats settings request timeout response has a 5xx status code

func (*GetChatsSettingsRequestTimeout) IsSuccess

func (o *GetChatsSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this get chats settings request timeout response has a 2xx status code

func (*GetChatsSettingsRequestTimeout) String

type GetChatsSettingsServiceUnavailable

type GetChatsSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

GetChatsSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewGetChatsSettingsServiceUnavailable

func NewGetChatsSettingsServiceUnavailable() *GetChatsSettingsServiceUnavailable

NewGetChatsSettingsServiceUnavailable creates a GetChatsSettingsServiceUnavailable with default headers values

func (*GetChatsSettingsServiceUnavailable) Error

func (*GetChatsSettingsServiceUnavailable) GetPayload

func (*GetChatsSettingsServiceUnavailable) IsClientError

func (o *GetChatsSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this get chats settings service unavailable response has a 4xx status code

func (*GetChatsSettingsServiceUnavailable) IsCode

IsCode returns true when this get chats settings service unavailable response a status code equal to that given

func (*GetChatsSettingsServiceUnavailable) IsRedirect

func (o *GetChatsSettingsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get chats settings service unavailable response has a 3xx status code

func (*GetChatsSettingsServiceUnavailable) IsServerError

func (o *GetChatsSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this get chats settings service unavailable response has a 5xx status code

func (*GetChatsSettingsServiceUnavailable) IsSuccess

IsSuccess returns true when this get chats settings service unavailable response has a 2xx status code

func (*GetChatsSettingsServiceUnavailable) String

type GetChatsSettingsTooManyRequests

type GetChatsSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

GetChatsSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewGetChatsSettingsTooManyRequests

func NewGetChatsSettingsTooManyRequests() *GetChatsSettingsTooManyRequests

NewGetChatsSettingsTooManyRequests creates a GetChatsSettingsTooManyRequests with default headers values

func (*GetChatsSettingsTooManyRequests) Error

func (*GetChatsSettingsTooManyRequests) GetPayload

func (*GetChatsSettingsTooManyRequests) IsClientError

func (o *GetChatsSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this get chats settings too many requests response has a 4xx status code

func (*GetChatsSettingsTooManyRequests) IsCode

func (o *GetChatsSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this get chats settings too many requests response a status code equal to that given

func (*GetChatsSettingsTooManyRequests) IsRedirect

func (o *GetChatsSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get chats settings too many requests response has a 3xx status code

func (*GetChatsSettingsTooManyRequests) IsServerError

func (o *GetChatsSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this get chats settings too many requests response has a 5xx status code

func (*GetChatsSettingsTooManyRequests) IsSuccess

func (o *GetChatsSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get chats settings too many requests response has a 2xx status code

func (*GetChatsSettingsTooManyRequests) String

type GetChatsSettingsUnauthorized

type GetChatsSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

GetChatsSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewGetChatsSettingsUnauthorized

func NewGetChatsSettingsUnauthorized() *GetChatsSettingsUnauthorized

NewGetChatsSettingsUnauthorized creates a GetChatsSettingsUnauthorized with default headers values

func (*GetChatsSettingsUnauthorized) Error

func (*GetChatsSettingsUnauthorized) GetPayload

func (*GetChatsSettingsUnauthorized) IsClientError

func (o *GetChatsSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this get chats settings unauthorized response has a 4xx status code

func (*GetChatsSettingsUnauthorized) IsCode

func (o *GetChatsSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this get chats settings unauthorized response a status code equal to that given

func (*GetChatsSettingsUnauthorized) IsRedirect

func (o *GetChatsSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get chats settings unauthorized response has a 3xx status code

func (*GetChatsSettingsUnauthorized) IsServerError

func (o *GetChatsSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this get chats settings unauthorized response has a 5xx status code

func (*GetChatsSettingsUnauthorized) IsSuccess

func (o *GetChatsSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get chats settings unauthorized response has a 2xx status code

func (*GetChatsSettingsUnauthorized) String

type GetChatsSettingsUnsupportedMediaType

type GetChatsSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

GetChatsSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewGetChatsSettingsUnsupportedMediaType

func NewGetChatsSettingsUnsupportedMediaType() *GetChatsSettingsUnsupportedMediaType

NewGetChatsSettingsUnsupportedMediaType creates a GetChatsSettingsUnsupportedMediaType with default headers values

func (*GetChatsSettingsUnsupportedMediaType) Error

func (*GetChatsSettingsUnsupportedMediaType) GetPayload

func (*GetChatsSettingsUnsupportedMediaType) IsClientError

func (o *GetChatsSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this get chats settings unsupported media type response has a 4xx status code

func (*GetChatsSettingsUnsupportedMediaType) IsCode

IsCode returns true when this get chats settings unsupported media type response a status code equal to that given

func (*GetChatsSettingsUnsupportedMediaType) IsRedirect

IsRedirect returns true when this get chats settings unsupported media type response has a 3xx status code

func (*GetChatsSettingsUnsupportedMediaType) IsServerError

func (o *GetChatsSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this get chats settings unsupported media type response has a 5xx status code

func (*GetChatsSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this get chats settings unsupported media type response has a 2xx status code

func (*GetChatsSettingsUnsupportedMediaType) String

type PatchChatSettingsBadRequest

type PatchChatSettingsBadRequest struct {
	Payload *models.ErrorBody
}

PatchChatSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewPatchChatSettingsBadRequest

func NewPatchChatSettingsBadRequest() *PatchChatSettingsBadRequest

NewPatchChatSettingsBadRequest creates a PatchChatSettingsBadRequest with default headers values

func (*PatchChatSettingsBadRequest) Error

func (*PatchChatSettingsBadRequest) GetPayload

func (o *PatchChatSettingsBadRequest) GetPayload() *models.ErrorBody

func (*PatchChatSettingsBadRequest) IsClientError

func (o *PatchChatSettingsBadRequest) IsClientError() bool

IsClientError returns true when this patch chat settings bad request response has a 4xx status code

func (*PatchChatSettingsBadRequest) IsCode

func (o *PatchChatSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this patch chat settings bad request response a status code equal to that given

func (*PatchChatSettingsBadRequest) IsRedirect

func (o *PatchChatSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this patch chat settings bad request response has a 3xx status code

func (*PatchChatSettingsBadRequest) IsServerError

func (o *PatchChatSettingsBadRequest) IsServerError() bool

IsServerError returns true when this patch chat settings bad request response has a 5xx status code

func (*PatchChatSettingsBadRequest) IsSuccess

func (o *PatchChatSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this patch chat settings bad request response has a 2xx status code

func (*PatchChatSettingsBadRequest) String

func (o *PatchChatSettingsBadRequest) String() string

type PatchChatSettingsForbidden

type PatchChatSettingsForbidden struct {
	Payload *models.ErrorBody
}

PatchChatSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewPatchChatSettingsForbidden

func NewPatchChatSettingsForbidden() *PatchChatSettingsForbidden

NewPatchChatSettingsForbidden creates a PatchChatSettingsForbidden with default headers values

func (*PatchChatSettingsForbidden) Error

func (*PatchChatSettingsForbidden) GetPayload

func (o *PatchChatSettingsForbidden) GetPayload() *models.ErrorBody

func (*PatchChatSettingsForbidden) IsClientError

func (o *PatchChatSettingsForbidden) IsClientError() bool

IsClientError returns true when this patch chat settings forbidden response has a 4xx status code

func (*PatchChatSettingsForbidden) IsCode

func (o *PatchChatSettingsForbidden) IsCode(code int) bool

IsCode returns true when this patch chat settings forbidden response a status code equal to that given

func (*PatchChatSettingsForbidden) IsRedirect

func (o *PatchChatSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this patch chat settings forbidden response has a 3xx status code

func (*PatchChatSettingsForbidden) IsServerError

func (o *PatchChatSettingsForbidden) IsServerError() bool

IsServerError returns true when this patch chat settings forbidden response has a 5xx status code

func (*PatchChatSettingsForbidden) IsSuccess

func (o *PatchChatSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this patch chat settings forbidden response has a 2xx status code

func (*PatchChatSettingsForbidden) String

func (o *PatchChatSettingsForbidden) String() string

type PatchChatSettingsGatewayTimeout

type PatchChatSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

PatchChatSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewPatchChatSettingsGatewayTimeout

func NewPatchChatSettingsGatewayTimeout() *PatchChatSettingsGatewayTimeout

NewPatchChatSettingsGatewayTimeout creates a PatchChatSettingsGatewayTimeout with default headers values

func (*PatchChatSettingsGatewayTimeout) Error

func (*PatchChatSettingsGatewayTimeout) GetPayload

func (*PatchChatSettingsGatewayTimeout) IsClientError

func (o *PatchChatSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this patch chat settings gateway timeout response has a 4xx status code

func (*PatchChatSettingsGatewayTimeout) IsCode

func (o *PatchChatSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this patch chat settings gateway timeout response a status code equal to that given

func (*PatchChatSettingsGatewayTimeout) IsRedirect

func (o *PatchChatSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this patch chat settings gateway timeout response has a 3xx status code

func (*PatchChatSettingsGatewayTimeout) IsServerError

func (o *PatchChatSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this patch chat settings gateway timeout response has a 5xx status code

func (*PatchChatSettingsGatewayTimeout) IsSuccess

func (o *PatchChatSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this patch chat settings gateway timeout response has a 2xx status code

func (*PatchChatSettingsGatewayTimeout) String

type PatchChatSettingsInternalServerError

type PatchChatSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

PatchChatSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewPatchChatSettingsInternalServerError

func NewPatchChatSettingsInternalServerError() *PatchChatSettingsInternalServerError

NewPatchChatSettingsInternalServerError creates a PatchChatSettingsInternalServerError with default headers values

func (*PatchChatSettingsInternalServerError) Error

func (*PatchChatSettingsInternalServerError) GetPayload

func (*PatchChatSettingsInternalServerError) IsClientError

func (o *PatchChatSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this patch chat settings internal server error response has a 4xx status code

func (*PatchChatSettingsInternalServerError) IsCode

IsCode returns true when this patch chat settings internal server error response a status code equal to that given

func (*PatchChatSettingsInternalServerError) IsRedirect

IsRedirect returns true when this patch chat settings internal server error response has a 3xx status code

func (*PatchChatSettingsInternalServerError) IsServerError

func (o *PatchChatSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this patch chat settings internal server error response has a 5xx status code

func (*PatchChatSettingsInternalServerError) IsSuccess

IsSuccess returns true when this patch chat settings internal server error response has a 2xx status code

func (*PatchChatSettingsInternalServerError) String

type PatchChatSettingsNotFound

type PatchChatSettingsNotFound struct {
	Payload *models.ErrorBody
}

PatchChatSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewPatchChatSettingsNotFound

func NewPatchChatSettingsNotFound() *PatchChatSettingsNotFound

NewPatchChatSettingsNotFound creates a PatchChatSettingsNotFound with default headers values

func (*PatchChatSettingsNotFound) Error

func (o *PatchChatSettingsNotFound) Error() string

func (*PatchChatSettingsNotFound) GetPayload

func (o *PatchChatSettingsNotFound) GetPayload() *models.ErrorBody

func (*PatchChatSettingsNotFound) IsClientError

func (o *PatchChatSettingsNotFound) IsClientError() bool

IsClientError returns true when this patch chat settings not found response has a 4xx status code

func (*PatchChatSettingsNotFound) IsCode

func (o *PatchChatSettingsNotFound) IsCode(code int) bool

IsCode returns true when this patch chat settings not found response a status code equal to that given

func (*PatchChatSettingsNotFound) IsRedirect

func (o *PatchChatSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this patch chat settings not found response has a 3xx status code

func (*PatchChatSettingsNotFound) IsServerError

func (o *PatchChatSettingsNotFound) IsServerError() bool

IsServerError returns true when this patch chat settings not found response has a 5xx status code

func (*PatchChatSettingsNotFound) IsSuccess

func (o *PatchChatSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this patch chat settings not found response has a 2xx status code

func (*PatchChatSettingsNotFound) String

func (o *PatchChatSettingsNotFound) String() string

type PatchChatSettingsOK

type PatchChatSettingsOK struct {
	Payload *models.ChatSettings
}

PatchChatSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewPatchChatSettingsOK

func NewPatchChatSettingsOK() *PatchChatSettingsOK

NewPatchChatSettingsOK creates a PatchChatSettingsOK with default headers values

func (*PatchChatSettingsOK) Error

func (o *PatchChatSettingsOK) Error() string

func (*PatchChatSettingsOK) GetPayload

func (o *PatchChatSettingsOK) GetPayload() *models.ChatSettings

func (*PatchChatSettingsOK) IsClientError

func (o *PatchChatSettingsOK) IsClientError() bool

IsClientError returns true when this patch chat settings o k response has a 4xx status code

func (*PatchChatSettingsOK) IsCode

func (o *PatchChatSettingsOK) IsCode(code int) bool

IsCode returns true when this patch chat settings o k response a status code equal to that given

func (*PatchChatSettingsOK) IsRedirect

func (o *PatchChatSettingsOK) IsRedirect() bool

IsRedirect returns true when this patch chat settings o k response has a 3xx status code

func (*PatchChatSettingsOK) IsServerError

func (o *PatchChatSettingsOK) IsServerError() bool

IsServerError returns true when this patch chat settings o k response has a 5xx status code

func (*PatchChatSettingsOK) IsSuccess

func (o *PatchChatSettingsOK) IsSuccess() bool

IsSuccess returns true when this patch chat settings o k response has a 2xx status code

func (*PatchChatSettingsOK) String

func (o *PatchChatSettingsOK) String() string

type PatchChatSettingsParams

type PatchChatSettingsParams struct {

	/* Body.

	   Chat
	*/
	Body *models.ChatSettings

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

PatchChatSettingsParams contains all the parameters to send to the API endpoint

for the patch chat settings operation.

Typically these are written to a http.Request.

func NewPatchChatSettingsParams

func NewPatchChatSettingsParams() *PatchChatSettingsParams

NewPatchChatSettingsParams creates a new PatchChatSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchChatSettingsParamsWithContext

func NewPatchChatSettingsParamsWithContext(ctx context.Context) *PatchChatSettingsParams

NewPatchChatSettingsParamsWithContext creates a new PatchChatSettingsParams object with the ability to set a context for a request.

func NewPatchChatSettingsParamsWithHTTPClient

func NewPatchChatSettingsParamsWithHTTPClient(client *http.Client) *PatchChatSettingsParams

NewPatchChatSettingsParamsWithHTTPClient creates a new PatchChatSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewPatchChatSettingsParamsWithTimeout

func NewPatchChatSettingsParamsWithTimeout(timeout time.Duration) *PatchChatSettingsParams

NewPatchChatSettingsParamsWithTimeout creates a new PatchChatSettingsParams object with the ability to set a timeout on a request.

func (*PatchChatSettingsParams) SetBody

func (o *PatchChatSettingsParams) SetBody(body *models.ChatSettings)

SetBody adds the body to the patch chat settings params

func (*PatchChatSettingsParams) SetContext

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

SetContext adds the context to the patch chat settings params

func (*PatchChatSettingsParams) SetDefaults

func (o *PatchChatSettingsParams) SetDefaults()

SetDefaults hydrates default values in the patch chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*PatchChatSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch chat settings params

func (*PatchChatSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the patch chat settings params

func (*PatchChatSettingsParams) WithBody

WithBody adds the body to the patch chat settings params

func (*PatchChatSettingsParams) WithContext

WithContext adds the context to the patch chat settings params

func (*PatchChatSettingsParams) WithDefaults

WithDefaults hydrates default values in the patch chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*PatchChatSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch chat settings params

func (*PatchChatSettingsParams) WithTimeout

WithTimeout adds the timeout to the patch chat settings params

func (*PatchChatSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchChatSettingsReader

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

PatchChatSettingsReader is a Reader for the PatchChatSettings structure.

func (*PatchChatSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchChatSettingsRequestEntityTooLarge

type PatchChatSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

PatchChatSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewPatchChatSettingsRequestEntityTooLarge

func NewPatchChatSettingsRequestEntityTooLarge() *PatchChatSettingsRequestEntityTooLarge

NewPatchChatSettingsRequestEntityTooLarge creates a PatchChatSettingsRequestEntityTooLarge with default headers values

func (*PatchChatSettingsRequestEntityTooLarge) Error

func (*PatchChatSettingsRequestEntityTooLarge) GetPayload

func (*PatchChatSettingsRequestEntityTooLarge) IsClientError

func (o *PatchChatSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this patch chat settings request entity too large response has a 4xx status code

func (*PatchChatSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this patch chat settings request entity too large response a status code equal to that given

func (*PatchChatSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this patch chat settings request entity too large response has a 3xx status code

func (*PatchChatSettingsRequestEntityTooLarge) IsServerError

func (o *PatchChatSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this patch chat settings request entity too large response has a 5xx status code

func (*PatchChatSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this patch chat settings request entity too large response has a 2xx status code

func (*PatchChatSettingsRequestEntityTooLarge) String

type PatchChatSettingsRequestTimeout

type PatchChatSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

PatchChatSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewPatchChatSettingsRequestTimeout

func NewPatchChatSettingsRequestTimeout() *PatchChatSettingsRequestTimeout

NewPatchChatSettingsRequestTimeout creates a PatchChatSettingsRequestTimeout with default headers values

func (*PatchChatSettingsRequestTimeout) Error

func (*PatchChatSettingsRequestTimeout) GetPayload

func (*PatchChatSettingsRequestTimeout) IsClientError

func (o *PatchChatSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this patch chat settings request timeout response has a 4xx status code

func (*PatchChatSettingsRequestTimeout) IsCode

func (o *PatchChatSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this patch chat settings request timeout response a status code equal to that given

func (*PatchChatSettingsRequestTimeout) IsRedirect

func (o *PatchChatSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this patch chat settings request timeout response has a 3xx status code

func (*PatchChatSettingsRequestTimeout) IsServerError

func (o *PatchChatSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this patch chat settings request timeout response has a 5xx status code

func (*PatchChatSettingsRequestTimeout) IsSuccess

func (o *PatchChatSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this patch chat settings request timeout response has a 2xx status code

func (*PatchChatSettingsRequestTimeout) String

type PatchChatSettingsServiceUnavailable

type PatchChatSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

PatchChatSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewPatchChatSettingsServiceUnavailable

func NewPatchChatSettingsServiceUnavailable() *PatchChatSettingsServiceUnavailable

NewPatchChatSettingsServiceUnavailable creates a PatchChatSettingsServiceUnavailable with default headers values

func (*PatchChatSettingsServiceUnavailable) Error

func (*PatchChatSettingsServiceUnavailable) GetPayload

func (*PatchChatSettingsServiceUnavailable) IsClientError

func (o *PatchChatSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this patch chat settings service unavailable response has a 4xx status code

func (*PatchChatSettingsServiceUnavailable) IsCode

IsCode returns true when this patch chat settings service unavailable response a status code equal to that given

func (*PatchChatSettingsServiceUnavailable) IsRedirect

func (o *PatchChatSettingsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this patch chat settings service unavailable response has a 3xx status code

func (*PatchChatSettingsServiceUnavailable) IsServerError

func (o *PatchChatSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this patch chat settings service unavailable response has a 5xx status code

func (*PatchChatSettingsServiceUnavailable) IsSuccess

IsSuccess returns true when this patch chat settings service unavailable response has a 2xx status code

func (*PatchChatSettingsServiceUnavailable) String

type PatchChatSettingsTooManyRequests

type PatchChatSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

PatchChatSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewPatchChatSettingsTooManyRequests

func NewPatchChatSettingsTooManyRequests() *PatchChatSettingsTooManyRequests

NewPatchChatSettingsTooManyRequests creates a PatchChatSettingsTooManyRequests with default headers values

func (*PatchChatSettingsTooManyRequests) Error

func (*PatchChatSettingsTooManyRequests) GetPayload

func (*PatchChatSettingsTooManyRequests) IsClientError

func (o *PatchChatSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this patch chat settings too many requests response has a 4xx status code

func (*PatchChatSettingsTooManyRequests) IsCode

func (o *PatchChatSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this patch chat settings too many requests response a status code equal to that given

func (*PatchChatSettingsTooManyRequests) IsRedirect

func (o *PatchChatSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this patch chat settings too many requests response has a 3xx status code

func (*PatchChatSettingsTooManyRequests) IsServerError

func (o *PatchChatSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this patch chat settings too many requests response has a 5xx status code

func (*PatchChatSettingsTooManyRequests) IsSuccess

func (o *PatchChatSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this patch chat settings too many requests response has a 2xx status code

func (*PatchChatSettingsTooManyRequests) String

type PatchChatSettingsUnauthorized

type PatchChatSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

PatchChatSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewPatchChatSettingsUnauthorized

func NewPatchChatSettingsUnauthorized() *PatchChatSettingsUnauthorized

NewPatchChatSettingsUnauthorized creates a PatchChatSettingsUnauthorized with default headers values

func (*PatchChatSettingsUnauthorized) Error

func (*PatchChatSettingsUnauthorized) GetPayload

func (*PatchChatSettingsUnauthorized) IsClientError

func (o *PatchChatSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this patch chat settings unauthorized response has a 4xx status code

func (*PatchChatSettingsUnauthorized) IsCode

func (o *PatchChatSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this patch chat settings unauthorized response a status code equal to that given

func (*PatchChatSettingsUnauthorized) IsRedirect

func (o *PatchChatSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch chat settings unauthorized response has a 3xx status code

func (*PatchChatSettingsUnauthorized) IsServerError

func (o *PatchChatSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this patch chat settings unauthorized response has a 5xx status code

func (*PatchChatSettingsUnauthorized) IsSuccess

func (o *PatchChatSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this patch chat settings unauthorized response has a 2xx status code

func (*PatchChatSettingsUnauthorized) String

type PatchChatSettingsUnsupportedMediaType

type PatchChatSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

PatchChatSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewPatchChatSettingsUnsupportedMediaType

func NewPatchChatSettingsUnsupportedMediaType() *PatchChatSettingsUnsupportedMediaType

NewPatchChatSettingsUnsupportedMediaType creates a PatchChatSettingsUnsupportedMediaType with default headers values

func (*PatchChatSettingsUnsupportedMediaType) Error

func (*PatchChatSettingsUnsupportedMediaType) GetPayload

func (*PatchChatSettingsUnsupportedMediaType) IsClientError

func (o *PatchChatSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this patch chat settings unsupported media type response has a 4xx status code

func (*PatchChatSettingsUnsupportedMediaType) IsCode

IsCode returns true when this patch chat settings unsupported media type response a status code equal to that given

func (*PatchChatSettingsUnsupportedMediaType) IsRedirect

IsRedirect returns true when this patch chat settings unsupported media type response has a 3xx status code

func (*PatchChatSettingsUnsupportedMediaType) IsServerError

func (o *PatchChatSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this patch chat settings unsupported media type response has a 5xx status code

func (*PatchChatSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this patch chat settings unsupported media type response has a 2xx status code

func (*PatchChatSettingsUnsupportedMediaType) String

type PatchChatsSettingsBadRequest

type PatchChatsSettingsBadRequest struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewPatchChatsSettingsBadRequest

func NewPatchChatsSettingsBadRequest() *PatchChatsSettingsBadRequest

NewPatchChatsSettingsBadRequest creates a PatchChatsSettingsBadRequest with default headers values

func (*PatchChatsSettingsBadRequest) Error

func (*PatchChatsSettingsBadRequest) GetPayload

func (*PatchChatsSettingsBadRequest) IsClientError

func (o *PatchChatsSettingsBadRequest) IsClientError() bool

IsClientError returns true when this patch chats settings bad request response has a 4xx status code

func (*PatchChatsSettingsBadRequest) IsCode

func (o *PatchChatsSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this patch chats settings bad request response a status code equal to that given

func (*PatchChatsSettingsBadRequest) IsRedirect

func (o *PatchChatsSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this patch chats settings bad request response has a 3xx status code

func (*PatchChatsSettingsBadRequest) IsServerError

func (o *PatchChatsSettingsBadRequest) IsServerError() bool

IsServerError returns true when this patch chats settings bad request response has a 5xx status code

func (*PatchChatsSettingsBadRequest) IsSuccess

func (o *PatchChatsSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this patch chats settings bad request response has a 2xx status code

func (*PatchChatsSettingsBadRequest) String

type PatchChatsSettingsForbidden

type PatchChatsSettingsForbidden struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewPatchChatsSettingsForbidden

func NewPatchChatsSettingsForbidden() *PatchChatsSettingsForbidden

NewPatchChatsSettingsForbidden creates a PatchChatsSettingsForbidden with default headers values

func (*PatchChatsSettingsForbidden) Error

func (*PatchChatsSettingsForbidden) GetPayload

func (o *PatchChatsSettingsForbidden) GetPayload() *models.ErrorBody

func (*PatchChatsSettingsForbidden) IsClientError

func (o *PatchChatsSettingsForbidden) IsClientError() bool

IsClientError returns true when this patch chats settings forbidden response has a 4xx status code

func (*PatchChatsSettingsForbidden) IsCode

func (o *PatchChatsSettingsForbidden) IsCode(code int) bool

IsCode returns true when this patch chats settings forbidden response a status code equal to that given

func (*PatchChatsSettingsForbidden) IsRedirect

func (o *PatchChatsSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this patch chats settings forbidden response has a 3xx status code

func (*PatchChatsSettingsForbidden) IsServerError

func (o *PatchChatsSettingsForbidden) IsServerError() bool

IsServerError returns true when this patch chats settings forbidden response has a 5xx status code

func (*PatchChatsSettingsForbidden) IsSuccess

func (o *PatchChatsSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this patch chats settings forbidden response has a 2xx status code

func (*PatchChatsSettingsForbidden) String

func (o *PatchChatsSettingsForbidden) String() string

type PatchChatsSettingsGatewayTimeout

type PatchChatsSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewPatchChatsSettingsGatewayTimeout

func NewPatchChatsSettingsGatewayTimeout() *PatchChatsSettingsGatewayTimeout

NewPatchChatsSettingsGatewayTimeout creates a PatchChatsSettingsGatewayTimeout with default headers values

func (*PatchChatsSettingsGatewayTimeout) Error

func (*PatchChatsSettingsGatewayTimeout) GetPayload

func (*PatchChatsSettingsGatewayTimeout) IsClientError

func (o *PatchChatsSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this patch chats settings gateway timeout response has a 4xx status code

func (*PatchChatsSettingsGatewayTimeout) IsCode

func (o *PatchChatsSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this patch chats settings gateway timeout response a status code equal to that given

func (*PatchChatsSettingsGatewayTimeout) IsRedirect

func (o *PatchChatsSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this patch chats settings gateway timeout response has a 3xx status code

func (*PatchChatsSettingsGatewayTimeout) IsServerError

func (o *PatchChatsSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this patch chats settings gateway timeout response has a 5xx status code

func (*PatchChatsSettingsGatewayTimeout) IsSuccess

func (o *PatchChatsSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this patch chats settings gateway timeout response has a 2xx status code

func (*PatchChatsSettingsGatewayTimeout) String

type PatchChatsSettingsInternalServerError

type PatchChatsSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewPatchChatsSettingsInternalServerError

func NewPatchChatsSettingsInternalServerError() *PatchChatsSettingsInternalServerError

NewPatchChatsSettingsInternalServerError creates a PatchChatsSettingsInternalServerError with default headers values

func (*PatchChatsSettingsInternalServerError) Error

func (*PatchChatsSettingsInternalServerError) GetPayload

func (*PatchChatsSettingsInternalServerError) IsClientError

func (o *PatchChatsSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this patch chats settings internal server error response has a 4xx status code

func (*PatchChatsSettingsInternalServerError) IsCode

IsCode returns true when this patch chats settings internal server error response a status code equal to that given

func (*PatchChatsSettingsInternalServerError) IsRedirect

IsRedirect returns true when this patch chats settings internal server error response has a 3xx status code

func (*PatchChatsSettingsInternalServerError) IsServerError

func (o *PatchChatsSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this patch chats settings internal server error response has a 5xx status code

func (*PatchChatsSettingsInternalServerError) IsSuccess

IsSuccess returns true when this patch chats settings internal server error response has a 2xx status code

func (*PatchChatsSettingsInternalServerError) String

type PatchChatsSettingsNotFound

type PatchChatsSettingsNotFound struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewPatchChatsSettingsNotFound

func NewPatchChatsSettingsNotFound() *PatchChatsSettingsNotFound

NewPatchChatsSettingsNotFound creates a PatchChatsSettingsNotFound with default headers values

func (*PatchChatsSettingsNotFound) Error

func (*PatchChatsSettingsNotFound) GetPayload

func (o *PatchChatsSettingsNotFound) GetPayload() *models.ErrorBody

func (*PatchChatsSettingsNotFound) IsClientError

func (o *PatchChatsSettingsNotFound) IsClientError() bool

IsClientError returns true when this patch chats settings not found response has a 4xx status code

func (*PatchChatsSettingsNotFound) IsCode

func (o *PatchChatsSettingsNotFound) IsCode(code int) bool

IsCode returns true when this patch chats settings not found response a status code equal to that given

func (*PatchChatsSettingsNotFound) IsRedirect

func (o *PatchChatsSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this patch chats settings not found response has a 3xx status code

func (*PatchChatsSettingsNotFound) IsServerError

func (o *PatchChatsSettingsNotFound) IsServerError() bool

IsServerError returns true when this patch chats settings not found response has a 5xx status code

func (*PatchChatsSettingsNotFound) IsSuccess

func (o *PatchChatsSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this patch chats settings not found response has a 2xx status code

func (*PatchChatsSettingsNotFound) String

func (o *PatchChatsSettingsNotFound) String() string

type PatchChatsSettingsOK

type PatchChatsSettingsOK struct {
	Payload *models.ChatSettings
}

PatchChatsSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewPatchChatsSettingsOK

func NewPatchChatsSettingsOK() *PatchChatsSettingsOK

NewPatchChatsSettingsOK creates a PatchChatsSettingsOK with default headers values

func (*PatchChatsSettingsOK) Error

func (o *PatchChatsSettingsOK) Error() string

func (*PatchChatsSettingsOK) GetPayload

func (o *PatchChatsSettingsOK) GetPayload() *models.ChatSettings

func (*PatchChatsSettingsOK) IsClientError

func (o *PatchChatsSettingsOK) IsClientError() bool

IsClientError returns true when this patch chats settings o k response has a 4xx status code

func (*PatchChatsSettingsOK) IsCode

func (o *PatchChatsSettingsOK) IsCode(code int) bool

IsCode returns true when this patch chats settings o k response a status code equal to that given

func (*PatchChatsSettingsOK) IsRedirect

func (o *PatchChatsSettingsOK) IsRedirect() bool

IsRedirect returns true when this patch chats settings o k response has a 3xx status code

func (*PatchChatsSettingsOK) IsServerError

func (o *PatchChatsSettingsOK) IsServerError() bool

IsServerError returns true when this patch chats settings o k response has a 5xx status code

func (*PatchChatsSettingsOK) IsSuccess

func (o *PatchChatsSettingsOK) IsSuccess() bool

IsSuccess returns true when this patch chats settings o k response has a 2xx status code

func (*PatchChatsSettingsOK) String

func (o *PatchChatsSettingsOK) String() string

type PatchChatsSettingsParams

type PatchChatsSettingsParams struct {

	/* Body.

	   Chat
	*/
	Body *models.ChatSettings

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

PatchChatsSettingsParams contains all the parameters to send to the API endpoint

for the patch chats settings operation.

Typically these are written to a http.Request.

func NewPatchChatsSettingsParams

func NewPatchChatsSettingsParams() *PatchChatsSettingsParams

NewPatchChatsSettingsParams creates a new PatchChatsSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchChatsSettingsParamsWithContext

func NewPatchChatsSettingsParamsWithContext(ctx context.Context) *PatchChatsSettingsParams

NewPatchChatsSettingsParamsWithContext creates a new PatchChatsSettingsParams object with the ability to set a context for a request.

func NewPatchChatsSettingsParamsWithHTTPClient

func NewPatchChatsSettingsParamsWithHTTPClient(client *http.Client) *PatchChatsSettingsParams

NewPatchChatsSettingsParamsWithHTTPClient creates a new PatchChatsSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewPatchChatsSettingsParamsWithTimeout

func NewPatchChatsSettingsParamsWithTimeout(timeout time.Duration) *PatchChatsSettingsParams

NewPatchChatsSettingsParamsWithTimeout creates a new PatchChatsSettingsParams object with the ability to set a timeout on a request.

func (*PatchChatsSettingsParams) SetBody

func (o *PatchChatsSettingsParams) SetBody(body *models.ChatSettings)

SetBody adds the body to the patch chats settings params

func (*PatchChatsSettingsParams) SetContext

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

SetContext adds the context to the patch chats settings params

func (*PatchChatsSettingsParams) SetDefaults

func (o *PatchChatsSettingsParams) SetDefaults()

SetDefaults hydrates default values in the patch chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*PatchChatsSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch chats settings params

func (*PatchChatsSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the patch chats settings params

func (*PatchChatsSettingsParams) WithBody

WithBody adds the body to the patch chats settings params

func (*PatchChatsSettingsParams) WithContext

WithContext adds the context to the patch chats settings params

func (*PatchChatsSettingsParams) WithDefaults

WithDefaults hydrates default values in the patch chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*PatchChatsSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch chats settings params

func (*PatchChatsSettingsParams) WithTimeout

WithTimeout adds the timeout to the patch chats settings params

func (*PatchChatsSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchChatsSettingsReader

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

PatchChatsSettingsReader is a Reader for the PatchChatsSettings structure.

func (*PatchChatsSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchChatsSettingsRequestEntityTooLarge

type PatchChatsSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewPatchChatsSettingsRequestEntityTooLarge

func NewPatchChatsSettingsRequestEntityTooLarge() *PatchChatsSettingsRequestEntityTooLarge

NewPatchChatsSettingsRequestEntityTooLarge creates a PatchChatsSettingsRequestEntityTooLarge with default headers values

func (*PatchChatsSettingsRequestEntityTooLarge) Error

func (*PatchChatsSettingsRequestEntityTooLarge) GetPayload

func (*PatchChatsSettingsRequestEntityTooLarge) IsClientError

func (o *PatchChatsSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this patch chats settings request entity too large response has a 4xx status code

func (*PatchChatsSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this patch chats settings request entity too large response a status code equal to that given

func (*PatchChatsSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this patch chats settings request entity too large response has a 3xx status code

func (*PatchChatsSettingsRequestEntityTooLarge) IsServerError

func (o *PatchChatsSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this patch chats settings request entity too large response has a 5xx status code

func (*PatchChatsSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this patch chats settings request entity too large response has a 2xx status code

func (*PatchChatsSettingsRequestEntityTooLarge) String

type PatchChatsSettingsRequestTimeout

type PatchChatsSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewPatchChatsSettingsRequestTimeout

func NewPatchChatsSettingsRequestTimeout() *PatchChatsSettingsRequestTimeout

NewPatchChatsSettingsRequestTimeout creates a PatchChatsSettingsRequestTimeout with default headers values

func (*PatchChatsSettingsRequestTimeout) Error

func (*PatchChatsSettingsRequestTimeout) GetPayload

func (*PatchChatsSettingsRequestTimeout) IsClientError

func (o *PatchChatsSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this patch chats settings request timeout response has a 4xx status code

func (*PatchChatsSettingsRequestTimeout) IsCode

func (o *PatchChatsSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this patch chats settings request timeout response a status code equal to that given

func (*PatchChatsSettingsRequestTimeout) IsRedirect

func (o *PatchChatsSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this patch chats settings request timeout response has a 3xx status code

func (*PatchChatsSettingsRequestTimeout) IsServerError

func (o *PatchChatsSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this patch chats settings request timeout response has a 5xx status code

func (*PatchChatsSettingsRequestTimeout) IsSuccess

func (o *PatchChatsSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this patch chats settings request timeout response has a 2xx status code

func (*PatchChatsSettingsRequestTimeout) String

type PatchChatsSettingsServiceUnavailable

type PatchChatsSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewPatchChatsSettingsServiceUnavailable

func NewPatchChatsSettingsServiceUnavailable() *PatchChatsSettingsServiceUnavailable

NewPatchChatsSettingsServiceUnavailable creates a PatchChatsSettingsServiceUnavailable with default headers values

func (*PatchChatsSettingsServiceUnavailable) Error

func (*PatchChatsSettingsServiceUnavailable) GetPayload

func (*PatchChatsSettingsServiceUnavailable) IsClientError

func (o *PatchChatsSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this patch chats settings service unavailable response has a 4xx status code

func (*PatchChatsSettingsServiceUnavailable) IsCode

IsCode returns true when this patch chats settings service unavailable response a status code equal to that given

func (*PatchChatsSettingsServiceUnavailable) IsRedirect

IsRedirect returns true when this patch chats settings service unavailable response has a 3xx status code

func (*PatchChatsSettingsServiceUnavailable) IsServerError

func (o *PatchChatsSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this patch chats settings service unavailable response has a 5xx status code

func (*PatchChatsSettingsServiceUnavailable) IsSuccess

IsSuccess returns true when this patch chats settings service unavailable response has a 2xx status code

func (*PatchChatsSettingsServiceUnavailable) String

type PatchChatsSettingsTooManyRequests

type PatchChatsSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewPatchChatsSettingsTooManyRequests

func NewPatchChatsSettingsTooManyRequests() *PatchChatsSettingsTooManyRequests

NewPatchChatsSettingsTooManyRequests creates a PatchChatsSettingsTooManyRequests with default headers values

func (*PatchChatsSettingsTooManyRequests) Error

func (*PatchChatsSettingsTooManyRequests) GetPayload

func (*PatchChatsSettingsTooManyRequests) IsClientError

func (o *PatchChatsSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this patch chats settings too many requests response has a 4xx status code

func (*PatchChatsSettingsTooManyRequests) IsCode

func (o *PatchChatsSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this patch chats settings too many requests response a status code equal to that given

func (*PatchChatsSettingsTooManyRequests) IsRedirect

func (o *PatchChatsSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this patch chats settings too many requests response has a 3xx status code

func (*PatchChatsSettingsTooManyRequests) IsServerError

func (o *PatchChatsSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this patch chats settings too many requests response has a 5xx status code

func (*PatchChatsSettingsTooManyRequests) IsSuccess

func (o *PatchChatsSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this patch chats settings too many requests response has a 2xx status code

func (*PatchChatsSettingsTooManyRequests) String

type PatchChatsSettingsUnauthorized

type PatchChatsSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewPatchChatsSettingsUnauthorized

func NewPatchChatsSettingsUnauthorized() *PatchChatsSettingsUnauthorized

NewPatchChatsSettingsUnauthorized creates a PatchChatsSettingsUnauthorized with default headers values

func (*PatchChatsSettingsUnauthorized) Error

func (*PatchChatsSettingsUnauthorized) GetPayload

func (*PatchChatsSettingsUnauthorized) IsClientError

func (o *PatchChatsSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this patch chats settings unauthorized response has a 4xx status code

func (*PatchChatsSettingsUnauthorized) IsCode

func (o *PatchChatsSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this patch chats settings unauthorized response a status code equal to that given

func (*PatchChatsSettingsUnauthorized) IsRedirect

func (o *PatchChatsSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this patch chats settings unauthorized response has a 3xx status code

func (*PatchChatsSettingsUnauthorized) IsServerError

func (o *PatchChatsSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this patch chats settings unauthorized response has a 5xx status code

func (*PatchChatsSettingsUnauthorized) IsSuccess

func (o *PatchChatsSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this patch chats settings unauthorized response has a 2xx status code

func (*PatchChatsSettingsUnauthorized) String

type PatchChatsSettingsUnsupportedMediaType

type PatchChatsSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

PatchChatsSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewPatchChatsSettingsUnsupportedMediaType

func NewPatchChatsSettingsUnsupportedMediaType() *PatchChatsSettingsUnsupportedMediaType

NewPatchChatsSettingsUnsupportedMediaType creates a PatchChatsSettingsUnsupportedMediaType with default headers values

func (*PatchChatsSettingsUnsupportedMediaType) Error

func (*PatchChatsSettingsUnsupportedMediaType) GetPayload

func (*PatchChatsSettingsUnsupportedMediaType) IsClientError

func (o *PatchChatsSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this patch chats settings unsupported media type response has a 4xx status code

func (*PatchChatsSettingsUnsupportedMediaType) IsCode

IsCode returns true when this patch chats settings unsupported media type response a status code equal to that given

func (*PatchChatsSettingsUnsupportedMediaType) IsRedirect

IsRedirect returns true when this patch chats settings unsupported media type response has a 3xx status code

func (*PatchChatsSettingsUnsupportedMediaType) IsServerError

func (o *PatchChatsSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this patch chats settings unsupported media type response has a 5xx status code

func (*PatchChatsSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this patch chats settings unsupported media type response has a 2xx status code

func (*PatchChatsSettingsUnsupportedMediaType) String

type PutChatSettingsBadRequest

type PutChatSettingsBadRequest struct {
	Payload *models.ErrorBody
}

PutChatSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewPutChatSettingsBadRequest

func NewPutChatSettingsBadRequest() *PutChatSettingsBadRequest

NewPutChatSettingsBadRequest creates a PutChatSettingsBadRequest with default headers values

func (*PutChatSettingsBadRequest) Error

func (o *PutChatSettingsBadRequest) Error() string

func (*PutChatSettingsBadRequest) GetPayload

func (o *PutChatSettingsBadRequest) GetPayload() *models.ErrorBody

func (*PutChatSettingsBadRequest) IsClientError

func (o *PutChatSettingsBadRequest) IsClientError() bool

IsClientError returns true when this put chat settings bad request response has a 4xx status code

func (*PutChatSettingsBadRequest) IsCode

func (o *PutChatSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this put chat settings bad request response a status code equal to that given

func (*PutChatSettingsBadRequest) IsRedirect

func (o *PutChatSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this put chat settings bad request response has a 3xx status code

func (*PutChatSettingsBadRequest) IsServerError

func (o *PutChatSettingsBadRequest) IsServerError() bool

IsServerError returns true when this put chat settings bad request response has a 5xx status code

func (*PutChatSettingsBadRequest) IsSuccess

func (o *PutChatSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this put chat settings bad request response has a 2xx status code

func (*PutChatSettingsBadRequest) String

func (o *PutChatSettingsBadRequest) String() string

type PutChatSettingsForbidden

type PutChatSettingsForbidden struct {
	Payload *models.ErrorBody
}

PutChatSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewPutChatSettingsForbidden

func NewPutChatSettingsForbidden() *PutChatSettingsForbidden

NewPutChatSettingsForbidden creates a PutChatSettingsForbidden with default headers values

func (*PutChatSettingsForbidden) Error

func (o *PutChatSettingsForbidden) Error() string

func (*PutChatSettingsForbidden) GetPayload

func (o *PutChatSettingsForbidden) GetPayload() *models.ErrorBody

func (*PutChatSettingsForbidden) IsClientError

func (o *PutChatSettingsForbidden) IsClientError() bool

IsClientError returns true when this put chat settings forbidden response has a 4xx status code

func (*PutChatSettingsForbidden) IsCode

func (o *PutChatSettingsForbidden) IsCode(code int) bool

IsCode returns true when this put chat settings forbidden response a status code equal to that given

func (*PutChatSettingsForbidden) IsRedirect

func (o *PutChatSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this put chat settings forbidden response has a 3xx status code

func (*PutChatSettingsForbidden) IsServerError

func (o *PutChatSettingsForbidden) IsServerError() bool

IsServerError returns true when this put chat settings forbidden response has a 5xx status code

func (*PutChatSettingsForbidden) IsSuccess

func (o *PutChatSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this put chat settings forbidden response has a 2xx status code

func (*PutChatSettingsForbidden) String

func (o *PutChatSettingsForbidden) String() string

type PutChatSettingsGatewayTimeout

type PutChatSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

PutChatSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewPutChatSettingsGatewayTimeout

func NewPutChatSettingsGatewayTimeout() *PutChatSettingsGatewayTimeout

NewPutChatSettingsGatewayTimeout creates a PutChatSettingsGatewayTimeout with default headers values

func (*PutChatSettingsGatewayTimeout) Error

func (*PutChatSettingsGatewayTimeout) GetPayload

func (*PutChatSettingsGatewayTimeout) IsClientError

func (o *PutChatSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this put chat settings gateway timeout response has a 4xx status code

func (*PutChatSettingsGatewayTimeout) IsCode

func (o *PutChatSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this put chat settings gateway timeout response a status code equal to that given

func (*PutChatSettingsGatewayTimeout) IsRedirect

func (o *PutChatSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this put chat settings gateway timeout response has a 3xx status code

func (*PutChatSettingsGatewayTimeout) IsServerError

func (o *PutChatSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this put chat settings gateway timeout response has a 5xx status code

func (*PutChatSettingsGatewayTimeout) IsSuccess

func (o *PutChatSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this put chat settings gateway timeout response has a 2xx status code

func (*PutChatSettingsGatewayTimeout) String

type PutChatSettingsInternalServerError

type PutChatSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

PutChatSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewPutChatSettingsInternalServerError

func NewPutChatSettingsInternalServerError() *PutChatSettingsInternalServerError

NewPutChatSettingsInternalServerError creates a PutChatSettingsInternalServerError with default headers values

func (*PutChatSettingsInternalServerError) Error

func (*PutChatSettingsInternalServerError) GetPayload

func (*PutChatSettingsInternalServerError) IsClientError

func (o *PutChatSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this put chat settings internal server error response has a 4xx status code

func (*PutChatSettingsInternalServerError) IsCode

IsCode returns true when this put chat settings internal server error response a status code equal to that given

func (*PutChatSettingsInternalServerError) IsRedirect

func (o *PutChatSettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this put chat settings internal server error response has a 3xx status code

func (*PutChatSettingsInternalServerError) IsServerError

func (o *PutChatSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this put chat settings internal server error response has a 5xx status code

func (*PutChatSettingsInternalServerError) IsSuccess

IsSuccess returns true when this put chat settings internal server error response has a 2xx status code

func (*PutChatSettingsInternalServerError) String

type PutChatSettingsNotFound

type PutChatSettingsNotFound struct {
	Payload *models.ErrorBody
}

PutChatSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewPutChatSettingsNotFound

func NewPutChatSettingsNotFound() *PutChatSettingsNotFound

NewPutChatSettingsNotFound creates a PutChatSettingsNotFound with default headers values

func (*PutChatSettingsNotFound) Error

func (o *PutChatSettingsNotFound) Error() string

func (*PutChatSettingsNotFound) GetPayload

func (o *PutChatSettingsNotFound) GetPayload() *models.ErrorBody

func (*PutChatSettingsNotFound) IsClientError

func (o *PutChatSettingsNotFound) IsClientError() bool

IsClientError returns true when this put chat settings not found response has a 4xx status code

func (*PutChatSettingsNotFound) IsCode

func (o *PutChatSettingsNotFound) IsCode(code int) bool

IsCode returns true when this put chat settings not found response a status code equal to that given

func (*PutChatSettingsNotFound) IsRedirect

func (o *PutChatSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this put chat settings not found response has a 3xx status code

func (*PutChatSettingsNotFound) IsServerError

func (o *PutChatSettingsNotFound) IsServerError() bool

IsServerError returns true when this put chat settings not found response has a 5xx status code

func (*PutChatSettingsNotFound) IsSuccess

func (o *PutChatSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this put chat settings not found response has a 2xx status code

func (*PutChatSettingsNotFound) String

func (o *PutChatSettingsNotFound) String() string

type PutChatSettingsOK

type PutChatSettingsOK struct {
	Payload *models.ChatSettings
}

PutChatSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewPutChatSettingsOK

func NewPutChatSettingsOK() *PutChatSettingsOK

NewPutChatSettingsOK creates a PutChatSettingsOK with default headers values

func (*PutChatSettingsOK) Error

func (o *PutChatSettingsOK) Error() string

func (*PutChatSettingsOK) GetPayload

func (o *PutChatSettingsOK) GetPayload() *models.ChatSettings

func (*PutChatSettingsOK) IsClientError

func (o *PutChatSettingsOK) IsClientError() bool

IsClientError returns true when this put chat settings o k response has a 4xx status code

func (*PutChatSettingsOK) IsCode

func (o *PutChatSettingsOK) IsCode(code int) bool

IsCode returns true when this put chat settings o k response a status code equal to that given

func (*PutChatSettingsOK) IsRedirect

func (o *PutChatSettingsOK) IsRedirect() bool

IsRedirect returns true when this put chat settings o k response has a 3xx status code

func (*PutChatSettingsOK) IsServerError

func (o *PutChatSettingsOK) IsServerError() bool

IsServerError returns true when this put chat settings o k response has a 5xx status code

func (*PutChatSettingsOK) IsSuccess

func (o *PutChatSettingsOK) IsSuccess() bool

IsSuccess returns true when this put chat settings o k response has a 2xx status code

func (*PutChatSettingsOK) String

func (o *PutChatSettingsOK) String() string

type PutChatSettingsParams

type PutChatSettingsParams struct {

	/* Body.

	   Chat
	*/
	Body *models.ChatSettings

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

PutChatSettingsParams contains all the parameters to send to the API endpoint

for the put chat settings operation.

Typically these are written to a http.Request.

func NewPutChatSettingsParams

func NewPutChatSettingsParams() *PutChatSettingsParams

NewPutChatSettingsParams creates a new PutChatSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutChatSettingsParamsWithContext

func NewPutChatSettingsParamsWithContext(ctx context.Context) *PutChatSettingsParams

NewPutChatSettingsParamsWithContext creates a new PutChatSettingsParams object with the ability to set a context for a request.

func NewPutChatSettingsParamsWithHTTPClient

func NewPutChatSettingsParamsWithHTTPClient(client *http.Client) *PutChatSettingsParams

NewPutChatSettingsParamsWithHTTPClient creates a new PutChatSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewPutChatSettingsParamsWithTimeout

func NewPutChatSettingsParamsWithTimeout(timeout time.Duration) *PutChatSettingsParams

NewPutChatSettingsParamsWithTimeout creates a new PutChatSettingsParams object with the ability to set a timeout on a request.

func (*PutChatSettingsParams) SetBody

func (o *PutChatSettingsParams) SetBody(body *models.ChatSettings)

SetBody adds the body to the put chat settings params

func (*PutChatSettingsParams) SetContext

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

SetContext adds the context to the put chat settings params

func (*PutChatSettingsParams) SetDefaults

func (o *PutChatSettingsParams) SetDefaults()

SetDefaults hydrates default values in the put chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*PutChatSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put chat settings params

func (*PutChatSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the put chat settings params

func (*PutChatSettingsParams) WithBody

WithBody adds the body to the put chat settings params

func (*PutChatSettingsParams) WithContext

WithContext adds the context to the put chat settings params

func (*PutChatSettingsParams) WithDefaults

func (o *PutChatSettingsParams) WithDefaults() *PutChatSettingsParams

WithDefaults hydrates default values in the put chat settings params (not the query body).

All values with no default are reset to their zero value.

func (*PutChatSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put chat settings params

func (*PutChatSettingsParams) WithTimeout

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

WithTimeout adds the timeout to the put chat settings params

func (*PutChatSettingsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutChatSettingsReader

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

PutChatSettingsReader is a Reader for the PutChatSettings structure.

func (*PutChatSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutChatSettingsRequestEntityTooLarge

type PutChatSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

PutChatSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewPutChatSettingsRequestEntityTooLarge

func NewPutChatSettingsRequestEntityTooLarge() *PutChatSettingsRequestEntityTooLarge

NewPutChatSettingsRequestEntityTooLarge creates a PutChatSettingsRequestEntityTooLarge with default headers values

func (*PutChatSettingsRequestEntityTooLarge) Error

func (*PutChatSettingsRequestEntityTooLarge) GetPayload

func (*PutChatSettingsRequestEntityTooLarge) IsClientError

func (o *PutChatSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this put chat settings request entity too large response has a 4xx status code

func (*PutChatSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this put chat settings request entity too large response a status code equal to that given

func (*PutChatSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this put chat settings request entity too large response has a 3xx status code

func (*PutChatSettingsRequestEntityTooLarge) IsServerError

func (o *PutChatSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this put chat settings request entity too large response has a 5xx status code

func (*PutChatSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this put chat settings request entity too large response has a 2xx status code

func (*PutChatSettingsRequestEntityTooLarge) String

type PutChatSettingsRequestTimeout

type PutChatSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

PutChatSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewPutChatSettingsRequestTimeout

func NewPutChatSettingsRequestTimeout() *PutChatSettingsRequestTimeout

NewPutChatSettingsRequestTimeout creates a PutChatSettingsRequestTimeout with default headers values

func (*PutChatSettingsRequestTimeout) Error

func (*PutChatSettingsRequestTimeout) GetPayload

func (*PutChatSettingsRequestTimeout) IsClientError

func (o *PutChatSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this put chat settings request timeout response has a 4xx status code

func (*PutChatSettingsRequestTimeout) IsCode

func (o *PutChatSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this put chat settings request timeout response a status code equal to that given

func (*PutChatSettingsRequestTimeout) IsRedirect

func (o *PutChatSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this put chat settings request timeout response has a 3xx status code

func (*PutChatSettingsRequestTimeout) IsServerError

func (o *PutChatSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this put chat settings request timeout response has a 5xx status code

func (*PutChatSettingsRequestTimeout) IsSuccess

func (o *PutChatSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this put chat settings request timeout response has a 2xx status code

func (*PutChatSettingsRequestTimeout) String

type PutChatSettingsServiceUnavailable

type PutChatSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

PutChatSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewPutChatSettingsServiceUnavailable

func NewPutChatSettingsServiceUnavailable() *PutChatSettingsServiceUnavailable

NewPutChatSettingsServiceUnavailable creates a PutChatSettingsServiceUnavailable with default headers values

func (*PutChatSettingsServiceUnavailable) Error

func (*PutChatSettingsServiceUnavailable) GetPayload

func (*PutChatSettingsServiceUnavailable) IsClientError

func (o *PutChatSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this put chat settings service unavailable response has a 4xx status code

func (*PutChatSettingsServiceUnavailable) IsCode

func (o *PutChatSettingsServiceUnavailable) IsCode(code int) bool

IsCode returns true when this put chat settings service unavailable response a status code equal to that given

func (*PutChatSettingsServiceUnavailable) IsRedirect

func (o *PutChatSettingsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this put chat settings service unavailable response has a 3xx status code

func (*PutChatSettingsServiceUnavailable) IsServerError

func (o *PutChatSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this put chat settings service unavailable response has a 5xx status code

func (*PutChatSettingsServiceUnavailable) IsSuccess

func (o *PutChatSettingsServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this put chat settings service unavailable response has a 2xx status code

func (*PutChatSettingsServiceUnavailable) String

type PutChatSettingsTooManyRequests

type PutChatSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

PutChatSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewPutChatSettingsTooManyRequests

func NewPutChatSettingsTooManyRequests() *PutChatSettingsTooManyRequests

NewPutChatSettingsTooManyRequests creates a PutChatSettingsTooManyRequests with default headers values

func (*PutChatSettingsTooManyRequests) Error

func (*PutChatSettingsTooManyRequests) GetPayload

func (*PutChatSettingsTooManyRequests) IsClientError

func (o *PutChatSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this put chat settings too many requests response has a 4xx status code

func (*PutChatSettingsTooManyRequests) IsCode

func (o *PutChatSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this put chat settings too many requests response a status code equal to that given

func (*PutChatSettingsTooManyRequests) IsRedirect

func (o *PutChatSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this put chat settings too many requests response has a 3xx status code

func (*PutChatSettingsTooManyRequests) IsServerError

func (o *PutChatSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this put chat settings too many requests response has a 5xx status code

func (*PutChatSettingsTooManyRequests) IsSuccess

func (o *PutChatSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this put chat settings too many requests response has a 2xx status code

func (*PutChatSettingsTooManyRequests) String

type PutChatSettingsUnauthorized

type PutChatSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

PutChatSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewPutChatSettingsUnauthorized

func NewPutChatSettingsUnauthorized() *PutChatSettingsUnauthorized

NewPutChatSettingsUnauthorized creates a PutChatSettingsUnauthorized with default headers values

func (*PutChatSettingsUnauthorized) Error

func (*PutChatSettingsUnauthorized) GetPayload

func (o *PutChatSettingsUnauthorized) GetPayload() *models.ErrorBody

func (*PutChatSettingsUnauthorized) IsClientError

func (o *PutChatSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this put chat settings unauthorized response has a 4xx status code

func (*PutChatSettingsUnauthorized) IsCode

func (o *PutChatSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this put chat settings unauthorized response a status code equal to that given

func (*PutChatSettingsUnauthorized) IsRedirect

func (o *PutChatSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this put chat settings unauthorized response has a 3xx status code

func (*PutChatSettingsUnauthorized) IsServerError

func (o *PutChatSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this put chat settings unauthorized response has a 5xx status code

func (*PutChatSettingsUnauthorized) IsSuccess

func (o *PutChatSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this put chat settings unauthorized response has a 2xx status code

func (*PutChatSettingsUnauthorized) String

func (o *PutChatSettingsUnauthorized) String() string

type PutChatSettingsUnsupportedMediaType

type PutChatSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

PutChatSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewPutChatSettingsUnsupportedMediaType

func NewPutChatSettingsUnsupportedMediaType() *PutChatSettingsUnsupportedMediaType

NewPutChatSettingsUnsupportedMediaType creates a PutChatSettingsUnsupportedMediaType with default headers values

func (*PutChatSettingsUnsupportedMediaType) Error

func (*PutChatSettingsUnsupportedMediaType) GetPayload

func (*PutChatSettingsUnsupportedMediaType) IsClientError

func (o *PutChatSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this put chat settings unsupported media type response has a 4xx status code

func (*PutChatSettingsUnsupportedMediaType) IsCode

IsCode returns true when this put chat settings unsupported media type response a status code equal to that given

func (*PutChatSettingsUnsupportedMediaType) IsRedirect

func (o *PutChatSettingsUnsupportedMediaType) IsRedirect() bool

IsRedirect returns true when this put chat settings unsupported media type response has a 3xx status code

func (*PutChatSettingsUnsupportedMediaType) IsServerError

func (o *PutChatSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this put chat settings unsupported media type response has a 5xx status code

func (*PutChatSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this put chat settings unsupported media type response has a 2xx status code

func (*PutChatSettingsUnsupportedMediaType) String

type PutChatsSettingsBadRequest

type PutChatsSettingsBadRequest struct {
	Payload *models.ErrorBody
}

PutChatsSettingsBadRequest describes a response with status code 400, with default header values.

The request could not be understood by the server due to malformed syntax.

func NewPutChatsSettingsBadRequest

func NewPutChatsSettingsBadRequest() *PutChatsSettingsBadRequest

NewPutChatsSettingsBadRequest creates a PutChatsSettingsBadRequest with default headers values

func (*PutChatsSettingsBadRequest) Error

func (*PutChatsSettingsBadRequest) GetPayload

func (o *PutChatsSettingsBadRequest) GetPayload() *models.ErrorBody

func (*PutChatsSettingsBadRequest) IsClientError

func (o *PutChatsSettingsBadRequest) IsClientError() bool

IsClientError returns true when this put chats settings bad request response has a 4xx status code

func (*PutChatsSettingsBadRequest) IsCode

func (o *PutChatsSettingsBadRequest) IsCode(code int) bool

IsCode returns true when this put chats settings bad request response a status code equal to that given

func (*PutChatsSettingsBadRequest) IsRedirect

func (o *PutChatsSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this put chats settings bad request response has a 3xx status code

func (*PutChatsSettingsBadRequest) IsServerError

func (o *PutChatsSettingsBadRequest) IsServerError() bool

IsServerError returns true when this put chats settings bad request response has a 5xx status code

func (*PutChatsSettingsBadRequest) IsSuccess

func (o *PutChatsSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this put chats settings bad request response has a 2xx status code

func (*PutChatsSettingsBadRequest) String

func (o *PutChatsSettingsBadRequest) String() string

type PutChatsSettingsForbidden

type PutChatsSettingsForbidden struct {
	Payload *models.ErrorBody
}

PutChatsSettingsForbidden describes a response with status code 403, with default header values.

You are not authorized to perform the requested action.

func NewPutChatsSettingsForbidden

func NewPutChatsSettingsForbidden() *PutChatsSettingsForbidden

NewPutChatsSettingsForbidden creates a PutChatsSettingsForbidden with default headers values

func (*PutChatsSettingsForbidden) Error

func (o *PutChatsSettingsForbidden) Error() string

func (*PutChatsSettingsForbidden) GetPayload

func (o *PutChatsSettingsForbidden) GetPayload() *models.ErrorBody

func (*PutChatsSettingsForbidden) IsClientError

func (o *PutChatsSettingsForbidden) IsClientError() bool

IsClientError returns true when this put chats settings forbidden response has a 4xx status code

func (*PutChatsSettingsForbidden) IsCode

func (o *PutChatsSettingsForbidden) IsCode(code int) bool

IsCode returns true when this put chats settings forbidden response a status code equal to that given

func (*PutChatsSettingsForbidden) IsRedirect

func (o *PutChatsSettingsForbidden) IsRedirect() bool

IsRedirect returns true when this put chats settings forbidden response has a 3xx status code

func (*PutChatsSettingsForbidden) IsServerError

func (o *PutChatsSettingsForbidden) IsServerError() bool

IsServerError returns true when this put chats settings forbidden response has a 5xx status code

func (*PutChatsSettingsForbidden) IsSuccess

func (o *PutChatsSettingsForbidden) IsSuccess() bool

IsSuccess returns true when this put chats settings forbidden response has a 2xx status code

func (*PutChatsSettingsForbidden) String

func (o *PutChatsSettingsForbidden) String() string

type PutChatsSettingsGatewayTimeout

type PutChatsSettingsGatewayTimeout struct {
	Payload *models.ErrorBody
}

PutChatsSettingsGatewayTimeout describes a response with status code 504, with default header values.

The request timed out.

func NewPutChatsSettingsGatewayTimeout

func NewPutChatsSettingsGatewayTimeout() *PutChatsSettingsGatewayTimeout

NewPutChatsSettingsGatewayTimeout creates a PutChatsSettingsGatewayTimeout with default headers values

func (*PutChatsSettingsGatewayTimeout) Error

func (*PutChatsSettingsGatewayTimeout) GetPayload

func (*PutChatsSettingsGatewayTimeout) IsClientError

func (o *PutChatsSettingsGatewayTimeout) IsClientError() bool

IsClientError returns true when this put chats settings gateway timeout response has a 4xx status code

func (*PutChatsSettingsGatewayTimeout) IsCode

func (o *PutChatsSettingsGatewayTimeout) IsCode(code int) bool

IsCode returns true when this put chats settings gateway timeout response a status code equal to that given

func (*PutChatsSettingsGatewayTimeout) IsRedirect

func (o *PutChatsSettingsGatewayTimeout) IsRedirect() bool

IsRedirect returns true when this put chats settings gateway timeout response has a 3xx status code

func (*PutChatsSettingsGatewayTimeout) IsServerError

func (o *PutChatsSettingsGatewayTimeout) IsServerError() bool

IsServerError returns true when this put chats settings gateway timeout response has a 5xx status code

func (*PutChatsSettingsGatewayTimeout) IsSuccess

func (o *PutChatsSettingsGatewayTimeout) IsSuccess() bool

IsSuccess returns true when this put chats settings gateway timeout response has a 2xx status code

func (*PutChatsSettingsGatewayTimeout) String

type PutChatsSettingsInternalServerError

type PutChatsSettingsInternalServerError struct {
	Payload *models.ErrorBody
}

PutChatsSettingsInternalServerError describes a response with status code 500, with default header values.

The server encountered an unexpected condition which prevented it from fulfilling the request.

func NewPutChatsSettingsInternalServerError

func NewPutChatsSettingsInternalServerError() *PutChatsSettingsInternalServerError

NewPutChatsSettingsInternalServerError creates a PutChatsSettingsInternalServerError with default headers values

func (*PutChatsSettingsInternalServerError) Error

func (*PutChatsSettingsInternalServerError) GetPayload

func (*PutChatsSettingsInternalServerError) IsClientError

func (o *PutChatsSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this put chats settings internal server error response has a 4xx status code

func (*PutChatsSettingsInternalServerError) IsCode

IsCode returns true when this put chats settings internal server error response a status code equal to that given

func (*PutChatsSettingsInternalServerError) IsRedirect

func (o *PutChatsSettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this put chats settings internal server error response has a 3xx status code

func (*PutChatsSettingsInternalServerError) IsServerError

func (o *PutChatsSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this put chats settings internal server error response has a 5xx status code

func (*PutChatsSettingsInternalServerError) IsSuccess

IsSuccess returns true when this put chats settings internal server error response has a 2xx status code

func (*PutChatsSettingsInternalServerError) String

type PutChatsSettingsNotFound

type PutChatsSettingsNotFound struct {
	Payload *models.ErrorBody
}

PutChatsSettingsNotFound describes a response with status code 404, with default header values.

The requested resource was not found.

func NewPutChatsSettingsNotFound

func NewPutChatsSettingsNotFound() *PutChatsSettingsNotFound

NewPutChatsSettingsNotFound creates a PutChatsSettingsNotFound with default headers values

func (*PutChatsSettingsNotFound) Error

func (o *PutChatsSettingsNotFound) Error() string

func (*PutChatsSettingsNotFound) GetPayload

func (o *PutChatsSettingsNotFound) GetPayload() *models.ErrorBody

func (*PutChatsSettingsNotFound) IsClientError

func (o *PutChatsSettingsNotFound) IsClientError() bool

IsClientError returns true when this put chats settings not found response has a 4xx status code

func (*PutChatsSettingsNotFound) IsCode

func (o *PutChatsSettingsNotFound) IsCode(code int) bool

IsCode returns true when this put chats settings not found response a status code equal to that given

func (*PutChatsSettingsNotFound) IsRedirect

func (o *PutChatsSettingsNotFound) IsRedirect() bool

IsRedirect returns true when this put chats settings not found response has a 3xx status code

func (*PutChatsSettingsNotFound) IsServerError

func (o *PutChatsSettingsNotFound) IsServerError() bool

IsServerError returns true when this put chats settings not found response has a 5xx status code

func (*PutChatsSettingsNotFound) IsSuccess

func (o *PutChatsSettingsNotFound) IsSuccess() bool

IsSuccess returns true when this put chats settings not found response has a 2xx status code

func (*PutChatsSettingsNotFound) String

func (o *PutChatsSettingsNotFound) String() string

type PutChatsSettingsOK

type PutChatsSettingsOK struct {
	Payload *models.ChatSettings
}

PutChatsSettingsOK describes a response with status code 200, with default header values.

successful operation

func NewPutChatsSettingsOK

func NewPutChatsSettingsOK() *PutChatsSettingsOK

NewPutChatsSettingsOK creates a PutChatsSettingsOK with default headers values

func (*PutChatsSettingsOK) Error

func (o *PutChatsSettingsOK) Error() string

func (*PutChatsSettingsOK) GetPayload

func (o *PutChatsSettingsOK) GetPayload() *models.ChatSettings

func (*PutChatsSettingsOK) IsClientError

func (o *PutChatsSettingsOK) IsClientError() bool

IsClientError returns true when this put chats settings o k response has a 4xx status code

func (*PutChatsSettingsOK) IsCode

func (o *PutChatsSettingsOK) IsCode(code int) bool

IsCode returns true when this put chats settings o k response a status code equal to that given

func (*PutChatsSettingsOK) IsRedirect

func (o *PutChatsSettingsOK) IsRedirect() bool

IsRedirect returns true when this put chats settings o k response has a 3xx status code

func (*PutChatsSettingsOK) IsServerError

func (o *PutChatsSettingsOK) IsServerError() bool

IsServerError returns true when this put chats settings o k response has a 5xx status code

func (*PutChatsSettingsOK) IsSuccess

func (o *PutChatsSettingsOK) IsSuccess() bool

IsSuccess returns true when this put chats settings o k response has a 2xx status code

func (*PutChatsSettingsOK) String

func (o *PutChatsSettingsOK) String() string

type PutChatsSettingsParams

type PutChatsSettingsParams struct {

	/* Body.

	   Chat
	*/
	Body *models.ChatSettings

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

PutChatsSettingsParams contains all the parameters to send to the API endpoint

for the put chats settings operation.

Typically these are written to a http.Request.

func NewPutChatsSettingsParams

func NewPutChatsSettingsParams() *PutChatsSettingsParams

NewPutChatsSettingsParams creates a new PutChatsSettingsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutChatsSettingsParamsWithContext

func NewPutChatsSettingsParamsWithContext(ctx context.Context) *PutChatsSettingsParams

NewPutChatsSettingsParamsWithContext creates a new PutChatsSettingsParams object with the ability to set a context for a request.

func NewPutChatsSettingsParamsWithHTTPClient

func NewPutChatsSettingsParamsWithHTTPClient(client *http.Client) *PutChatsSettingsParams

NewPutChatsSettingsParamsWithHTTPClient creates a new PutChatsSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewPutChatsSettingsParamsWithTimeout

func NewPutChatsSettingsParamsWithTimeout(timeout time.Duration) *PutChatsSettingsParams

NewPutChatsSettingsParamsWithTimeout creates a new PutChatsSettingsParams object with the ability to set a timeout on a request.

func (*PutChatsSettingsParams) SetBody

func (o *PutChatsSettingsParams) SetBody(body *models.ChatSettings)

SetBody adds the body to the put chats settings params

func (*PutChatsSettingsParams) SetContext

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

SetContext adds the context to the put chats settings params

func (*PutChatsSettingsParams) SetDefaults

func (o *PutChatsSettingsParams) SetDefaults()

SetDefaults hydrates default values in the put chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*PutChatsSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put chats settings params

func (*PutChatsSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the put chats settings params

func (*PutChatsSettingsParams) WithBody

WithBody adds the body to the put chats settings params

func (*PutChatsSettingsParams) WithContext

WithContext adds the context to the put chats settings params

func (*PutChatsSettingsParams) WithDefaults

WithDefaults hydrates default values in the put chats settings params (not the query body).

All values with no default are reset to their zero value.

func (*PutChatsSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put chats settings params

func (*PutChatsSettingsParams) WithTimeout

WithTimeout adds the timeout to the put chats settings params

func (*PutChatsSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutChatsSettingsReader

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

PutChatsSettingsReader is a Reader for the PutChatsSettings structure.

func (*PutChatsSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutChatsSettingsRequestEntityTooLarge

type PutChatsSettingsRequestEntityTooLarge struct {
	Payload *models.ErrorBody
}

PutChatsSettingsRequestEntityTooLarge describes a response with status code 413, with default header values.

The request is over the size limit. Maximum bytes: %s

func NewPutChatsSettingsRequestEntityTooLarge

func NewPutChatsSettingsRequestEntityTooLarge() *PutChatsSettingsRequestEntityTooLarge

NewPutChatsSettingsRequestEntityTooLarge creates a PutChatsSettingsRequestEntityTooLarge with default headers values

func (*PutChatsSettingsRequestEntityTooLarge) Error

func (*PutChatsSettingsRequestEntityTooLarge) GetPayload

func (*PutChatsSettingsRequestEntityTooLarge) IsClientError

func (o *PutChatsSettingsRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this put chats settings request entity too large response has a 4xx status code

func (*PutChatsSettingsRequestEntityTooLarge) IsCode

IsCode returns true when this put chats settings request entity too large response a status code equal to that given

func (*PutChatsSettingsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this put chats settings request entity too large response has a 3xx status code

func (*PutChatsSettingsRequestEntityTooLarge) IsServerError

func (o *PutChatsSettingsRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this put chats settings request entity too large response has a 5xx status code

func (*PutChatsSettingsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this put chats settings request entity too large response has a 2xx status code

func (*PutChatsSettingsRequestEntityTooLarge) String

type PutChatsSettingsRequestTimeout

type PutChatsSettingsRequestTimeout struct {
	Payload *models.ErrorBody
}

PutChatsSettingsRequestTimeout describes a response with status code 408, with default header values.

The client did not produce a request within the server timeout limit. This can be caused by a slow network connection and/or large payloads.

func NewPutChatsSettingsRequestTimeout

func NewPutChatsSettingsRequestTimeout() *PutChatsSettingsRequestTimeout

NewPutChatsSettingsRequestTimeout creates a PutChatsSettingsRequestTimeout with default headers values

func (*PutChatsSettingsRequestTimeout) Error

func (*PutChatsSettingsRequestTimeout) GetPayload

func (*PutChatsSettingsRequestTimeout) IsClientError

func (o *PutChatsSettingsRequestTimeout) IsClientError() bool

IsClientError returns true when this put chats settings request timeout response has a 4xx status code

func (*PutChatsSettingsRequestTimeout) IsCode

func (o *PutChatsSettingsRequestTimeout) IsCode(code int) bool

IsCode returns true when this put chats settings request timeout response a status code equal to that given

func (*PutChatsSettingsRequestTimeout) IsRedirect

func (o *PutChatsSettingsRequestTimeout) IsRedirect() bool

IsRedirect returns true when this put chats settings request timeout response has a 3xx status code

func (*PutChatsSettingsRequestTimeout) IsServerError

func (o *PutChatsSettingsRequestTimeout) IsServerError() bool

IsServerError returns true when this put chats settings request timeout response has a 5xx status code

func (*PutChatsSettingsRequestTimeout) IsSuccess

func (o *PutChatsSettingsRequestTimeout) IsSuccess() bool

IsSuccess returns true when this put chats settings request timeout response has a 2xx status code

func (*PutChatsSettingsRequestTimeout) String

type PutChatsSettingsServiceUnavailable

type PutChatsSettingsServiceUnavailable struct {
	Payload *models.ErrorBody
}

PutChatsSettingsServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable - The server is currently unavailable (because it is overloaded or down for maintenance).

func NewPutChatsSettingsServiceUnavailable

func NewPutChatsSettingsServiceUnavailable() *PutChatsSettingsServiceUnavailable

NewPutChatsSettingsServiceUnavailable creates a PutChatsSettingsServiceUnavailable with default headers values

func (*PutChatsSettingsServiceUnavailable) Error

func (*PutChatsSettingsServiceUnavailable) GetPayload

func (*PutChatsSettingsServiceUnavailable) IsClientError

func (o *PutChatsSettingsServiceUnavailable) IsClientError() bool

IsClientError returns true when this put chats settings service unavailable response has a 4xx status code

func (*PutChatsSettingsServiceUnavailable) IsCode

IsCode returns true when this put chats settings service unavailable response a status code equal to that given

func (*PutChatsSettingsServiceUnavailable) IsRedirect

func (o *PutChatsSettingsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this put chats settings service unavailable response has a 3xx status code

func (*PutChatsSettingsServiceUnavailable) IsServerError

func (o *PutChatsSettingsServiceUnavailable) IsServerError() bool

IsServerError returns true when this put chats settings service unavailable response has a 5xx status code

func (*PutChatsSettingsServiceUnavailable) IsSuccess

IsSuccess returns true when this put chats settings service unavailable response has a 2xx status code

func (*PutChatsSettingsServiceUnavailable) String

type PutChatsSettingsTooManyRequests

type PutChatsSettingsTooManyRequests struct {
	Payload *models.ErrorBody
}

PutChatsSettingsTooManyRequests describes a response with status code 429, with default header values.

Rate limit exceeded the maximum. Retry the request in [%s] seconds

func NewPutChatsSettingsTooManyRequests

func NewPutChatsSettingsTooManyRequests() *PutChatsSettingsTooManyRequests

NewPutChatsSettingsTooManyRequests creates a PutChatsSettingsTooManyRequests with default headers values

func (*PutChatsSettingsTooManyRequests) Error

func (*PutChatsSettingsTooManyRequests) GetPayload

func (*PutChatsSettingsTooManyRequests) IsClientError

func (o *PutChatsSettingsTooManyRequests) IsClientError() bool

IsClientError returns true when this put chats settings too many requests response has a 4xx status code

func (*PutChatsSettingsTooManyRequests) IsCode

func (o *PutChatsSettingsTooManyRequests) IsCode(code int) bool

IsCode returns true when this put chats settings too many requests response a status code equal to that given

func (*PutChatsSettingsTooManyRequests) IsRedirect

func (o *PutChatsSettingsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this put chats settings too many requests response has a 3xx status code

func (*PutChatsSettingsTooManyRequests) IsServerError

func (o *PutChatsSettingsTooManyRequests) IsServerError() bool

IsServerError returns true when this put chats settings too many requests response has a 5xx status code

func (*PutChatsSettingsTooManyRequests) IsSuccess

func (o *PutChatsSettingsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this put chats settings too many requests response has a 2xx status code

func (*PutChatsSettingsTooManyRequests) String

type PutChatsSettingsUnauthorized

type PutChatsSettingsUnauthorized struct {
	Payload *models.ErrorBody
}

PutChatsSettingsUnauthorized describes a response with status code 401, with default header values.

No authentication bearer token specified in authorization header.

func NewPutChatsSettingsUnauthorized

func NewPutChatsSettingsUnauthorized() *PutChatsSettingsUnauthorized

NewPutChatsSettingsUnauthorized creates a PutChatsSettingsUnauthorized with default headers values

func (*PutChatsSettingsUnauthorized) Error

func (*PutChatsSettingsUnauthorized) GetPayload

func (*PutChatsSettingsUnauthorized) IsClientError

func (o *PutChatsSettingsUnauthorized) IsClientError() bool

IsClientError returns true when this put chats settings unauthorized response has a 4xx status code

func (*PutChatsSettingsUnauthorized) IsCode

func (o *PutChatsSettingsUnauthorized) IsCode(code int) bool

IsCode returns true when this put chats settings unauthorized response a status code equal to that given

func (*PutChatsSettingsUnauthorized) IsRedirect

func (o *PutChatsSettingsUnauthorized) IsRedirect() bool

IsRedirect returns true when this put chats settings unauthorized response has a 3xx status code

func (*PutChatsSettingsUnauthorized) IsServerError

func (o *PutChatsSettingsUnauthorized) IsServerError() bool

IsServerError returns true when this put chats settings unauthorized response has a 5xx status code

func (*PutChatsSettingsUnauthorized) IsSuccess

func (o *PutChatsSettingsUnauthorized) IsSuccess() bool

IsSuccess returns true when this put chats settings unauthorized response has a 2xx status code

func (*PutChatsSettingsUnauthorized) String

type PutChatsSettingsUnsupportedMediaType

type PutChatsSettingsUnsupportedMediaType struct {
	Payload *models.ErrorBody
}

PutChatsSettingsUnsupportedMediaType describes a response with status code 415, with default header values.

Unsupported Media Type - Unsupported or incorrect media type, such as an incorrect Content-Type value in the header.

func NewPutChatsSettingsUnsupportedMediaType

func NewPutChatsSettingsUnsupportedMediaType() *PutChatsSettingsUnsupportedMediaType

NewPutChatsSettingsUnsupportedMediaType creates a PutChatsSettingsUnsupportedMediaType with default headers values

func (*PutChatsSettingsUnsupportedMediaType) Error

func (*PutChatsSettingsUnsupportedMediaType) GetPayload

func (*PutChatsSettingsUnsupportedMediaType) IsClientError

func (o *PutChatsSettingsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this put chats settings unsupported media type response has a 4xx status code

func (*PutChatsSettingsUnsupportedMediaType) IsCode

IsCode returns true when this put chats settings unsupported media type response a status code equal to that given

func (*PutChatsSettingsUnsupportedMediaType) IsRedirect

IsRedirect returns true when this put chats settings unsupported media type response has a 3xx status code

func (*PutChatsSettingsUnsupportedMediaType) IsServerError

func (o *PutChatsSettingsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this put chats settings unsupported media type response has a 5xx status code

func (*PutChatsSettingsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this put chats settings unsupported media type response has a 2xx status code

func (*PutChatsSettingsUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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