Documentation ¶
Index ¶
- type Client
- func (a *Client) ConversationDelete(params *ConversationDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ConversationDeleteOK, error)
- func (a *Client) ConversationRead(params *ConversationReadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ConversationReadOK, error)
- func (a *Client) ConversationsGet(params *ConversationsGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ConversationsGetOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ConversationDeleteBadRequest
- func (o *ConversationDeleteBadRequest) Code() int
- func (o *ConversationDeleteBadRequest) Error() string
- func (o *ConversationDeleteBadRequest) IsClientError() bool
- func (o *ConversationDeleteBadRequest) IsCode(code int) bool
- func (o *ConversationDeleteBadRequest) IsRedirect() bool
- func (o *ConversationDeleteBadRequest) IsServerError() bool
- func (o *ConversationDeleteBadRequest) IsSuccess() bool
- func (o *ConversationDeleteBadRequest) String() string
- type ConversationDeleteInternalServerError
- func (o *ConversationDeleteInternalServerError) Code() int
- func (o *ConversationDeleteInternalServerError) Error() string
- func (o *ConversationDeleteInternalServerError) IsClientError() bool
- func (o *ConversationDeleteInternalServerError) IsCode(code int) bool
- func (o *ConversationDeleteInternalServerError) IsRedirect() bool
- func (o *ConversationDeleteInternalServerError) IsServerError() bool
- func (o *ConversationDeleteInternalServerError) IsSuccess() bool
- func (o *ConversationDeleteInternalServerError) String() string
- type ConversationDeleteNotAcceptable
- func (o *ConversationDeleteNotAcceptable) Code() int
- func (o *ConversationDeleteNotAcceptable) Error() string
- func (o *ConversationDeleteNotAcceptable) IsClientError() bool
- func (o *ConversationDeleteNotAcceptable) IsCode(code int) bool
- func (o *ConversationDeleteNotAcceptable) IsRedirect() bool
- func (o *ConversationDeleteNotAcceptable) IsServerError() bool
- func (o *ConversationDeleteNotAcceptable) IsSuccess() bool
- func (o *ConversationDeleteNotAcceptable) String() string
- type ConversationDeleteNotFound
- func (o *ConversationDeleteNotFound) Code() int
- func (o *ConversationDeleteNotFound) Error() string
- func (o *ConversationDeleteNotFound) IsClientError() bool
- func (o *ConversationDeleteNotFound) IsCode(code int) bool
- func (o *ConversationDeleteNotFound) IsRedirect() bool
- func (o *ConversationDeleteNotFound) IsServerError() bool
- func (o *ConversationDeleteNotFound) IsSuccess() bool
- func (o *ConversationDeleteNotFound) String() string
- type ConversationDeleteOK
- func (o *ConversationDeleteOK) Code() int
- func (o *ConversationDeleteOK) Error() string
- func (o *ConversationDeleteOK) IsClientError() bool
- func (o *ConversationDeleteOK) IsCode(code int) bool
- func (o *ConversationDeleteOK) IsRedirect() bool
- func (o *ConversationDeleteOK) IsServerError() bool
- func (o *ConversationDeleteOK) IsSuccess() bool
- func (o *ConversationDeleteOK) String() string
- type ConversationDeleteParams
- func NewConversationDeleteParams() *ConversationDeleteParams
- func NewConversationDeleteParamsWithContext(ctx context.Context) *ConversationDeleteParams
- func NewConversationDeleteParamsWithHTTPClient(client *http.Client) *ConversationDeleteParams
- func NewConversationDeleteParamsWithTimeout(timeout time.Duration) *ConversationDeleteParams
- func (o *ConversationDeleteParams) SetContext(ctx context.Context)
- func (o *ConversationDeleteParams) SetDefaults()
- func (o *ConversationDeleteParams) SetHTTPClient(client *http.Client)
- func (o *ConversationDeleteParams) SetID(id string)
- func (o *ConversationDeleteParams) SetTimeout(timeout time.Duration)
- func (o *ConversationDeleteParams) WithContext(ctx context.Context) *ConversationDeleteParams
- func (o *ConversationDeleteParams) WithDefaults() *ConversationDeleteParams
- func (o *ConversationDeleteParams) WithHTTPClient(client *http.Client) *ConversationDeleteParams
- func (o *ConversationDeleteParams) WithID(id string) *ConversationDeleteParams
- func (o *ConversationDeleteParams) WithTimeout(timeout time.Duration) *ConversationDeleteParams
- func (o *ConversationDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConversationDeleteReader
- type ConversationDeleteUnauthorized
- func (o *ConversationDeleteUnauthorized) Code() int
- func (o *ConversationDeleteUnauthorized) Error() string
- func (o *ConversationDeleteUnauthorized) IsClientError() bool
- func (o *ConversationDeleteUnauthorized) IsCode(code int) bool
- func (o *ConversationDeleteUnauthorized) IsRedirect() bool
- func (o *ConversationDeleteUnauthorized) IsServerError() bool
- func (o *ConversationDeleteUnauthorized) IsSuccess() bool
- func (o *ConversationDeleteUnauthorized) String() string
- type ConversationReadBadRequest
- func (o *ConversationReadBadRequest) Code() int
- func (o *ConversationReadBadRequest) Error() string
- func (o *ConversationReadBadRequest) IsClientError() bool
- func (o *ConversationReadBadRequest) IsCode(code int) bool
- func (o *ConversationReadBadRequest) IsRedirect() bool
- func (o *ConversationReadBadRequest) IsServerError() bool
- func (o *ConversationReadBadRequest) IsSuccess() bool
- func (o *ConversationReadBadRequest) String() string
- type ConversationReadInternalServerError
- func (o *ConversationReadInternalServerError) Code() int
- func (o *ConversationReadInternalServerError) Error() string
- func (o *ConversationReadInternalServerError) IsClientError() bool
- func (o *ConversationReadInternalServerError) IsCode(code int) bool
- func (o *ConversationReadInternalServerError) IsRedirect() bool
- func (o *ConversationReadInternalServerError) IsServerError() bool
- func (o *ConversationReadInternalServerError) IsSuccess() bool
- func (o *ConversationReadInternalServerError) String() string
- type ConversationReadNotAcceptable
- func (o *ConversationReadNotAcceptable) Code() int
- func (o *ConversationReadNotAcceptable) Error() string
- func (o *ConversationReadNotAcceptable) IsClientError() bool
- func (o *ConversationReadNotAcceptable) IsCode(code int) bool
- func (o *ConversationReadNotAcceptable) IsRedirect() bool
- func (o *ConversationReadNotAcceptable) IsServerError() bool
- func (o *ConversationReadNotAcceptable) IsSuccess() bool
- func (o *ConversationReadNotAcceptable) String() string
- type ConversationReadNotFound
- func (o *ConversationReadNotFound) Code() int
- func (o *ConversationReadNotFound) Error() string
- func (o *ConversationReadNotFound) IsClientError() bool
- func (o *ConversationReadNotFound) IsCode(code int) bool
- func (o *ConversationReadNotFound) IsRedirect() bool
- func (o *ConversationReadNotFound) IsServerError() bool
- func (o *ConversationReadNotFound) IsSuccess() bool
- func (o *ConversationReadNotFound) String() string
- type ConversationReadOK
- func (o *ConversationReadOK) Code() int
- func (o *ConversationReadOK) Error() string
- func (o *ConversationReadOK) GetPayload() *models.Conversation
- func (o *ConversationReadOK) IsClientError() bool
- func (o *ConversationReadOK) IsCode(code int) bool
- func (o *ConversationReadOK) IsRedirect() bool
- func (o *ConversationReadOK) IsServerError() bool
- func (o *ConversationReadOK) IsSuccess() bool
- func (o *ConversationReadOK) String() string
- type ConversationReadParams
- func NewConversationReadParams() *ConversationReadParams
- func NewConversationReadParamsWithContext(ctx context.Context) *ConversationReadParams
- func NewConversationReadParamsWithHTTPClient(client *http.Client) *ConversationReadParams
- func NewConversationReadParamsWithTimeout(timeout time.Duration) *ConversationReadParams
- func (o *ConversationReadParams) SetContext(ctx context.Context)
- func (o *ConversationReadParams) SetDefaults()
- func (o *ConversationReadParams) SetHTTPClient(client *http.Client)
- func (o *ConversationReadParams) SetID(id string)
- func (o *ConversationReadParams) SetTimeout(timeout time.Duration)
- func (o *ConversationReadParams) WithContext(ctx context.Context) *ConversationReadParams
- func (o *ConversationReadParams) WithDefaults() *ConversationReadParams
- func (o *ConversationReadParams) WithHTTPClient(client *http.Client) *ConversationReadParams
- func (o *ConversationReadParams) WithID(id string) *ConversationReadParams
- func (o *ConversationReadParams) WithTimeout(timeout time.Duration) *ConversationReadParams
- func (o *ConversationReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConversationReadReader
- type ConversationReadUnauthorized
- func (o *ConversationReadUnauthorized) Code() int
- func (o *ConversationReadUnauthorized) Error() string
- func (o *ConversationReadUnauthorized) IsClientError() bool
- func (o *ConversationReadUnauthorized) IsCode(code int) bool
- func (o *ConversationReadUnauthorized) IsRedirect() bool
- func (o *ConversationReadUnauthorized) IsServerError() bool
- func (o *ConversationReadUnauthorized) IsSuccess() bool
- func (o *ConversationReadUnauthorized) String() string
- type ConversationReadUnprocessableEntity
- func (o *ConversationReadUnprocessableEntity) Code() int
- func (o *ConversationReadUnprocessableEntity) Error() string
- func (o *ConversationReadUnprocessableEntity) IsClientError() bool
- func (o *ConversationReadUnprocessableEntity) IsCode(code int) bool
- func (o *ConversationReadUnprocessableEntity) IsRedirect() bool
- func (o *ConversationReadUnprocessableEntity) IsServerError() bool
- func (o *ConversationReadUnprocessableEntity) IsSuccess() bool
- func (o *ConversationReadUnprocessableEntity) String() string
- type ConversationsGetBadRequest
- func (o *ConversationsGetBadRequest) Code() int
- func (o *ConversationsGetBadRequest) Error() string
- func (o *ConversationsGetBadRequest) IsClientError() bool
- func (o *ConversationsGetBadRequest) IsCode(code int) bool
- func (o *ConversationsGetBadRequest) IsRedirect() bool
- func (o *ConversationsGetBadRequest) IsServerError() bool
- func (o *ConversationsGetBadRequest) IsSuccess() bool
- func (o *ConversationsGetBadRequest) String() string
- type ConversationsGetInternalServerError
- func (o *ConversationsGetInternalServerError) Code() int
- func (o *ConversationsGetInternalServerError) Error() string
- func (o *ConversationsGetInternalServerError) IsClientError() bool
- func (o *ConversationsGetInternalServerError) IsCode(code int) bool
- func (o *ConversationsGetInternalServerError) IsRedirect() bool
- func (o *ConversationsGetInternalServerError) IsServerError() bool
- func (o *ConversationsGetInternalServerError) IsSuccess() bool
- func (o *ConversationsGetInternalServerError) String() string
- type ConversationsGetNotAcceptable
- func (o *ConversationsGetNotAcceptable) Code() int
- func (o *ConversationsGetNotAcceptable) Error() string
- func (o *ConversationsGetNotAcceptable) IsClientError() bool
- func (o *ConversationsGetNotAcceptable) IsCode(code int) bool
- func (o *ConversationsGetNotAcceptable) IsRedirect() bool
- func (o *ConversationsGetNotAcceptable) IsServerError() bool
- func (o *ConversationsGetNotAcceptable) IsSuccess() bool
- func (o *ConversationsGetNotAcceptable) String() string
- type ConversationsGetNotFound
- func (o *ConversationsGetNotFound) Code() int
- func (o *ConversationsGetNotFound) Error() string
- func (o *ConversationsGetNotFound) IsClientError() bool
- func (o *ConversationsGetNotFound) IsCode(code int) bool
- func (o *ConversationsGetNotFound) IsRedirect() bool
- func (o *ConversationsGetNotFound) IsServerError() bool
- func (o *ConversationsGetNotFound) IsSuccess() bool
- func (o *ConversationsGetNotFound) String() string
- type ConversationsGetOK
- func (o *ConversationsGetOK) Code() int
- func (o *ConversationsGetOK) Error() string
- func (o *ConversationsGetOK) GetPayload() []*models.Conversation
- func (o *ConversationsGetOK) IsClientError() bool
- func (o *ConversationsGetOK) IsCode(code int) bool
- func (o *ConversationsGetOK) IsRedirect() bool
- func (o *ConversationsGetOK) IsServerError() bool
- func (o *ConversationsGetOK) IsSuccess() bool
- func (o *ConversationsGetOK) String() string
- type ConversationsGetParams
- func NewConversationsGetParams() *ConversationsGetParams
- func NewConversationsGetParamsWithContext(ctx context.Context) *ConversationsGetParams
- func NewConversationsGetParamsWithHTTPClient(client *http.Client) *ConversationsGetParams
- func NewConversationsGetParamsWithTimeout(timeout time.Duration) *ConversationsGetParams
- func (o *ConversationsGetParams) SetContext(ctx context.Context)
- func (o *ConversationsGetParams) SetDefaults()
- func (o *ConversationsGetParams) SetHTTPClient(client *http.Client)
- func (o *ConversationsGetParams) SetLimit(limit *int64)
- func (o *ConversationsGetParams) SetMaxID(maxID *string)
- func (o *ConversationsGetParams) SetMinID(minID *string)
- func (o *ConversationsGetParams) SetSinceID(sinceID *string)
- func (o *ConversationsGetParams) SetTimeout(timeout time.Duration)
- func (o *ConversationsGetParams) WithContext(ctx context.Context) *ConversationsGetParams
- func (o *ConversationsGetParams) WithDefaults() *ConversationsGetParams
- func (o *ConversationsGetParams) WithHTTPClient(client *http.Client) *ConversationsGetParams
- func (o *ConversationsGetParams) WithLimit(limit *int64) *ConversationsGetParams
- func (o *ConversationsGetParams) WithMaxID(maxID *string) *ConversationsGetParams
- func (o *ConversationsGetParams) WithMinID(minID *string) *ConversationsGetParams
- func (o *ConversationsGetParams) WithSinceID(sinceID *string) *ConversationsGetParams
- func (o *ConversationsGetParams) WithTimeout(timeout time.Duration) *ConversationsGetParams
- func (o *ConversationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ConversationsGetReader
- type ConversationsGetUnauthorized
- func (o *ConversationsGetUnauthorized) Code() int
- func (o *ConversationsGetUnauthorized) Error() string
- func (o *ConversationsGetUnauthorized) IsClientError() bool
- func (o *ConversationsGetUnauthorized) IsCode(code int) bool
- func (o *ConversationsGetUnauthorized) IsRedirect() bool
- func (o *ConversationsGetUnauthorized) IsServerError() bool
- func (o *ConversationsGetUnauthorized) IsSuccess() bool
- func (o *ConversationsGetUnauthorized) String() string
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 ¶
func (o *ConversationDeleteBadRequest) Code() int
Code gets the status code for the conversation delete bad request response
func (*ConversationDeleteBadRequest) Error ¶
func (o *ConversationDeleteBadRequest) Error() string
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 ¶
func (o *ConversationDeleteBadRequest) String() 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 ¶
func (o *ConversationDeleteInternalServerError) Code() int
Code gets the status code for the conversation delete internal server error response
func (*ConversationDeleteInternalServerError) Error ¶
func (o *ConversationDeleteInternalServerError) Error() string
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 ¶
func (o *ConversationDeleteInternalServerError) IsCode(code int) bool
IsCode returns true when this conversation delete internal server error response a status code equal to that given
func (*ConversationDeleteInternalServerError) IsRedirect ¶
func (o *ConversationDeleteInternalServerError) IsRedirect() bool
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 ¶
func (o *ConversationDeleteInternalServerError) IsSuccess() bool
IsSuccess returns true when this conversation delete internal server error response has a 2xx status code
func (*ConversationDeleteInternalServerError) String ¶
func (o *ConversationDeleteInternalServerError) String() 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 ¶
func (o *ConversationDeleteNotAcceptable) Code() int
Code gets the status code for the conversation delete not acceptable response
func (*ConversationDeleteNotAcceptable) Error ¶
func (o *ConversationDeleteNotAcceptable) Error() string
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 ¶
func (o *ConversationDeleteNotAcceptable) String() 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 (o *ConversationDeleteNotFound) Error() string
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 ¶
func (o *ConversationDeleteParams) WithContext(ctx context.Context) *ConversationDeleteParams
WithContext adds the context to the conversation delete params
func (*ConversationDeleteParams) WithDefaults ¶
func (o *ConversationDeleteParams) WithDefaults() *ConversationDeleteParams
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 ¶
func (o *ConversationDeleteParams) WithID(id string) *ConversationDeleteParams
WithID adds the id to the conversation delete params
func (*ConversationDeleteParams) WithTimeout ¶
func (o *ConversationDeleteParams) WithTimeout(timeout time.Duration) *ConversationDeleteParams
WithTimeout adds the timeout to the conversation delete params
func (*ConversationDeleteParams) WriteToRequest ¶
func (o *ConversationDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ConversationDeleteUnauthorized) Code() int
Code gets the status code for the conversation delete unauthorized response
func (*ConversationDeleteUnauthorized) Error ¶
func (o *ConversationDeleteUnauthorized) Error() string
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 ¶
func (o *ConversationDeleteUnauthorized) String() 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 (o *ConversationReadBadRequest) Error() string
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 ¶
func (o *ConversationReadInternalServerError) Code() int
Code gets the status code for the conversation read internal server error response
func (*ConversationReadInternalServerError) Error ¶
func (o *ConversationReadInternalServerError) Error() string
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 ¶
func (o *ConversationReadInternalServerError) IsCode(code int) bool
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 ¶
func (o *ConversationReadInternalServerError) IsSuccess() bool
IsSuccess returns true when this conversation read internal server error response has a 2xx status code
func (*ConversationReadInternalServerError) String ¶
func (o *ConversationReadInternalServerError) String() 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 ¶
func (o *ConversationReadNotAcceptable) Code() int
Code gets the status code for the conversation read not acceptable response
func (*ConversationReadNotAcceptable) Error ¶
func (o *ConversationReadNotAcceptable) Error() string
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 ¶
func (o *ConversationReadNotAcceptable) String() 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 ¶
func (o *ConversationReadParams) WithContext(ctx context.Context) *ConversationReadParams
WithContext adds the context to the conversation read params
func (*ConversationReadParams) WithDefaults ¶
func (o *ConversationReadParams) WithDefaults() *ConversationReadParams
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 ¶
func (o *ConversationReadParams) WithID(id string) *ConversationReadParams
WithID adds the id to the conversation read params
func (*ConversationReadParams) WithTimeout ¶
func (o *ConversationReadParams) WithTimeout(timeout time.Duration) *ConversationReadParams
WithTimeout adds the timeout to the conversation read params
func (*ConversationReadParams) WriteToRequest ¶
func (o *ConversationReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ConversationReadUnauthorized) Code() int
Code gets the status code for the conversation read unauthorized response
func (*ConversationReadUnauthorized) Error ¶
func (o *ConversationReadUnauthorized) Error() string
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 ¶
func (o *ConversationReadUnauthorized) String() 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 ¶
func (o *ConversationReadUnprocessableEntity) Code() int
Code gets the status code for the conversation read unprocessable entity response
func (*ConversationReadUnprocessableEntity) Error ¶
func (o *ConversationReadUnprocessableEntity) Error() string
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 ¶
func (o *ConversationReadUnprocessableEntity) IsCode(code int) bool
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 ¶
func (o *ConversationReadUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this conversation read unprocessable entity response has a 2xx status code
func (*ConversationReadUnprocessableEntity) String ¶
func (o *ConversationReadUnprocessableEntity) String() 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 (o *ConversationsGetBadRequest) Error() string
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 ¶
func (o *ConversationsGetInternalServerError) Code() int
Code gets the status code for the conversations get internal server error response
func (*ConversationsGetInternalServerError) Error ¶
func (o *ConversationsGetInternalServerError) Error() string
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 ¶
func (o *ConversationsGetInternalServerError) IsCode(code int) bool
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 ¶
func (o *ConversationsGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this conversations get internal server error response has a 2xx status code
func (*ConversationsGetInternalServerError) String ¶
func (o *ConversationsGetInternalServerError) String() 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 ¶
func (o *ConversationsGetNotAcceptable) Code() int
Code gets the status code for the conversations get not acceptable response
func (*ConversationsGetNotAcceptable) Error ¶
func (o *ConversationsGetNotAcceptable) Error() string
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 ¶
func (o *ConversationsGetNotAcceptable) String() 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 ¶
func (o *ConversationsGetParams) WithContext(ctx context.Context) *ConversationsGetParams
WithContext adds the context to the conversations get params
func (*ConversationsGetParams) WithDefaults ¶
func (o *ConversationsGetParams) WithDefaults() *ConversationsGetParams
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 ¶
func (o *ConversationsGetParams) WithMaxID(maxID *string) *ConversationsGetParams
WithMaxID adds the maxID to the conversations get params
func (*ConversationsGetParams) WithMinID ¶
func (o *ConversationsGetParams) WithMinID(minID *string) *ConversationsGetParams
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 ¶
func (o *ConversationsGetParams) WithTimeout(timeout time.Duration) *ConversationsGetParams
WithTimeout adds the timeout to the conversations get params
func (*ConversationsGetParams) WriteToRequest ¶
func (o *ConversationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ConversationsGetUnauthorized) Code() int
Code gets the status code for the conversations get unauthorized response
func (*ConversationsGetUnauthorized) Error ¶
func (o *ConversationsGetUnauthorized) Error() string
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 ¶
func (o *ConversationsGetUnauthorized) String() string