conversations

package
v0.0.0-...-6bd88e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for conversations API

func (*Client) ConversationDelete

func (a *Client) ConversationDelete(params *ConversationDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationDeleteOK, error)
ConversationDelete deletes a single conversation with the given ID

This doesn't delete the actual statuses in the conversation,

nor does it prevent a new conversation from being created later from the same thread and participants.

func (*Client) ConversationRead

func (a *Client) ConversationRead(params *ConversationReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationReadOK, error)

ConversationRead marks a conversation with the given ID as read

func (*Client) ConversationsGet

func (a *Client) ConversationsGet(params *ConversationsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationsGetOK, error)
ConversationsGet gets an array of direct message conversations that requesting account is involved in

The next and previous queries can be parsed from the returned Link header.

Example:

``` <https://example.org/api/v1/conversations?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/conversations?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	ConversationDelete(params *ConversationDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationDeleteOK, error)

	ConversationRead(params *ConversationReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationReadOK, error)

	ConversationsGet(params *ConversationsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConversationsGetOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new conversations API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new conversations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new conversations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type ConversationDeleteBadRequest

type ConversationDeleteBadRequest struct {
}

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

bad request

func NewConversationDeleteBadRequest

func NewConversationDeleteBadRequest() *ConversationDeleteBadRequest

NewConversationDeleteBadRequest creates a ConversationDeleteBadRequest with default headers values

func (*ConversationDeleteBadRequest) Code

Code gets the status code for the conversation delete bad request response

func (*ConversationDeleteBadRequest) Error

func (*ConversationDeleteBadRequest) IsClientError

func (o *ConversationDeleteBadRequest) IsClientError() bool

IsClientError returns true when this conversation delete bad request response has a 4xx status code

func (*ConversationDeleteBadRequest) IsCode

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

IsCode returns true when this conversation delete bad request response a status code equal to that given

func (*ConversationDeleteBadRequest) IsRedirect

func (o *ConversationDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this conversation delete bad request response has a 3xx status code

func (*ConversationDeleteBadRequest) IsServerError

func (o *ConversationDeleteBadRequest) IsServerError() bool

IsServerError returns true when this conversation delete bad request response has a 5xx status code

func (*ConversationDeleteBadRequest) IsSuccess

func (o *ConversationDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this conversation delete bad request response has a 2xx status code

func (*ConversationDeleteBadRequest) String

type ConversationDeleteInternalServerError

type ConversationDeleteInternalServerError struct {
}

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

internal server error

func NewConversationDeleteInternalServerError

func NewConversationDeleteInternalServerError() *ConversationDeleteInternalServerError

NewConversationDeleteInternalServerError creates a ConversationDeleteInternalServerError with default headers values

func (*ConversationDeleteInternalServerError) Code

Code gets the status code for the conversation delete internal server error response

func (*ConversationDeleteInternalServerError) Error

func (*ConversationDeleteInternalServerError) IsClientError

func (o *ConversationDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this conversation delete internal server error response has a 4xx status code

func (*ConversationDeleteInternalServerError) IsCode

IsCode returns true when this conversation delete internal server error response a status code equal to that given

func (*ConversationDeleteInternalServerError) IsRedirect

IsRedirect returns true when this conversation delete internal server error response has a 3xx status code

func (*ConversationDeleteInternalServerError) IsServerError

func (o *ConversationDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this conversation delete internal server error response has a 5xx status code

func (*ConversationDeleteInternalServerError) IsSuccess

IsSuccess returns true when this conversation delete internal server error response has a 2xx status code

func (*ConversationDeleteInternalServerError) String

type ConversationDeleteNotAcceptable

type ConversationDeleteNotAcceptable struct {
}

ConversationDeleteNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewConversationDeleteNotAcceptable

func NewConversationDeleteNotAcceptable() *ConversationDeleteNotAcceptable

NewConversationDeleteNotAcceptable creates a ConversationDeleteNotAcceptable with default headers values

func (*ConversationDeleteNotAcceptable) Code

Code gets the status code for the conversation delete not acceptable response

func (*ConversationDeleteNotAcceptable) Error

func (*ConversationDeleteNotAcceptable) IsClientError

func (o *ConversationDeleteNotAcceptable) IsClientError() bool

IsClientError returns true when this conversation delete not acceptable response has a 4xx status code

func (*ConversationDeleteNotAcceptable) IsCode

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

IsCode returns true when this conversation delete not acceptable response a status code equal to that given

func (*ConversationDeleteNotAcceptable) IsRedirect

func (o *ConversationDeleteNotAcceptable) IsRedirect() bool

IsRedirect returns true when this conversation delete not acceptable response has a 3xx status code

func (*ConversationDeleteNotAcceptable) IsServerError

func (o *ConversationDeleteNotAcceptable) IsServerError() bool

IsServerError returns true when this conversation delete not acceptable response has a 5xx status code

func (*ConversationDeleteNotAcceptable) IsSuccess

func (o *ConversationDeleteNotAcceptable) IsSuccess() bool

IsSuccess returns true when this conversation delete not acceptable response has a 2xx status code

func (*ConversationDeleteNotAcceptable) String

type ConversationDeleteNotFound

type ConversationDeleteNotFound struct {
}

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

not found

func NewConversationDeleteNotFound

func NewConversationDeleteNotFound() *ConversationDeleteNotFound

NewConversationDeleteNotFound creates a ConversationDeleteNotFound with default headers values

func (*ConversationDeleteNotFound) Code

func (o *ConversationDeleteNotFound) Code() int

Code gets the status code for the conversation delete not found response

func (*ConversationDeleteNotFound) Error

func (*ConversationDeleteNotFound) IsClientError

func (o *ConversationDeleteNotFound) IsClientError() bool

IsClientError returns true when this conversation delete not found response has a 4xx status code

func (*ConversationDeleteNotFound) IsCode

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

IsCode returns true when this conversation delete not found response a status code equal to that given

func (*ConversationDeleteNotFound) IsRedirect

func (o *ConversationDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this conversation delete not found response has a 3xx status code

func (*ConversationDeleteNotFound) IsServerError

func (o *ConversationDeleteNotFound) IsServerError() bool

IsServerError returns true when this conversation delete not found response has a 5xx status code

func (*ConversationDeleteNotFound) IsSuccess

func (o *ConversationDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this conversation delete not found response has a 2xx status code

func (*ConversationDeleteNotFound) String

func (o *ConversationDeleteNotFound) String() string

type ConversationDeleteOK

type ConversationDeleteOK struct {
}

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

conversation deleted

func NewConversationDeleteOK

func NewConversationDeleteOK() *ConversationDeleteOK

NewConversationDeleteOK creates a ConversationDeleteOK with default headers values

func (*ConversationDeleteOK) Code

func (o *ConversationDeleteOK) Code() int

Code gets the status code for the conversation delete o k response

func (*ConversationDeleteOK) Error

func (o *ConversationDeleteOK) Error() string

func (*ConversationDeleteOK) IsClientError

func (o *ConversationDeleteOK) IsClientError() bool

IsClientError returns true when this conversation delete o k response has a 4xx status code

func (*ConversationDeleteOK) IsCode

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

IsCode returns true when this conversation delete o k response a status code equal to that given

func (*ConversationDeleteOK) IsRedirect

func (o *ConversationDeleteOK) IsRedirect() bool

IsRedirect returns true when this conversation delete o k response has a 3xx status code

func (*ConversationDeleteOK) IsServerError

func (o *ConversationDeleteOK) IsServerError() bool

IsServerError returns true when this conversation delete o k response has a 5xx status code

func (*ConversationDeleteOK) IsSuccess

func (o *ConversationDeleteOK) IsSuccess() bool

IsSuccess returns true when this conversation delete o k response has a 2xx status code

func (*ConversationDeleteOK) String

func (o *ConversationDeleteOK) String() string

type ConversationDeleteParams

type ConversationDeleteParams struct {

	/* ID.

	   ID of the conversation
	*/
	ID string

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

ConversationDeleteParams contains all the parameters to send to the API endpoint

for the conversation delete operation.

Typically these are written to a http.Request.

func NewConversationDeleteParams

func NewConversationDeleteParams() *ConversationDeleteParams

NewConversationDeleteParams creates a new ConversationDeleteParams 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 NewConversationDeleteParamsWithContext

func NewConversationDeleteParamsWithContext(ctx context.Context) *ConversationDeleteParams

NewConversationDeleteParamsWithContext creates a new ConversationDeleteParams object with the ability to set a context for a request.

func NewConversationDeleteParamsWithHTTPClient

func NewConversationDeleteParamsWithHTTPClient(client *http.Client) *ConversationDeleteParams

NewConversationDeleteParamsWithHTTPClient creates a new ConversationDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewConversationDeleteParamsWithTimeout

func NewConversationDeleteParamsWithTimeout(timeout time.Duration) *ConversationDeleteParams

NewConversationDeleteParamsWithTimeout creates a new ConversationDeleteParams object with the ability to set a timeout on a request.

func (*ConversationDeleteParams) SetContext

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

SetContext adds the context to the conversation delete params

func (*ConversationDeleteParams) SetDefaults

func (o *ConversationDeleteParams) SetDefaults()

SetDefaults hydrates default values in the conversation delete params (not the query body).

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

func (*ConversationDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the conversation delete params

func (*ConversationDeleteParams) SetID

func (o *ConversationDeleteParams) SetID(id string)

SetID adds the id to the conversation delete params

func (*ConversationDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the conversation delete params

func (*ConversationDeleteParams) WithContext

WithContext adds the context to the conversation delete params

func (*ConversationDeleteParams) WithDefaults

WithDefaults hydrates default values in the conversation delete params (not the query body).

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

func (*ConversationDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the conversation delete params

func (*ConversationDeleteParams) WithID

WithID adds the id to the conversation delete params

func (*ConversationDeleteParams) WithTimeout

WithTimeout adds the timeout to the conversation delete params

func (*ConversationDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ConversationDeleteReader

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

ConversationDeleteReader is a Reader for the ConversationDelete structure.

func (*ConversationDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConversationDeleteUnauthorized

type ConversationDeleteUnauthorized struct {
}

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

unauthorized

func NewConversationDeleteUnauthorized

func NewConversationDeleteUnauthorized() *ConversationDeleteUnauthorized

NewConversationDeleteUnauthorized creates a ConversationDeleteUnauthorized with default headers values

func (*ConversationDeleteUnauthorized) Code

Code gets the status code for the conversation delete unauthorized response

func (*ConversationDeleteUnauthorized) Error

func (*ConversationDeleteUnauthorized) IsClientError

func (o *ConversationDeleteUnauthorized) IsClientError() bool

IsClientError returns true when this conversation delete unauthorized response has a 4xx status code

func (*ConversationDeleteUnauthorized) IsCode

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

IsCode returns true when this conversation delete unauthorized response a status code equal to that given

func (*ConversationDeleteUnauthorized) IsRedirect

func (o *ConversationDeleteUnauthorized) IsRedirect() bool

IsRedirect returns true when this conversation delete unauthorized response has a 3xx status code

func (*ConversationDeleteUnauthorized) IsServerError

func (o *ConversationDeleteUnauthorized) IsServerError() bool

IsServerError returns true when this conversation delete unauthorized response has a 5xx status code

func (*ConversationDeleteUnauthorized) IsSuccess

func (o *ConversationDeleteUnauthorized) IsSuccess() bool

IsSuccess returns true when this conversation delete unauthorized response has a 2xx status code

func (*ConversationDeleteUnauthorized) String

type ConversationReadBadRequest

type ConversationReadBadRequest struct {
}

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

bad request

func NewConversationReadBadRequest

func NewConversationReadBadRequest() *ConversationReadBadRequest

NewConversationReadBadRequest creates a ConversationReadBadRequest with default headers values

func (*ConversationReadBadRequest) Code

func (o *ConversationReadBadRequest) Code() int

Code gets the status code for the conversation read bad request response

func (*ConversationReadBadRequest) Error

func (*ConversationReadBadRequest) IsClientError

func (o *ConversationReadBadRequest) IsClientError() bool

IsClientError returns true when this conversation read bad request response has a 4xx status code

func (*ConversationReadBadRequest) IsCode

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

IsCode returns true when this conversation read bad request response a status code equal to that given

func (*ConversationReadBadRequest) IsRedirect

func (o *ConversationReadBadRequest) IsRedirect() bool

IsRedirect returns true when this conversation read bad request response has a 3xx status code

func (*ConversationReadBadRequest) IsServerError

func (o *ConversationReadBadRequest) IsServerError() bool

IsServerError returns true when this conversation read bad request response has a 5xx status code

func (*ConversationReadBadRequest) IsSuccess

func (o *ConversationReadBadRequest) IsSuccess() bool

IsSuccess returns true when this conversation read bad request response has a 2xx status code

func (*ConversationReadBadRequest) String

func (o *ConversationReadBadRequest) String() string

type ConversationReadInternalServerError

type ConversationReadInternalServerError struct {
}

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

internal server error

func NewConversationReadInternalServerError

func NewConversationReadInternalServerError() *ConversationReadInternalServerError

NewConversationReadInternalServerError creates a ConversationReadInternalServerError with default headers values

func (*ConversationReadInternalServerError) Code

Code gets the status code for the conversation read internal server error response

func (*ConversationReadInternalServerError) Error

func (*ConversationReadInternalServerError) IsClientError

func (o *ConversationReadInternalServerError) IsClientError() bool

IsClientError returns true when this conversation read internal server error response has a 4xx status code

func (*ConversationReadInternalServerError) IsCode

IsCode returns true when this conversation read internal server error response a status code equal to that given

func (*ConversationReadInternalServerError) IsRedirect

func (o *ConversationReadInternalServerError) IsRedirect() bool

IsRedirect returns true when this conversation read internal server error response has a 3xx status code

func (*ConversationReadInternalServerError) IsServerError

func (o *ConversationReadInternalServerError) IsServerError() bool

IsServerError returns true when this conversation read internal server error response has a 5xx status code

func (*ConversationReadInternalServerError) IsSuccess

IsSuccess returns true when this conversation read internal server error response has a 2xx status code

func (*ConversationReadInternalServerError) String

type ConversationReadNotAcceptable

type ConversationReadNotAcceptable struct {
}

ConversationReadNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewConversationReadNotAcceptable

func NewConversationReadNotAcceptable() *ConversationReadNotAcceptable

NewConversationReadNotAcceptable creates a ConversationReadNotAcceptable with default headers values

func (*ConversationReadNotAcceptable) Code

Code gets the status code for the conversation read not acceptable response

func (*ConversationReadNotAcceptable) Error

func (*ConversationReadNotAcceptable) IsClientError

func (o *ConversationReadNotAcceptable) IsClientError() bool

IsClientError returns true when this conversation read not acceptable response has a 4xx status code

func (*ConversationReadNotAcceptable) IsCode

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

IsCode returns true when this conversation read not acceptable response a status code equal to that given

func (*ConversationReadNotAcceptable) IsRedirect

func (o *ConversationReadNotAcceptable) IsRedirect() bool

IsRedirect returns true when this conversation read not acceptable response has a 3xx status code

func (*ConversationReadNotAcceptable) IsServerError

func (o *ConversationReadNotAcceptable) IsServerError() bool

IsServerError returns true when this conversation read not acceptable response has a 5xx status code

func (*ConversationReadNotAcceptable) IsSuccess

func (o *ConversationReadNotAcceptable) IsSuccess() bool

IsSuccess returns true when this conversation read not acceptable response has a 2xx status code

func (*ConversationReadNotAcceptable) String

type ConversationReadNotFound

type ConversationReadNotFound struct {
}

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

not found

func NewConversationReadNotFound

func NewConversationReadNotFound() *ConversationReadNotFound

NewConversationReadNotFound creates a ConversationReadNotFound with default headers values

func (*ConversationReadNotFound) Code

func (o *ConversationReadNotFound) Code() int

Code gets the status code for the conversation read not found response

func (*ConversationReadNotFound) Error

func (o *ConversationReadNotFound) Error() string

func (*ConversationReadNotFound) IsClientError

func (o *ConversationReadNotFound) IsClientError() bool

IsClientError returns true when this conversation read not found response has a 4xx status code

func (*ConversationReadNotFound) IsCode

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

IsCode returns true when this conversation read not found response a status code equal to that given

func (*ConversationReadNotFound) IsRedirect

func (o *ConversationReadNotFound) IsRedirect() bool

IsRedirect returns true when this conversation read not found response has a 3xx status code

func (*ConversationReadNotFound) IsServerError

func (o *ConversationReadNotFound) IsServerError() bool

IsServerError returns true when this conversation read not found response has a 5xx status code

func (*ConversationReadNotFound) IsSuccess

func (o *ConversationReadNotFound) IsSuccess() bool

IsSuccess returns true when this conversation read not found response has a 2xx status code

func (*ConversationReadNotFound) String

func (o *ConversationReadNotFound) String() string

type ConversationReadOK

type ConversationReadOK struct {
	Payload *models.Conversation
}

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

Updated conversation.

func NewConversationReadOK

func NewConversationReadOK() *ConversationReadOK

NewConversationReadOK creates a ConversationReadOK with default headers values

func (*ConversationReadOK) Code

func (o *ConversationReadOK) Code() int

Code gets the status code for the conversation read o k response

func (*ConversationReadOK) Error

func (o *ConversationReadOK) Error() string

func (*ConversationReadOK) GetPayload

func (o *ConversationReadOK) GetPayload() *models.Conversation

func (*ConversationReadOK) IsClientError

func (o *ConversationReadOK) IsClientError() bool

IsClientError returns true when this conversation read o k response has a 4xx status code

func (*ConversationReadOK) IsCode

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

IsCode returns true when this conversation read o k response a status code equal to that given

func (*ConversationReadOK) IsRedirect

func (o *ConversationReadOK) IsRedirect() bool

IsRedirect returns true when this conversation read o k response has a 3xx status code

func (*ConversationReadOK) IsServerError

func (o *ConversationReadOK) IsServerError() bool

IsServerError returns true when this conversation read o k response has a 5xx status code

func (*ConversationReadOK) IsSuccess

func (o *ConversationReadOK) IsSuccess() bool

IsSuccess returns true when this conversation read o k response has a 2xx status code

func (*ConversationReadOK) String

func (o *ConversationReadOK) String() string

type ConversationReadParams

type ConversationReadParams struct {

	/* ID.

	   ID of the conversation.
	*/
	ID string

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

ConversationReadParams contains all the parameters to send to the API endpoint

for the conversation read operation.

Typically these are written to a http.Request.

func NewConversationReadParams

func NewConversationReadParams() *ConversationReadParams

NewConversationReadParams creates a new ConversationReadParams 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 NewConversationReadParamsWithContext

func NewConversationReadParamsWithContext(ctx context.Context) *ConversationReadParams

NewConversationReadParamsWithContext creates a new ConversationReadParams object with the ability to set a context for a request.

func NewConversationReadParamsWithHTTPClient

func NewConversationReadParamsWithHTTPClient(client *http.Client) *ConversationReadParams

NewConversationReadParamsWithHTTPClient creates a new ConversationReadParams object with the ability to set a custom HTTPClient for a request.

func NewConversationReadParamsWithTimeout

func NewConversationReadParamsWithTimeout(timeout time.Duration) *ConversationReadParams

NewConversationReadParamsWithTimeout creates a new ConversationReadParams object with the ability to set a timeout on a request.

func (*ConversationReadParams) SetContext

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

SetContext adds the context to the conversation read params

func (*ConversationReadParams) SetDefaults

func (o *ConversationReadParams) SetDefaults()

SetDefaults hydrates default values in the conversation read params (not the query body).

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

func (*ConversationReadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the conversation read params

func (*ConversationReadParams) SetID

func (o *ConversationReadParams) SetID(id string)

SetID adds the id to the conversation read params

func (*ConversationReadParams) SetTimeout

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

SetTimeout adds the timeout to the conversation read params

func (*ConversationReadParams) WithContext

WithContext adds the context to the conversation read params

func (*ConversationReadParams) WithDefaults

WithDefaults hydrates default values in the conversation read params (not the query body).

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

func (*ConversationReadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the conversation read params

func (*ConversationReadParams) WithID

WithID adds the id to the conversation read params

func (*ConversationReadParams) WithTimeout

WithTimeout adds the timeout to the conversation read params

func (*ConversationReadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ConversationReadReader

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

ConversationReadReader is a Reader for the ConversationRead structure.

func (*ConversationReadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConversationReadUnauthorized

type ConversationReadUnauthorized struct {
}

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

unauthorized

func NewConversationReadUnauthorized

func NewConversationReadUnauthorized() *ConversationReadUnauthorized

NewConversationReadUnauthorized creates a ConversationReadUnauthorized with default headers values

func (*ConversationReadUnauthorized) Code

Code gets the status code for the conversation read unauthorized response

func (*ConversationReadUnauthorized) Error

func (*ConversationReadUnauthorized) IsClientError

func (o *ConversationReadUnauthorized) IsClientError() bool

IsClientError returns true when this conversation read unauthorized response has a 4xx status code

func (*ConversationReadUnauthorized) IsCode

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

IsCode returns true when this conversation read unauthorized response a status code equal to that given

func (*ConversationReadUnauthorized) IsRedirect

func (o *ConversationReadUnauthorized) IsRedirect() bool

IsRedirect returns true when this conversation read unauthorized response has a 3xx status code

func (*ConversationReadUnauthorized) IsServerError

func (o *ConversationReadUnauthorized) IsServerError() bool

IsServerError returns true when this conversation read unauthorized response has a 5xx status code

func (*ConversationReadUnauthorized) IsSuccess

func (o *ConversationReadUnauthorized) IsSuccess() bool

IsSuccess returns true when this conversation read unauthorized response has a 2xx status code

func (*ConversationReadUnauthorized) String

type ConversationReadUnprocessableEntity

type ConversationReadUnprocessableEntity struct {
}

ConversationReadUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable content

func NewConversationReadUnprocessableEntity

func NewConversationReadUnprocessableEntity() *ConversationReadUnprocessableEntity

NewConversationReadUnprocessableEntity creates a ConversationReadUnprocessableEntity with default headers values

func (*ConversationReadUnprocessableEntity) Code

Code gets the status code for the conversation read unprocessable entity response

func (*ConversationReadUnprocessableEntity) Error

func (*ConversationReadUnprocessableEntity) IsClientError

func (o *ConversationReadUnprocessableEntity) IsClientError() bool

IsClientError returns true when this conversation read unprocessable entity response has a 4xx status code

func (*ConversationReadUnprocessableEntity) IsCode

IsCode returns true when this conversation read unprocessable entity response a status code equal to that given

func (*ConversationReadUnprocessableEntity) IsRedirect

func (o *ConversationReadUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this conversation read unprocessable entity response has a 3xx status code

func (*ConversationReadUnprocessableEntity) IsServerError

func (o *ConversationReadUnprocessableEntity) IsServerError() bool

IsServerError returns true when this conversation read unprocessable entity response has a 5xx status code

func (*ConversationReadUnprocessableEntity) IsSuccess

IsSuccess returns true when this conversation read unprocessable entity response has a 2xx status code

func (*ConversationReadUnprocessableEntity) String

type ConversationsGetBadRequest

type ConversationsGetBadRequest struct {
}

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

bad request

func NewConversationsGetBadRequest

func NewConversationsGetBadRequest() *ConversationsGetBadRequest

NewConversationsGetBadRequest creates a ConversationsGetBadRequest with default headers values

func (*ConversationsGetBadRequest) Code

func (o *ConversationsGetBadRequest) Code() int

Code gets the status code for the conversations get bad request response

func (*ConversationsGetBadRequest) Error

func (*ConversationsGetBadRequest) IsClientError

func (o *ConversationsGetBadRequest) IsClientError() bool

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

func (*ConversationsGetBadRequest) IsCode

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

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

func (*ConversationsGetBadRequest) IsRedirect

func (o *ConversationsGetBadRequest) IsRedirect() bool

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

func (*ConversationsGetBadRequest) IsServerError

func (o *ConversationsGetBadRequest) IsServerError() bool

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

func (*ConversationsGetBadRequest) IsSuccess

func (o *ConversationsGetBadRequest) IsSuccess() bool

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

func (*ConversationsGetBadRequest) String

func (o *ConversationsGetBadRequest) String() string

type ConversationsGetInternalServerError

type ConversationsGetInternalServerError struct {
}

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

internal server error

func NewConversationsGetInternalServerError

func NewConversationsGetInternalServerError() *ConversationsGetInternalServerError

NewConversationsGetInternalServerError creates a ConversationsGetInternalServerError with default headers values

func (*ConversationsGetInternalServerError) Code

Code gets the status code for the conversations get internal server error response

func (*ConversationsGetInternalServerError) Error

func (*ConversationsGetInternalServerError) IsClientError

func (o *ConversationsGetInternalServerError) IsClientError() bool

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

func (*ConversationsGetInternalServerError) IsCode

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

func (*ConversationsGetInternalServerError) IsRedirect

func (o *ConversationsGetInternalServerError) IsRedirect() bool

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

func (*ConversationsGetInternalServerError) IsServerError

func (o *ConversationsGetInternalServerError) IsServerError() bool

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

func (*ConversationsGetInternalServerError) IsSuccess

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

func (*ConversationsGetInternalServerError) String

type ConversationsGetNotAcceptable

type ConversationsGetNotAcceptable struct {
}

ConversationsGetNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewConversationsGetNotAcceptable

func NewConversationsGetNotAcceptable() *ConversationsGetNotAcceptable

NewConversationsGetNotAcceptable creates a ConversationsGetNotAcceptable with default headers values

func (*ConversationsGetNotAcceptable) Code

Code gets the status code for the conversations get not acceptable response

func (*ConversationsGetNotAcceptable) Error

func (*ConversationsGetNotAcceptable) IsClientError

func (o *ConversationsGetNotAcceptable) IsClientError() bool

IsClientError returns true when this conversations get not acceptable response has a 4xx status code

func (*ConversationsGetNotAcceptable) IsCode

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

IsCode returns true when this conversations get not acceptable response a status code equal to that given

func (*ConversationsGetNotAcceptable) IsRedirect

func (o *ConversationsGetNotAcceptable) IsRedirect() bool

IsRedirect returns true when this conversations get not acceptable response has a 3xx status code

func (*ConversationsGetNotAcceptable) IsServerError

func (o *ConversationsGetNotAcceptable) IsServerError() bool

IsServerError returns true when this conversations get not acceptable response has a 5xx status code

func (*ConversationsGetNotAcceptable) IsSuccess

func (o *ConversationsGetNotAcceptable) IsSuccess() bool

IsSuccess returns true when this conversations get not acceptable response has a 2xx status code

func (*ConversationsGetNotAcceptable) String

type ConversationsGetNotFound

type ConversationsGetNotFound struct {
}

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

not found

func NewConversationsGetNotFound

func NewConversationsGetNotFound() *ConversationsGetNotFound

NewConversationsGetNotFound creates a ConversationsGetNotFound with default headers values

func (*ConversationsGetNotFound) Code

func (o *ConversationsGetNotFound) Code() int

Code gets the status code for the conversations get not found response

func (*ConversationsGetNotFound) Error

func (o *ConversationsGetNotFound) Error() string

func (*ConversationsGetNotFound) IsClientError

func (o *ConversationsGetNotFound) IsClientError() bool

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

func (*ConversationsGetNotFound) IsCode

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

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

func (*ConversationsGetNotFound) IsRedirect

func (o *ConversationsGetNotFound) IsRedirect() bool

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

func (*ConversationsGetNotFound) IsServerError

func (o *ConversationsGetNotFound) IsServerError() bool

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

func (*ConversationsGetNotFound) IsSuccess

func (o *ConversationsGetNotFound) IsSuccess() bool

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

func (*ConversationsGetNotFound) String

func (o *ConversationsGetNotFound) String() string

type ConversationsGetOK

type ConversationsGetOK struct {

	/* Links to the next and previous queries.
	 */
	Link string

	Payload []*models.Conversation
}

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

ConversationsGetOK conversations get o k

func NewConversationsGetOK

func NewConversationsGetOK() *ConversationsGetOK

NewConversationsGetOK creates a ConversationsGetOK with default headers values

func (*ConversationsGetOK) Code

func (o *ConversationsGetOK) Code() int

Code gets the status code for the conversations get o k response

func (*ConversationsGetOK) Error

func (o *ConversationsGetOK) Error() string

func (*ConversationsGetOK) GetPayload

func (o *ConversationsGetOK) GetPayload() []*models.Conversation

func (*ConversationsGetOK) IsClientError

func (o *ConversationsGetOK) IsClientError() bool

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

func (*ConversationsGetOK) IsCode

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

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

func (*ConversationsGetOK) IsRedirect

func (o *ConversationsGetOK) IsRedirect() bool

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

func (*ConversationsGetOK) IsServerError

func (o *ConversationsGetOK) IsServerError() bool

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

func (*ConversationsGetOK) IsSuccess

func (o *ConversationsGetOK) IsSuccess() bool

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

func (*ConversationsGetOK) String

func (o *ConversationsGetOK) String() string

type ConversationsGetParams

type ConversationsGetParams struct {

	/* Limit.

	   Number of conversations to return.

	   Default: 40
	*/
	Limit *int64

	/* MaxID.

	   Return only conversations with last statuses *OLDER* than the given max ID. The conversation with the specified ID will not be included in the response. NOTE: The ID is a status ID. Use the Link header for pagination.
	*/
	MaxID *string

	/* MinID.

	   Return only conversations with last statuses *IMMEDIATELY NEWER* than the given min ID. The conversation with the specified ID will not be included in the response. NOTE: The ID is a status ID. Use the Link header for pagination.
	*/
	MinID *string

	/* SinceID.

	   Return only conversations with last statuses *NEWER* than the given since ID. The conversation with the specified ID will not be included in the response. NOTE: The ID is a status ID. Use the Link header for pagination.
	*/
	SinceID *string

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

ConversationsGetParams contains all the parameters to send to the API endpoint

for the conversations get operation.

Typically these are written to a http.Request.

func NewConversationsGetParams

func NewConversationsGetParams() *ConversationsGetParams

NewConversationsGetParams creates a new ConversationsGetParams 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 NewConversationsGetParamsWithContext

func NewConversationsGetParamsWithContext(ctx context.Context) *ConversationsGetParams

NewConversationsGetParamsWithContext creates a new ConversationsGetParams object with the ability to set a context for a request.

func NewConversationsGetParamsWithHTTPClient

func NewConversationsGetParamsWithHTTPClient(client *http.Client) *ConversationsGetParams

NewConversationsGetParamsWithHTTPClient creates a new ConversationsGetParams object with the ability to set a custom HTTPClient for a request.

func NewConversationsGetParamsWithTimeout

func NewConversationsGetParamsWithTimeout(timeout time.Duration) *ConversationsGetParams

NewConversationsGetParamsWithTimeout creates a new ConversationsGetParams object with the ability to set a timeout on a request.

func (*ConversationsGetParams) SetContext

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

SetContext adds the context to the conversations get params

func (*ConversationsGetParams) SetDefaults

func (o *ConversationsGetParams) SetDefaults()

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

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

func (*ConversationsGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the conversations get params

func (*ConversationsGetParams) SetLimit

func (o *ConversationsGetParams) SetLimit(limit *int64)

SetLimit adds the limit to the conversations get params

func (*ConversationsGetParams) SetMaxID

func (o *ConversationsGetParams) SetMaxID(maxID *string)

SetMaxID adds the maxId to the conversations get params

func (*ConversationsGetParams) SetMinID

func (o *ConversationsGetParams) SetMinID(minID *string)

SetMinID adds the minId to the conversations get params

func (*ConversationsGetParams) SetSinceID

func (o *ConversationsGetParams) SetSinceID(sinceID *string)

SetSinceID adds the sinceId to the conversations get params

func (*ConversationsGetParams) SetTimeout

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

SetTimeout adds the timeout to the conversations get params

func (*ConversationsGetParams) WithContext

WithContext adds the context to the conversations get params

func (*ConversationsGetParams) WithDefaults

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

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

func (*ConversationsGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the conversations get params

func (*ConversationsGetParams) WithLimit

func (o *ConversationsGetParams) WithLimit(limit *int64) *ConversationsGetParams

WithLimit adds the limit to the conversations get params

func (*ConversationsGetParams) WithMaxID

WithMaxID adds the maxID to the conversations get params

func (*ConversationsGetParams) WithMinID

WithMinID adds the minID to the conversations get params

func (*ConversationsGetParams) WithSinceID

func (o *ConversationsGetParams) WithSinceID(sinceID *string) *ConversationsGetParams

WithSinceID adds the sinceID to the conversations get params

func (*ConversationsGetParams) WithTimeout

WithTimeout adds the timeout to the conversations get params

func (*ConversationsGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ConversationsGetReader

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

ConversationsGetReader is a Reader for the ConversationsGet structure.

func (*ConversationsGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConversationsGetUnauthorized

type ConversationsGetUnauthorized struct {
}

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

unauthorized

func NewConversationsGetUnauthorized

func NewConversationsGetUnauthorized() *ConversationsGetUnauthorized

NewConversationsGetUnauthorized creates a ConversationsGetUnauthorized with default headers values

func (*ConversationsGetUnauthorized) Code

Code gets the status code for the conversations get unauthorized response

func (*ConversationsGetUnauthorized) Error

func (*ConversationsGetUnauthorized) IsClientError

func (o *ConversationsGetUnauthorized) IsClientError() bool

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

func (*ConversationsGetUnauthorized) IsCode

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

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

func (*ConversationsGetUnauthorized) IsRedirect

func (o *ConversationsGetUnauthorized) IsRedirect() bool

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

func (*ConversationsGetUnauthorized) IsServerError

func (o *ConversationsGetUnauthorized) IsServerError() bool

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

func (*ConversationsGetUnauthorized) IsSuccess

func (o *ConversationsGetUnauthorized) IsSuccess() bool

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

func (*ConversationsGetUnauthorized) String

Jump to

Keyboard shortcuts

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