Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptTextHTML(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeTextPlain(r *runtime.ClientOperation)
- type Client
- func (a *Client) NotifyGetList(params *NotifyGetListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyGetListOK, error)
- func (a *Client) NotifyGetRepoList(params *NotifyGetRepoListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyGetRepoListOK, error)
- func (a *Client) NotifyGetThread(params *NotifyGetThreadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyGetThreadOK, error)
- func (a *Client) NotifyNewAvailable(params *NotifyNewAvailableParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyNewAvailableOK, error)
- func (a *Client) NotifyReadList(params *NotifyReadListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyReadListResetContent, error)
- func (a *Client) NotifyReadRepoList(params *NotifyReadRepoListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyReadRepoListResetContent, error)
- func (a *Client) NotifyReadThread(params *NotifyReadThreadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NotifyReadThreadResetContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type NotifyGetListOK
- func (o *NotifyGetListOK) Code() int
- func (o *NotifyGetListOK) Error() string
- func (o *NotifyGetListOK) GetPayload() []*models.NotificationThread
- func (o *NotifyGetListOK) IsClientError() bool
- func (o *NotifyGetListOK) IsCode(code int) bool
- func (o *NotifyGetListOK) IsRedirect() bool
- func (o *NotifyGetListOK) IsServerError() bool
- func (o *NotifyGetListOK) IsSuccess() bool
- func (o *NotifyGetListOK) String() string
- type NotifyGetListParams
- func (o *NotifyGetListParams) SetAll(all *bool)
- func (o *NotifyGetListParams) SetBefore(before *strfmt.DateTime)
- func (o *NotifyGetListParams) SetContext(ctx context.Context)
- func (o *NotifyGetListParams) SetDefaults()
- func (o *NotifyGetListParams) SetHTTPClient(client *http.Client)
- func (o *NotifyGetListParams) SetLimit(limit *int64)
- func (o *NotifyGetListParams) SetPage(page *int64)
- func (o *NotifyGetListParams) SetSince(since *strfmt.DateTime)
- func (o *NotifyGetListParams) SetStatusTypes(statusTypes []string)
- func (o *NotifyGetListParams) SetSubjectType(subjectType []string)
- func (o *NotifyGetListParams) SetTimeout(timeout time.Duration)
- func (o *NotifyGetListParams) WithAll(all *bool) *NotifyGetListParams
- func (o *NotifyGetListParams) WithBefore(before *strfmt.DateTime) *NotifyGetListParams
- func (o *NotifyGetListParams) WithContext(ctx context.Context) *NotifyGetListParams
- func (o *NotifyGetListParams) WithDefaults() *NotifyGetListParams
- func (o *NotifyGetListParams) WithHTTPClient(client *http.Client) *NotifyGetListParams
- func (o *NotifyGetListParams) WithLimit(limit *int64) *NotifyGetListParams
- func (o *NotifyGetListParams) WithPage(page *int64) *NotifyGetListParams
- func (o *NotifyGetListParams) WithSince(since *strfmt.DateTime) *NotifyGetListParams
- func (o *NotifyGetListParams) WithStatusTypes(statusTypes []string) *NotifyGetListParams
- func (o *NotifyGetListParams) WithSubjectType(subjectType []string) *NotifyGetListParams
- func (o *NotifyGetListParams) WithTimeout(timeout time.Duration) *NotifyGetListParams
- func (o *NotifyGetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyGetListReader
- type NotifyGetRepoListOK
- func (o *NotifyGetRepoListOK) Code() int
- func (o *NotifyGetRepoListOK) Error() string
- func (o *NotifyGetRepoListOK) GetPayload() []*models.NotificationThread
- func (o *NotifyGetRepoListOK) IsClientError() bool
- func (o *NotifyGetRepoListOK) IsCode(code int) bool
- func (o *NotifyGetRepoListOK) IsRedirect() bool
- func (o *NotifyGetRepoListOK) IsServerError() bool
- func (o *NotifyGetRepoListOK) IsSuccess() bool
- func (o *NotifyGetRepoListOK) String() string
- type NotifyGetRepoListParams
- func NewNotifyGetRepoListParams() *NotifyGetRepoListParams
- func NewNotifyGetRepoListParamsWithContext(ctx context.Context) *NotifyGetRepoListParams
- func NewNotifyGetRepoListParamsWithHTTPClient(client *http.Client) *NotifyGetRepoListParams
- func NewNotifyGetRepoListParamsWithTimeout(timeout time.Duration) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) SetAll(all *bool)
- func (o *NotifyGetRepoListParams) SetBefore(before *strfmt.DateTime)
- func (o *NotifyGetRepoListParams) SetContext(ctx context.Context)
- func (o *NotifyGetRepoListParams) SetDefaults()
- func (o *NotifyGetRepoListParams) SetHTTPClient(client *http.Client)
- func (o *NotifyGetRepoListParams) SetLimit(limit *int64)
- func (o *NotifyGetRepoListParams) SetOwner(owner string)
- func (o *NotifyGetRepoListParams) SetPage(page *int64)
- func (o *NotifyGetRepoListParams) SetRepo(repo string)
- func (o *NotifyGetRepoListParams) SetSince(since *strfmt.DateTime)
- func (o *NotifyGetRepoListParams) SetStatusTypes(statusTypes []string)
- func (o *NotifyGetRepoListParams) SetSubjectType(subjectType []string)
- func (o *NotifyGetRepoListParams) SetTimeout(timeout time.Duration)
- func (o *NotifyGetRepoListParams) WithAll(all *bool) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithBefore(before *strfmt.DateTime) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithContext(ctx context.Context) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithDefaults() *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithHTTPClient(client *http.Client) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithLimit(limit *int64) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithOwner(owner string) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithPage(page *int64) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithRepo(repo string) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithSince(since *strfmt.DateTime) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithStatusTypes(statusTypes []string) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithSubjectType(subjectType []string) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WithTimeout(timeout time.Duration) *NotifyGetRepoListParams
- func (o *NotifyGetRepoListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyGetRepoListReader
- type NotifyGetThreadForbidden
- func (o *NotifyGetThreadForbidden) Code() int
- func (o *NotifyGetThreadForbidden) Error() string
- func (o *NotifyGetThreadForbidden) IsClientError() bool
- func (o *NotifyGetThreadForbidden) IsCode(code int) bool
- func (o *NotifyGetThreadForbidden) IsRedirect() bool
- func (o *NotifyGetThreadForbidden) IsServerError() bool
- func (o *NotifyGetThreadForbidden) IsSuccess() bool
- func (o *NotifyGetThreadForbidden) String() string
- type NotifyGetThreadNotFound
- func (o *NotifyGetThreadNotFound) Code() int
- func (o *NotifyGetThreadNotFound) Error() string
- func (o *NotifyGetThreadNotFound) IsClientError() bool
- func (o *NotifyGetThreadNotFound) IsCode(code int) bool
- func (o *NotifyGetThreadNotFound) IsRedirect() bool
- func (o *NotifyGetThreadNotFound) IsServerError() bool
- func (o *NotifyGetThreadNotFound) IsSuccess() bool
- func (o *NotifyGetThreadNotFound) String() string
- type NotifyGetThreadOK
- func (o *NotifyGetThreadOK) Code() int
- func (o *NotifyGetThreadOK) Error() string
- func (o *NotifyGetThreadOK) GetPayload() *models.NotificationThread
- func (o *NotifyGetThreadOK) IsClientError() bool
- func (o *NotifyGetThreadOK) IsCode(code int) bool
- func (o *NotifyGetThreadOK) IsRedirect() bool
- func (o *NotifyGetThreadOK) IsServerError() bool
- func (o *NotifyGetThreadOK) IsSuccess() bool
- func (o *NotifyGetThreadOK) String() string
- type NotifyGetThreadParams
- func NewNotifyGetThreadParams() *NotifyGetThreadParams
- func NewNotifyGetThreadParamsWithContext(ctx context.Context) *NotifyGetThreadParams
- func NewNotifyGetThreadParamsWithHTTPClient(client *http.Client) *NotifyGetThreadParams
- func NewNotifyGetThreadParamsWithTimeout(timeout time.Duration) *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) SetContext(ctx context.Context)
- func (o *NotifyGetThreadParams) SetDefaults()
- func (o *NotifyGetThreadParams) SetHTTPClient(client *http.Client)
- func (o *NotifyGetThreadParams) SetID(id string)
- func (o *NotifyGetThreadParams) SetTimeout(timeout time.Duration)
- func (o *NotifyGetThreadParams) WithContext(ctx context.Context) *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) WithDefaults() *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) WithHTTPClient(client *http.Client) *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) WithID(id string) *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) WithTimeout(timeout time.Duration) *NotifyGetThreadParams
- func (o *NotifyGetThreadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyGetThreadReader
- type NotifyNewAvailableOK
- func (o *NotifyNewAvailableOK) Code() int
- func (o *NotifyNewAvailableOK) Error() string
- func (o *NotifyNewAvailableOK) GetPayload() *models.NotificationCount
- func (o *NotifyNewAvailableOK) IsClientError() bool
- func (o *NotifyNewAvailableOK) IsCode(code int) bool
- func (o *NotifyNewAvailableOK) IsRedirect() bool
- func (o *NotifyNewAvailableOK) IsServerError() bool
- func (o *NotifyNewAvailableOK) IsSuccess() bool
- func (o *NotifyNewAvailableOK) String() string
- type NotifyNewAvailableParams
- func NewNotifyNewAvailableParams() *NotifyNewAvailableParams
- func NewNotifyNewAvailableParamsWithContext(ctx context.Context) *NotifyNewAvailableParams
- func NewNotifyNewAvailableParamsWithHTTPClient(client *http.Client) *NotifyNewAvailableParams
- func NewNotifyNewAvailableParamsWithTimeout(timeout time.Duration) *NotifyNewAvailableParams
- func (o *NotifyNewAvailableParams) SetContext(ctx context.Context)
- func (o *NotifyNewAvailableParams) SetDefaults()
- func (o *NotifyNewAvailableParams) SetHTTPClient(client *http.Client)
- func (o *NotifyNewAvailableParams) SetTimeout(timeout time.Duration)
- func (o *NotifyNewAvailableParams) WithContext(ctx context.Context) *NotifyNewAvailableParams
- func (o *NotifyNewAvailableParams) WithDefaults() *NotifyNewAvailableParams
- func (o *NotifyNewAvailableParams) WithHTTPClient(client *http.Client) *NotifyNewAvailableParams
- func (o *NotifyNewAvailableParams) WithTimeout(timeout time.Duration) *NotifyNewAvailableParams
- func (o *NotifyNewAvailableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyNewAvailableReader
- type NotifyReadListParams
- func NewNotifyReadListParams() *NotifyReadListParams
- func NewNotifyReadListParamsWithContext(ctx context.Context) *NotifyReadListParams
- func NewNotifyReadListParamsWithHTTPClient(client *http.Client) *NotifyReadListParams
- func NewNotifyReadListParamsWithTimeout(timeout time.Duration) *NotifyReadListParams
- func (o *NotifyReadListParams) SetAll(all *string)
- func (o *NotifyReadListParams) SetContext(ctx context.Context)
- func (o *NotifyReadListParams) SetDefaults()
- func (o *NotifyReadListParams) SetHTTPClient(client *http.Client)
- func (o *NotifyReadListParams) SetLastReadAt(lastReadAt *strfmt.DateTime)
- func (o *NotifyReadListParams) SetStatusTypes(statusTypes []string)
- func (o *NotifyReadListParams) SetTimeout(timeout time.Duration)
- func (o *NotifyReadListParams) SetToStatus(toStatus *string)
- func (o *NotifyReadListParams) WithAll(all *string) *NotifyReadListParams
- func (o *NotifyReadListParams) WithContext(ctx context.Context) *NotifyReadListParams
- func (o *NotifyReadListParams) WithDefaults() *NotifyReadListParams
- func (o *NotifyReadListParams) WithHTTPClient(client *http.Client) *NotifyReadListParams
- func (o *NotifyReadListParams) WithLastReadAt(lastReadAt *strfmt.DateTime) *NotifyReadListParams
- func (o *NotifyReadListParams) WithStatusTypes(statusTypes []string) *NotifyReadListParams
- func (o *NotifyReadListParams) WithTimeout(timeout time.Duration) *NotifyReadListParams
- func (o *NotifyReadListParams) WithToStatus(toStatus *string) *NotifyReadListParams
- func (o *NotifyReadListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyReadListReader
- type NotifyReadListResetContent
- func (o *NotifyReadListResetContent) Code() int
- func (o *NotifyReadListResetContent) Error() string
- func (o *NotifyReadListResetContent) GetPayload() []*models.NotificationThread
- func (o *NotifyReadListResetContent) IsClientError() bool
- func (o *NotifyReadListResetContent) IsCode(code int) bool
- func (o *NotifyReadListResetContent) IsRedirect() bool
- func (o *NotifyReadListResetContent) IsServerError() bool
- func (o *NotifyReadListResetContent) IsSuccess() bool
- func (o *NotifyReadListResetContent) String() string
- type NotifyReadRepoListParams
- func NewNotifyReadRepoListParams() *NotifyReadRepoListParams
- func NewNotifyReadRepoListParamsWithContext(ctx context.Context) *NotifyReadRepoListParams
- func NewNotifyReadRepoListParamsWithHTTPClient(client *http.Client) *NotifyReadRepoListParams
- func NewNotifyReadRepoListParamsWithTimeout(timeout time.Duration) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) SetAll(all *string)
- func (o *NotifyReadRepoListParams) SetContext(ctx context.Context)
- func (o *NotifyReadRepoListParams) SetDefaults()
- func (o *NotifyReadRepoListParams) SetHTTPClient(client *http.Client)
- func (o *NotifyReadRepoListParams) SetLastReadAt(lastReadAt *strfmt.DateTime)
- func (o *NotifyReadRepoListParams) SetOwner(owner string)
- func (o *NotifyReadRepoListParams) SetRepo(repo string)
- func (o *NotifyReadRepoListParams) SetStatusTypes(statusTypes []string)
- func (o *NotifyReadRepoListParams) SetTimeout(timeout time.Duration)
- func (o *NotifyReadRepoListParams) SetToStatus(toStatus *string)
- func (o *NotifyReadRepoListParams) WithAll(all *string) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithContext(ctx context.Context) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithDefaults() *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithHTTPClient(client *http.Client) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithLastReadAt(lastReadAt *strfmt.DateTime) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithOwner(owner string) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithRepo(repo string) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithStatusTypes(statusTypes []string) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithTimeout(timeout time.Duration) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WithToStatus(toStatus *string) *NotifyReadRepoListParams
- func (o *NotifyReadRepoListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyReadRepoListReader
- type NotifyReadRepoListResetContent
- func (o *NotifyReadRepoListResetContent) Code() int
- func (o *NotifyReadRepoListResetContent) Error() string
- func (o *NotifyReadRepoListResetContent) GetPayload() []*models.NotificationThread
- func (o *NotifyReadRepoListResetContent) IsClientError() bool
- func (o *NotifyReadRepoListResetContent) IsCode(code int) bool
- func (o *NotifyReadRepoListResetContent) IsRedirect() bool
- func (o *NotifyReadRepoListResetContent) IsServerError() bool
- func (o *NotifyReadRepoListResetContent) IsSuccess() bool
- func (o *NotifyReadRepoListResetContent) String() string
- type NotifyReadThreadForbidden
- func (o *NotifyReadThreadForbidden) Code() int
- func (o *NotifyReadThreadForbidden) Error() string
- func (o *NotifyReadThreadForbidden) IsClientError() bool
- func (o *NotifyReadThreadForbidden) IsCode(code int) bool
- func (o *NotifyReadThreadForbidden) IsRedirect() bool
- func (o *NotifyReadThreadForbidden) IsServerError() bool
- func (o *NotifyReadThreadForbidden) IsSuccess() bool
- func (o *NotifyReadThreadForbidden) String() string
- type NotifyReadThreadNotFound
- func (o *NotifyReadThreadNotFound) Code() int
- func (o *NotifyReadThreadNotFound) Error() string
- func (o *NotifyReadThreadNotFound) IsClientError() bool
- func (o *NotifyReadThreadNotFound) IsCode(code int) bool
- func (o *NotifyReadThreadNotFound) IsRedirect() bool
- func (o *NotifyReadThreadNotFound) IsServerError() bool
- func (o *NotifyReadThreadNotFound) IsSuccess() bool
- func (o *NotifyReadThreadNotFound) String() string
- type NotifyReadThreadParams
- func NewNotifyReadThreadParams() *NotifyReadThreadParams
- func NewNotifyReadThreadParamsWithContext(ctx context.Context) *NotifyReadThreadParams
- func NewNotifyReadThreadParamsWithHTTPClient(client *http.Client) *NotifyReadThreadParams
- func NewNotifyReadThreadParamsWithTimeout(timeout time.Duration) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) SetContext(ctx context.Context)
- func (o *NotifyReadThreadParams) SetDefaults()
- func (o *NotifyReadThreadParams) SetHTTPClient(client *http.Client)
- func (o *NotifyReadThreadParams) SetID(id string)
- func (o *NotifyReadThreadParams) SetTimeout(timeout time.Duration)
- func (o *NotifyReadThreadParams) SetToStatus(toStatus *string)
- func (o *NotifyReadThreadParams) WithContext(ctx context.Context) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WithDefaults() *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WithHTTPClient(client *http.Client) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WithID(id string) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WithTimeout(timeout time.Duration) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WithToStatus(toStatus *string) *NotifyReadThreadParams
- func (o *NotifyReadThreadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NotifyReadThreadReader
- type NotifyReadThreadResetContent
- func (o *NotifyReadThreadResetContent) Code() int
- func (o *NotifyReadThreadResetContent) Error() string
- func (o *NotifyReadThreadResetContent) GetPayload() *models.NotificationThread
- func (o *NotifyReadThreadResetContent) IsClientError() bool
- func (o *NotifyReadThreadResetContent) IsCode(code int) bool
- func (o *NotifyReadThreadResetContent) IsRedirect() bool
- func (o *NotifyReadThreadResetContent) IsServerError() bool
- func (o *NotifyReadThreadResetContent) IsSuccess() bool
- func (o *NotifyReadThreadResetContent) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptTextHTML ¶
func WithAcceptTextHTML(r *runtime.ClientOperation)
WithAcceptTextHTML sets the Accept header to "text/html".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeTextPlain ¶
func WithContentTypeTextPlain(r *runtime.ClientOperation)
WithContentTypeTextPlain sets the Content-Type header to "text/plain".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for notification API
func (*Client) NotifyGetList ¶
func (a *Client) NotifyGetList(params *NotifyGetListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetListOK, error)
NotifyGetList lists users s notification threads
func (*Client) NotifyGetRepoList ¶
func (a *Client) NotifyGetRepoList(params *NotifyGetRepoListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetRepoListOK, error)
NotifyGetRepoList lists users s notification threads on a specific repo
func (*Client) NotifyGetThread ¶
func (a *Client) NotifyGetThread(params *NotifyGetThreadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetThreadOK, error)
NotifyGetThread gets notification thread by ID
func (*Client) NotifyNewAvailable ¶
func (a *Client) NotifyNewAvailable(params *NotifyNewAvailableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyNewAvailableOK, error)
NotifyNewAvailable checks if unread notifications exist
func (*Client) NotifyReadList ¶
func (a *Client) NotifyReadList(params *NotifyReadListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadListResetContent, error)
NotifyReadList marks notification threads as read pinned or unread
func (*Client) NotifyReadRepoList ¶
func (a *Client) NotifyReadRepoList(params *NotifyReadRepoListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadRepoListResetContent, error)
NotifyReadRepoList marks notification threads as read pinned or unread on a specific repo
func (*Client) NotifyReadThread ¶
func (a *Client) NotifyReadThread(params *NotifyReadThreadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadThreadResetContent, error)
NotifyReadThread marks notification thread as read by ID
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.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { NotifyGetList(params *NotifyGetListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetListOK, error) NotifyGetRepoList(params *NotifyGetRepoListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetRepoListOK, error) NotifyGetThread(params *NotifyGetThreadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyGetThreadOK, error) NotifyNewAvailable(params *NotifyNewAvailableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyNewAvailableOK, error) NotifyReadList(params *NotifyReadListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadListResetContent, error) NotifyReadRepoList(params *NotifyReadRepoListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadRepoListResetContent, error) NotifyReadThread(params *NotifyReadThreadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotifyReadThreadResetContent, 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 notification API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new notification 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 notification 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 NotifyGetListOK ¶
type NotifyGetListOK struct {
Payload []*models.NotificationThread
}
NotifyGetListOK describes a response with status code 200, with default header values.
NotificationThreadList
func NewNotifyGetListOK ¶
func NewNotifyGetListOK() *NotifyGetListOK
NewNotifyGetListOK creates a NotifyGetListOK with default headers values
func (*NotifyGetListOK) Code ¶
func (o *NotifyGetListOK) Code() int
Code gets the status code for the notify get list o k response
func (*NotifyGetListOK) Error ¶
func (o *NotifyGetListOK) Error() string
func (*NotifyGetListOK) GetPayload ¶
func (o *NotifyGetListOK) GetPayload() []*models.NotificationThread
func (*NotifyGetListOK) IsClientError ¶
func (o *NotifyGetListOK) IsClientError() bool
IsClientError returns true when this notify get list o k response has a 4xx status code
func (*NotifyGetListOK) IsCode ¶
func (o *NotifyGetListOK) IsCode(code int) bool
IsCode returns true when this notify get list o k response a status code equal to that given
func (*NotifyGetListOK) IsRedirect ¶
func (o *NotifyGetListOK) IsRedirect() bool
IsRedirect returns true when this notify get list o k response has a 3xx status code
func (*NotifyGetListOK) IsServerError ¶
func (o *NotifyGetListOK) IsServerError() bool
IsServerError returns true when this notify get list o k response has a 5xx status code
func (*NotifyGetListOK) IsSuccess ¶
func (o *NotifyGetListOK) IsSuccess() bool
IsSuccess returns true when this notify get list o k response has a 2xx status code
func (*NotifyGetListOK) String ¶
func (o *NotifyGetListOK) String() string
type NotifyGetListParams ¶
type NotifyGetListParams struct { /* All. If true, show notifications marked as read. Default value is false */ All *bool /* Before. Only show notifications updated before the given time. This is a timestamp in RFC 3339 format Format: date-time */ Before *strfmt.DateTime /* Limit. page size of results */ Limit *int64 /* Page. page number of results to return (1-based) */ Page *int64 /* Since. Only show notifications updated after the given time. This is a timestamp in RFC 3339 format Format: date-time */ Since *strfmt.DateTime /* StatusTypes. Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. */ StatusTypes []string /* SubjectType. filter notifications by subject type */ SubjectType []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyGetListParams contains all the parameters to send to the API endpoint
for the notify get list operation. Typically these are written to a http.Request.
func NewNotifyGetListParams ¶
func NewNotifyGetListParams() *NotifyGetListParams
NewNotifyGetListParams creates a new NotifyGetListParams 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 NewNotifyGetListParamsWithContext ¶
func NewNotifyGetListParamsWithContext(ctx context.Context) *NotifyGetListParams
NewNotifyGetListParamsWithContext creates a new NotifyGetListParams object with the ability to set a context for a request.
func NewNotifyGetListParamsWithHTTPClient ¶
func NewNotifyGetListParamsWithHTTPClient(client *http.Client) *NotifyGetListParams
NewNotifyGetListParamsWithHTTPClient creates a new NotifyGetListParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyGetListParamsWithTimeout ¶
func NewNotifyGetListParamsWithTimeout(timeout time.Duration) *NotifyGetListParams
NewNotifyGetListParamsWithTimeout creates a new NotifyGetListParams object with the ability to set a timeout on a request.
func (*NotifyGetListParams) SetAll ¶
func (o *NotifyGetListParams) SetAll(all *bool)
SetAll adds the all to the notify get list params
func (*NotifyGetListParams) SetBefore ¶
func (o *NotifyGetListParams) SetBefore(before *strfmt.DateTime)
SetBefore adds the before to the notify get list params
func (*NotifyGetListParams) SetContext ¶
func (o *NotifyGetListParams) SetContext(ctx context.Context)
SetContext adds the context to the notify get list params
func (*NotifyGetListParams) SetDefaults ¶
func (o *NotifyGetListParams) SetDefaults()
SetDefaults hydrates default values in the notify get list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetListParams) SetHTTPClient ¶
func (o *NotifyGetListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify get list params
func (*NotifyGetListParams) SetLimit ¶
func (o *NotifyGetListParams) SetLimit(limit *int64)
SetLimit adds the limit to the notify get list params
func (*NotifyGetListParams) SetPage ¶
func (o *NotifyGetListParams) SetPage(page *int64)
SetPage adds the page to the notify get list params
func (*NotifyGetListParams) SetSince ¶
func (o *NotifyGetListParams) SetSince(since *strfmt.DateTime)
SetSince adds the since to the notify get list params
func (*NotifyGetListParams) SetStatusTypes ¶
func (o *NotifyGetListParams) SetStatusTypes(statusTypes []string)
SetStatusTypes adds the statusTypes to the notify get list params
func (*NotifyGetListParams) SetSubjectType ¶
func (o *NotifyGetListParams) SetSubjectType(subjectType []string)
SetSubjectType adds the subjectType to the notify get list params
func (*NotifyGetListParams) SetTimeout ¶
func (o *NotifyGetListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify get list params
func (*NotifyGetListParams) WithAll ¶
func (o *NotifyGetListParams) WithAll(all *bool) *NotifyGetListParams
WithAll adds the all to the notify get list params
func (*NotifyGetListParams) WithBefore ¶
func (o *NotifyGetListParams) WithBefore(before *strfmt.DateTime) *NotifyGetListParams
WithBefore adds the before to the notify get list params
func (*NotifyGetListParams) WithContext ¶
func (o *NotifyGetListParams) WithContext(ctx context.Context) *NotifyGetListParams
WithContext adds the context to the notify get list params
func (*NotifyGetListParams) WithDefaults ¶
func (o *NotifyGetListParams) WithDefaults() *NotifyGetListParams
WithDefaults hydrates default values in the notify get list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetListParams) WithHTTPClient ¶
func (o *NotifyGetListParams) WithHTTPClient(client *http.Client) *NotifyGetListParams
WithHTTPClient adds the HTTPClient to the notify get list params
func (*NotifyGetListParams) WithLimit ¶
func (o *NotifyGetListParams) WithLimit(limit *int64) *NotifyGetListParams
WithLimit adds the limit to the notify get list params
func (*NotifyGetListParams) WithPage ¶
func (o *NotifyGetListParams) WithPage(page *int64) *NotifyGetListParams
WithPage adds the page to the notify get list params
func (*NotifyGetListParams) WithSince ¶
func (o *NotifyGetListParams) WithSince(since *strfmt.DateTime) *NotifyGetListParams
WithSince adds the since to the notify get list params
func (*NotifyGetListParams) WithStatusTypes ¶
func (o *NotifyGetListParams) WithStatusTypes(statusTypes []string) *NotifyGetListParams
WithStatusTypes adds the statusTypes to the notify get list params
func (*NotifyGetListParams) WithSubjectType ¶
func (o *NotifyGetListParams) WithSubjectType(subjectType []string) *NotifyGetListParams
WithSubjectType adds the subjectType to the notify get list params
func (*NotifyGetListParams) WithTimeout ¶
func (o *NotifyGetListParams) WithTimeout(timeout time.Duration) *NotifyGetListParams
WithTimeout adds the timeout to the notify get list params
func (*NotifyGetListParams) WriteToRequest ¶
func (o *NotifyGetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyGetListReader ¶
type NotifyGetListReader struct {
// contains filtered or unexported fields
}
NotifyGetListReader is a Reader for the NotifyGetList structure.
func (*NotifyGetListReader) ReadResponse ¶
func (o *NotifyGetListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyGetRepoListOK ¶
type NotifyGetRepoListOK struct {
Payload []*models.NotificationThread
}
NotifyGetRepoListOK describes a response with status code 200, with default header values.
NotificationThreadList
func NewNotifyGetRepoListOK ¶
func NewNotifyGetRepoListOK() *NotifyGetRepoListOK
NewNotifyGetRepoListOK creates a NotifyGetRepoListOK with default headers values
func (*NotifyGetRepoListOK) Code ¶
func (o *NotifyGetRepoListOK) Code() int
Code gets the status code for the notify get repo list o k response
func (*NotifyGetRepoListOK) Error ¶
func (o *NotifyGetRepoListOK) Error() string
func (*NotifyGetRepoListOK) GetPayload ¶
func (o *NotifyGetRepoListOK) GetPayload() []*models.NotificationThread
func (*NotifyGetRepoListOK) IsClientError ¶
func (o *NotifyGetRepoListOK) IsClientError() bool
IsClientError returns true when this notify get repo list o k response has a 4xx status code
func (*NotifyGetRepoListOK) IsCode ¶
func (o *NotifyGetRepoListOK) IsCode(code int) bool
IsCode returns true when this notify get repo list o k response a status code equal to that given
func (*NotifyGetRepoListOK) IsRedirect ¶
func (o *NotifyGetRepoListOK) IsRedirect() bool
IsRedirect returns true when this notify get repo list o k response has a 3xx status code
func (*NotifyGetRepoListOK) IsServerError ¶
func (o *NotifyGetRepoListOK) IsServerError() bool
IsServerError returns true when this notify get repo list o k response has a 5xx status code
func (*NotifyGetRepoListOK) IsSuccess ¶
func (o *NotifyGetRepoListOK) IsSuccess() bool
IsSuccess returns true when this notify get repo list o k response has a 2xx status code
func (*NotifyGetRepoListOK) String ¶
func (o *NotifyGetRepoListOK) String() string
type NotifyGetRepoListParams ¶
type NotifyGetRepoListParams struct { /* All. If true, show notifications marked as read. Default value is false */ All *bool /* Before. Only show notifications updated before the given time. This is a timestamp in RFC 3339 format Format: date-time */ Before *strfmt.DateTime /* Limit. page size of results */ Limit *int64 /* Owner. owner of the repo */ Owner string /* Page. page number of results to return (1-based) */ Page *int64 /* Repo. name of the repo */ Repo string /* Since. Only show notifications updated after the given time. This is a timestamp in RFC 3339 format Format: date-time */ Since *strfmt.DateTime /* StatusTypes. Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned */ StatusTypes []string /* SubjectType. filter notifications by subject type */ SubjectType []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyGetRepoListParams contains all the parameters to send to the API endpoint
for the notify get repo list operation. Typically these are written to a http.Request.
func NewNotifyGetRepoListParams ¶
func NewNotifyGetRepoListParams() *NotifyGetRepoListParams
NewNotifyGetRepoListParams creates a new NotifyGetRepoListParams 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 NewNotifyGetRepoListParamsWithContext ¶
func NewNotifyGetRepoListParamsWithContext(ctx context.Context) *NotifyGetRepoListParams
NewNotifyGetRepoListParamsWithContext creates a new NotifyGetRepoListParams object with the ability to set a context for a request.
func NewNotifyGetRepoListParamsWithHTTPClient ¶
func NewNotifyGetRepoListParamsWithHTTPClient(client *http.Client) *NotifyGetRepoListParams
NewNotifyGetRepoListParamsWithHTTPClient creates a new NotifyGetRepoListParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyGetRepoListParamsWithTimeout ¶
func NewNotifyGetRepoListParamsWithTimeout(timeout time.Duration) *NotifyGetRepoListParams
NewNotifyGetRepoListParamsWithTimeout creates a new NotifyGetRepoListParams object with the ability to set a timeout on a request.
func (*NotifyGetRepoListParams) SetAll ¶
func (o *NotifyGetRepoListParams) SetAll(all *bool)
SetAll adds the all to the notify get repo list params
func (*NotifyGetRepoListParams) SetBefore ¶
func (o *NotifyGetRepoListParams) SetBefore(before *strfmt.DateTime)
SetBefore adds the before to the notify get repo list params
func (*NotifyGetRepoListParams) SetContext ¶
func (o *NotifyGetRepoListParams) SetContext(ctx context.Context)
SetContext adds the context to the notify get repo list params
func (*NotifyGetRepoListParams) SetDefaults ¶
func (o *NotifyGetRepoListParams) SetDefaults()
SetDefaults hydrates default values in the notify get repo list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetRepoListParams) SetHTTPClient ¶
func (o *NotifyGetRepoListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify get repo list params
func (*NotifyGetRepoListParams) SetLimit ¶
func (o *NotifyGetRepoListParams) SetLimit(limit *int64)
SetLimit adds the limit to the notify get repo list params
func (*NotifyGetRepoListParams) SetOwner ¶
func (o *NotifyGetRepoListParams) SetOwner(owner string)
SetOwner adds the owner to the notify get repo list params
func (*NotifyGetRepoListParams) SetPage ¶
func (o *NotifyGetRepoListParams) SetPage(page *int64)
SetPage adds the page to the notify get repo list params
func (*NotifyGetRepoListParams) SetRepo ¶
func (o *NotifyGetRepoListParams) SetRepo(repo string)
SetRepo adds the repo to the notify get repo list params
func (*NotifyGetRepoListParams) SetSince ¶
func (o *NotifyGetRepoListParams) SetSince(since *strfmt.DateTime)
SetSince adds the since to the notify get repo list params
func (*NotifyGetRepoListParams) SetStatusTypes ¶
func (o *NotifyGetRepoListParams) SetStatusTypes(statusTypes []string)
SetStatusTypes adds the statusTypes to the notify get repo list params
func (*NotifyGetRepoListParams) SetSubjectType ¶
func (o *NotifyGetRepoListParams) SetSubjectType(subjectType []string)
SetSubjectType adds the subjectType to the notify get repo list params
func (*NotifyGetRepoListParams) SetTimeout ¶
func (o *NotifyGetRepoListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify get repo list params
func (*NotifyGetRepoListParams) WithAll ¶
func (o *NotifyGetRepoListParams) WithAll(all *bool) *NotifyGetRepoListParams
WithAll adds the all to the notify get repo list params
func (*NotifyGetRepoListParams) WithBefore ¶
func (o *NotifyGetRepoListParams) WithBefore(before *strfmt.DateTime) *NotifyGetRepoListParams
WithBefore adds the before to the notify get repo list params
func (*NotifyGetRepoListParams) WithContext ¶
func (o *NotifyGetRepoListParams) WithContext(ctx context.Context) *NotifyGetRepoListParams
WithContext adds the context to the notify get repo list params
func (*NotifyGetRepoListParams) WithDefaults ¶
func (o *NotifyGetRepoListParams) WithDefaults() *NotifyGetRepoListParams
WithDefaults hydrates default values in the notify get repo list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetRepoListParams) WithHTTPClient ¶
func (o *NotifyGetRepoListParams) WithHTTPClient(client *http.Client) *NotifyGetRepoListParams
WithHTTPClient adds the HTTPClient to the notify get repo list params
func (*NotifyGetRepoListParams) WithLimit ¶
func (o *NotifyGetRepoListParams) WithLimit(limit *int64) *NotifyGetRepoListParams
WithLimit adds the limit to the notify get repo list params
func (*NotifyGetRepoListParams) WithOwner ¶
func (o *NotifyGetRepoListParams) WithOwner(owner string) *NotifyGetRepoListParams
WithOwner adds the owner to the notify get repo list params
func (*NotifyGetRepoListParams) WithPage ¶
func (o *NotifyGetRepoListParams) WithPage(page *int64) *NotifyGetRepoListParams
WithPage adds the page to the notify get repo list params
func (*NotifyGetRepoListParams) WithRepo ¶
func (o *NotifyGetRepoListParams) WithRepo(repo string) *NotifyGetRepoListParams
WithRepo adds the repo to the notify get repo list params
func (*NotifyGetRepoListParams) WithSince ¶
func (o *NotifyGetRepoListParams) WithSince(since *strfmt.DateTime) *NotifyGetRepoListParams
WithSince adds the since to the notify get repo list params
func (*NotifyGetRepoListParams) WithStatusTypes ¶
func (o *NotifyGetRepoListParams) WithStatusTypes(statusTypes []string) *NotifyGetRepoListParams
WithStatusTypes adds the statusTypes to the notify get repo list params
func (*NotifyGetRepoListParams) WithSubjectType ¶
func (o *NotifyGetRepoListParams) WithSubjectType(subjectType []string) *NotifyGetRepoListParams
WithSubjectType adds the subjectType to the notify get repo list params
func (*NotifyGetRepoListParams) WithTimeout ¶
func (o *NotifyGetRepoListParams) WithTimeout(timeout time.Duration) *NotifyGetRepoListParams
WithTimeout adds the timeout to the notify get repo list params
func (*NotifyGetRepoListParams) WriteToRequest ¶
func (o *NotifyGetRepoListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyGetRepoListReader ¶
type NotifyGetRepoListReader struct {
// contains filtered or unexported fields
}
NotifyGetRepoListReader is a Reader for the NotifyGetRepoList structure.
func (*NotifyGetRepoListReader) ReadResponse ¶
func (o *NotifyGetRepoListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyGetThreadForbidden ¶
NotifyGetThreadForbidden describes a response with status code 403, with default header values.
APIForbiddenError is a forbidden error response
func NewNotifyGetThreadForbidden ¶
func NewNotifyGetThreadForbidden() *NotifyGetThreadForbidden
NewNotifyGetThreadForbidden creates a NotifyGetThreadForbidden with default headers values
func (*NotifyGetThreadForbidden) Code ¶
func (o *NotifyGetThreadForbidden) Code() int
Code gets the status code for the notify get thread forbidden response
func (*NotifyGetThreadForbidden) Error ¶
func (o *NotifyGetThreadForbidden) Error() string
func (*NotifyGetThreadForbidden) IsClientError ¶
func (o *NotifyGetThreadForbidden) IsClientError() bool
IsClientError returns true when this notify get thread forbidden response has a 4xx status code
func (*NotifyGetThreadForbidden) IsCode ¶
func (o *NotifyGetThreadForbidden) IsCode(code int) bool
IsCode returns true when this notify get thread forbidden response a status code equal to that given
func (*NotifyGetThreadForbidden) IsRedirect ¶
func (o *NotifyGetThreadForbidden) IsRedirect() bool
IsRedirect returns true when this notify get thread forbidden response has a 3xx status code
func (*NotifyGetThreadForbidden) IsServerError ¶
func (o *NotifyGetThreadForbidden) IsServerError() bool
IsServerError returns true when this notify get thread forbidden response has a 5xx status code
func (*NotifyGetThreadForbidden) IsSuccess ¶
func (o *NotifyGetThreadForbidden) IsSuccess() bool
IsSuccess returns true when this notify get thread forbidden response has a 2xx status code
func (*NotifyGetThreadForbidden) String ¶
func (o *NotifyGetThreadForbidden) String() string
type NotifyGetThreadNotFound ¶
type NotifyGetThreadNotFound struct { }
NotifyGetThreadNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewNotifyGetThreadNotFound ¶
func NewNotifyGetThreadNotFound() *NotifyGetThreadNotFound
NewNotifyGetThreadNotFound creates a NotifyGetThreadNotFound with default headers values
func (*NotifyGetThreadNotFound) Code ¶
func (o *NotifyGetThreadNotFound) Code() int
Code gets the status code for the notify get thread not found response
func (*NotifyGetThreadNotFound) Error ¶
func (o *NotifyGetThreadNotFound) Error() string
func (*NotifyGetThreadNotFound) IsClientError ¶
func (o *NotifyGetThreadNotFound) IsClientError() bool
IsClientError returns true when this notify get thread not found response has a 4xx status code
func (*NotifyGetThreadNotFound) IsCode ¶
func (o *NotifyGetThreadNotFound) IsCode(code int) bool
IsCode returns true when this notify get thread not found response a status code equal to that given
func (*NotifyGetThreadNotFound) IsRedirect ¶
func (o *NotifyGetThreadNotFound) IsRedirect() bool
IsRedirect returns true when this notify get thread not found response has a 3xx status code
func (*NotifyGetThreadNotFound) IsServerError ¶
func (o *NotifyGetThreadNotFound) IsServerError() bool
IsServerError returns true when this notify get thread not found response has a 5xx status code
func (*NotifyGetThreadNotFound) IsSuccess ¶
func (o *NotifyGetThreadNotFound) IsSuccess() bool
IsSuccess returns true when this notify get thread not found response has a 2xx status code
func (*NotifyGetThreadNotFound) String ¶
func (o *NotifyGetThreadNotFound) String() string
type NotifyGetThreadOK ¶
type NotifyGetThreadOK struct {
Payload *models.NotificationThread
}
NotifyGetThreadOK describes a response with status code 200, with default header values.
NotificationThread
func NewNotifyGetThreadOK ¶
func NewNotifyGetThreadOK() *NotifyGetThreadOK
NewNotifyGetThreadOK creates a NotifyGetThreadOK with default headers values
func (*NotifyGetThreadOK) Code ¶
func (o *NotifyGetThreadOK) Code() int
Code gets the status code for the notify get thread o k response
func (*NotifyGetThreadOK) Error ¶
func (o *NotifyGetThreadOK) Error() string
func (*NotifyGetThreadOK) GetPayload ¶
func (o *NotifyGetThreadOK) GetPayload() *models.NotificationThread
func (*NotifyGetThreadOK) IsClientError ¶
func (o *NotifyGetThreadOK) IsClientError() bool
IsClientError returns true when this notify get thread o k response has a 4xx status code
func (*NotifyGetThreadOK) IsCode ¶
func (o *NotifyGetThreadOK) IsCode(code int) bool
IsCode returns true when this notify get thread o k response a status code equal to that given
func (*NotifyGetThreadOK) IsRedirect ¶
func (o *NotifyGetThreadOK) IsRedirect() bool
IsRedirect returns true when this notify get thread o k response has a 3xx status code
func (*NotifyGetThreadOK) IsServerError ¶
func (o *NotifyGetThreadOK) IsServerError() bool
IsServerError returns true when this notify get thread o k response has a 5xx status code
func (*NotifyGetThreadOK) IsSuccess ¶
func (o *NotifyGetThreadOK) IsSuccess() bool
IsSuccess returns true when this notify get thread o k response has a 2xx status code
func (*NotifyGetThreadOK) String ¶
func (o *NotifyGetThreadOK) String() string
type NotifyGetThreadParams ¶
type NotifyGetThreadParams struct { /* ID. id of notification thread */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyGetThreadParams contains all the parameters to send to the API endpoint
for the notify get thread operation. Typically these are written to a http.Request.
func NewNotifyGetThreadParams ¶
func NewNotifyGetThreadParams() *NotifyGetThreadParams
NewNotifyGetThreadParams creates a new NotifyGetThreadParams 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 NewNotifyGetThreadParamsWithContext ¶
func NewNotifyGetThreadParamsWithContext(ctx context.Context) *NotifyGetThreadParams
NewNotifyGetThreadParamsWithContext creates a new NotifyGetThreadParams object with the ability to set a context for a request.
func NewNotifyGetThreadParamsWithHTTPClient ¶
func NewNotifyGetThreadParamsWithHTTPClient(client *http.Client) *NotifyGetThreadParams
NewNotifyGetThreadParamsWithHTTPClient creates a new NotifyGetThreadParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyGetThreadParamsWithTimeout ¶
func NewNotifyGetThreadParamsWithTimeout(timeout time.Duration) *NotifyGetThreadParams
NewNotifyGetThreadParamsWithTimeout creates a new NotifyGetThreadParams object with the ability to set a timeout on a request.
func (*NotifyGetThreadParams) SetContext ¶
func (o *NotifyGetThreadParams) SetContext(ctx context.Context)
SetContext adds the context to the notify get thread params
func (*NotifyGetThreadParams) SetDefaults ¶
func (o *NotifyGetThreadParams) SetDefaults()
SetDefaults hydrates default values in the notify get thread params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetThreadParams) SetHTTPClient ¶
func (o *NotifyGetThreadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify get thread params
func (*NotifyGetThreadParams) SetID ¶
func (o *NotifyGetThreadParams) SetID(id string)
SetID adds the id to the notify get thread params
func (*NotifyGetThreadParams) SetTimeout ¶
func (o *NotifyGetThreadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify get thread params
func (*NotifyGetThreadParams) WithContext ¶
func (o *NotifyGetThreadParams) WithContext(ctx context.Context) *NotifyGetThreadParams
WithContext adds the context to the notify get thread params
func (*NotifyGetThreadParams) WithDefaults ¶
func (o *NotifyGetThreadParams) WithDefaults() *NotifyGetThreadParams
WithDefaults hydrates default values in the notify get thread params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyGetThreadParams) WithHTTPClient ¶
func (o *NotifyGetThreadParams) WithHTTPClient(client *http.Client) *NotifyGetThreadParams
WithHTTPClient adds the HTTPClient to the notify get thread params
func (*NotifyGetThreadParams) WithID ¶
func (o *NotifyGetThreadParams) WithID(id string) *NotifyGetThreadParams
WithID adds the id to the notify get thread params
func (*NotifyGetThreadParams) WithTimeout ¶
func (o *NotifyGetThreadParams) WithTimeout(timeout time.Duration) *NotifyGetThreadParams
WithTimeout adds the timeout to the notify get thread params
func (*NotifyGetThreadParams) WriteToRequest ¶
func (o *NotifyGetThreadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyGetThreadReader ¶
type NotifyGetThreadReader struct {
// contains filtered or unexported fields
}
NotifyGetThreadReader is a Reader for the NotifyGetThread structure.
func (*NotifyGetThreadReader) ReadResponse ¶
func (o *NotifyGetThreadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyNewAvailableOK ¶
type NotifyNewAvailableOK struct {
Payload *models.NotificationCount
}
NotifyNewAvailableOK describes a response with status code 200, with default header values.
Number of unread notifications
func NewNotifyNewAvailableOK ¶
func NewNotifyNewAvailableOK() *NotifyNewAvailableOK
NewNotifyNewAvailableOK creates a NotifyNewAvailableOK with default headers values
func (*NotifyNewAvailableOK) Code ¶
func (o *NotifyNewAvailableOK) Code() int
Code gets the status code for the notify new available o k response
func (*NotifyNewAvailableOK) Error ¶
func (o *NotifyNewAvailableOK) Error() string
func (*NotifyNewAvailableOK) GetPayload ¶
func (o *NotifyNewAvailableOK) GetPayload() *models.NotificationCount
func (*NotifyNewAvailableOK) IsClientError ¶
func (o *NotifyNewAvailableOK) IsClientError() bool
IsClientError returns true when this notify new available o k response has a 4xx status code
func (*NotifyNewAvailableOK) IsCode ¶
func (o *NotifyNewAvailableOK) IsCode(code int) bool
IsCode returns true when this notify new available o k response a status code equal to that given
func (*NotifyNewAvailableOK) IsRedirect ¶
func (o *NotifyNewAvailableOK) IsRedirect() bool
IsRedirect returns true when this notify new available o k response has a 3xx status code
func (*NotifyNewAvailableOK) IsServerError ¶
func (o *NotifyNewAvailableOK) IsServerError() bool
IsServerError returns true when this notify new available o k response has a 5xx status code
func (*NotifyNewAvailableOK) IsSuccess ¶
func (o *NotifyNewAvailableOK) IsSuccess() bool
IsSuccess returns true when this notify new available o k response has a 2xx status code
func (*NotifyNewAvailableOK) String ¶
func (o *NotifyNewAvailableOK) String() string
type NotifyNewAvailableParams ¶
type NotifyNewAvailableParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyNewAvailableParams contains all the parameters to send to the API endpoint
for the notify new available operation. Typically these are written to a http.Request.
func NewNotifyNewAvailableParams ¶
func NewNotifyNewAvailableParams() *NotifyNewAvailableParams
NewNotifyNewAvailableParams creates a new NotifyNewAvailableParams 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 NewNotifyNewAvailableParamsWithContext ¶
func NewNotifyNewAvailableParamsWithContext(ctx context.Context) *NotifyNewAvailableParams
NewNotifyNewAvailableParamsWithContext creates a new NotifyNewAvailableParams object with the ability to set a context for a request.
func NewNotifyNewAvailableParamsWithHTTPClient ¶
func NewNotifyNewAvailableParamsWithHTTPClient(client *http.Client) *NotifyNewAvailableParams
NewNotifyNewAvailableParamsWithHTTPClient creates a new NotifyNewAvailableParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyNewAvailableParamsWithTimeout ¶
func NewNotifyNewAvailableParamsWithTimeout(timeout time.Duration) *NotifyNewAvailableParams
NewNotifyNewAvailableParamsWithTimeout creates a new NotifyNewAvailableParams object with the ability to set a timeout on a request.
func (*NotifyNewAvailableParams) SetContext ¶
func (o *NotifyNewAvailableParams) SetContext(ctx context.Context)
SetContext adds the context to the notify new available params
func (*NotifyNewAvailableParams) SetDefaults ¶
func (o *NotifyNewAvailableParams) SetDefaults()
SetDefaults hydrates default values in the notify new available params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyNewAvailableParams) SetHTTPClient ¶
func (o *NotifyNewAvailableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify new available params
func (*NotifyNewAvailableParams) SetTimeout ¶
func (o *NotifyNewAvailableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify new available params
func (*NotifyNewAvailableParams) WithContext ¶
func (o *NotifyNewAvailableParams) WithContext(ctx context.Context) *NotifyNewAvailableParams
WithContext adds the context to the notify new available params
func (*NotifyNewAvailableParams) WithDefaults ¶
func (o *NotifyNewAvailableParams) WithDefaults() *NotifyNewAvailableParams
WithDefaults hydrates default values in the notify new available params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyNewAvailableParams) WithHTTPClient ¶
func (o *NotifyNewAvailableParams) WithHTTPClient(client *http.Client) *NotifyNewAvailableParams
WithHTTPClient adds the HTTPClient to the notify new available params
func (*NotifyNewAvailableParams) WithTimeout ¶
func (o *NotifyNewAvailableParams) WithTimeout(timeout time.Duration) *NotifyNewAvailableParams
WithTimeout adds the timeout to the notify new available params
func (*NotifyNewAvailableParams) WriteToRequest ¶
func (o *NotifyNewAvailableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyNewAvailableReader ¶
type NotifyNewAvailableReader struct {
// contains filtered or unexported fields
}
NotifyNewAvailableReader is a Reader for the NotifyNewAvailable structure.
func (*NotifyNewAvailableReader) ReadResponse ¶
func (o *NotifyNewAvailableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyReadListParams ¶
type NotifyReadListParams struct { /* All. If true, mark all notifications on this repo. Default value is false */ All *string /* LastReadAt. Describes the last point that notifications were checked. Anything updated since this time will not be updated. Format: date-time */ LastReadAt *strfmt.DateTime /* StatusTypes. Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. */ StatusTypes []string /* ToStatus. Status to mark notifications as, Defaults to read. */ ToStatus *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyReadListParams contains all the parameters to send to the API endpoint
for the notify read list operation. Typically these are written to a http.Request.
func NewNotifyReadListParams ¶
func NewNotifyReadListParams() *NotifyReadListParams
NewNotifyReadListParams creates a new NotifyReadListParams 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 NewNotifyReadListParamsWithContext ¶
func NewNotifyReadListParamsWithContext(ctx context.Context) *NotifyReadListParams
NewNotifyReadListParamsWithContext creates a new NotifyReadListParams object with the ability to set a context for a request.
func NewNotifyReadListParamsWithHTTPClient ¶
func NewNotifyReadListParamsWithHTTPClient(client *http.Client) *NotifyReadListParams
NewNotifyReadListParamsWithHTTPClient creates a new NotifyReadListParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyReadListParamsWithTimeout ¶
func NewNotifyReadListParamsWithTimeout(timeout time.Duration) *NotifyReadListParams
NewNotifyReadListParamsWithTimeout creates a new NotifyReadListParams object with the ability to set a timeout on a request.
func (*NotifyReadListParams) SetAll ¶
func (o *NotifyReadListParams) SetAll(all *string)
SetAll adds the all to the notify read list params
func (*NotifyReadListParams) SetContext ¶
func (o *NotifyReadListParams) SetContext(ctx context.Context)
SetContext adds the context to the notify read list params
func (*NotifyReadListParams) SetDefaults ¶
func (o *NotifyReadListParams) SetDefaults()
SetDefaults hydrates default values in the notify read list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadListParams) SetHTTPClient ¶
func (o *NotifyReadListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify read list params
func (*NotifyReadListParams) SetLastReadAt ¶
func (o *NotifyReadListParams) SetLastReadAt(lastReadAt *strfmt.DateTime)
SetLastReadAt adds the lastReadAt to the notify read list params
func (*NotifyReadListParams) SetStatusTypes ¶
func (o *NotifyReadListParams) SetStatusTypes(statusTypes []string)
SetStatusTypes adds the statusTypes to the notify read list params
func (*NotifyReadListParams) SetTimeout ¶
func (o *NotifyReadListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify read list params
func (*NotifyReadListParams) SetToStatus ¶
func (o *NotifyReadListParams) SetToStatus(toStatus *string)
SetToStatus adds the toStatus to the notify read list params
func (*NotifyReadListParams) WithAll ¶
func (o *NotifyReadListParams) WithAll(all *string) *NotifyReadListParams
WithAll adds the all to the notify read list params
func (*NotifyReadListParams) WithContext ¶
func (o *NotifyReadListParams) WithContext(ctx context.Context) *NotifyReadListParams
WithContext adds the context to the notify read list params
func (*NotifyReadListParams) WithDefaults ¶
func (o *NotifyReadListParams) WithDefaults() *NotifyReadListParams
WithDefaults hydrates default values in the notify read list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadListParams) WithHTTPClient ¶
func (o *NotifyReadListParams) WithHTTPClient(client *http.Client) *NotifyReadListParams
WithHTTPClient adds the HTTPClient to the notify read list params
func (*NotifyReadListParams) WithLastReadAt ¶
func (o *NotifyReadListParams) WithLastReadAt(lastReadAt *strfmt.DateTime) *NotifyReadListParams
WithLastReadAt adds the lastReadAt to the notify read list params
func (*NotifyReadListParams) WithStatusTypes ¶
func (o *NotifyReadListParams) WithStatusTypes(statusTypes []string) *NotifyReadListParams
WithStatusTypes adds the statusTypes to the notify read list params
func (*NotifyReadListParams) WithTimeout ¶
func (o *NotifyReadListParams) WithTimeout(timeout time.Duration) *NotifyReadListParams
WithTimeout adds the timeout to the notify read list params
func (*NotifyReadListParams) WithToStatus ¶
func (o *NotifyReadListParams) WithToStatus(toStatus *string) *NotifyReadListParams
WithToStatus adds the toStatus to the notify read list params
func (*NotifyReadListParams) WriteToRequest ¶
func (o *NotifyReadListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyReadListReader ¶
type NotifyReadListReader struct {
// contains filtered or unexported fields
}
NotifyReadListReader is a Reader for the NotifyReadList structure.
func (*NotifyReadListReader) ReadResponse ¶
func (o *NotifyReadListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyReadListResetContent ¶
type NotifyReadListResetContent struct {
Payload []*models.NotificationThread
}
NotifyReadListResetContent describes a response with status code 205, with default header values.
NotificationThreadList
func NewNotifyReadListResetContent ¶
func NewNotifyReadListResetContent() *NotifyReadListResetContent
NewNotifyReadListResetContent creates a NotifyReadListResetContent with default headers values
func (*NotifyReadListResetContent) Code ¶
func (o *NotifyReadListResetContent) Code() int
Code gets the status code for the notify read list reset content response
func (*NotifyReadListResetContent) Error ¶
func (o *NotifyReadListResetContent) Error() string
func (*NotifyReadListResetContent) GetPayload ¶
func (o *NotifyReadListResetContent) GetPayload() []*models.NotificationThread
func (*NotifyReadListResetContent) IsClientError ¶
func (o *NotifyReadListResetContent) IsClientError() bool
IsClientError returns true when this notify read list reset content response has a 4xx status code
func (*NotifyReadListResetContent) IsCode ¶
func (o *NotifyReadListResetContent) IsCode(code int) bool
IsCode returns true when this notify read list reset content response a status code equal to that given
func (*NotifyReadListResetContent) IsRedirect ¶
func (o *NotifyReadListResetContent) IsRedirect() bool
IsRedirect returns true when this notify read list reset content response has a 3xx status code
func (*NotifyReadListResetContent) IsServerError ¶
func (o *NotifyReadListResetContent) IsServerError() bool
IsServerError returns true when this notify read list reset content response has a 5xx status code
func (*NotifyReadListResetContent) IsSuccess ¶
func (o *NotifyReadListResetContent) IsSuccess() bool
IsSuccess returns true when this notify read list reset content response has a 2xx status code
func (*NotifyReadListResetContent) String ¶
func (o *NotifyReadListResetContent) String() string
type NotifyReadRepoListParams ¶
type NotifyReadRepoListParams struct { /* All. If true, mark all notifications on this repo. Default value is false */ All *string /* LastReadAt. Describes the last point that notifications were checked. Anything updated since this time will not be updated. Format: date-time */ LastReadAt *strfmt.DateTime /* Owner. owner of the repo */ Owner string /* Repo. name of the repo */ Repo string /* StatusTypes. Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. */ StatusTypes []string /* ToStatus. Status to mark notifications as. Defaults to read. */ ToStatus *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyReadRepoListParams contains all the parameters to send to the API endpoint
for the notify read repo list operation. Typically these are written to a http.Request.
func NewNotifyReadRepoListParams ¶
func NewNotifyReadRepoListParams() *NotifyReadRepoListParams
NewNotifyReadRepoListParams creates a new NotifyReadRepoListParams 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 NewNotifyReadRepoListParamsWithContext ¶
func NewNotifyReadRepoListParamsWithContext(ctx context.Context) *NotifyReadRepoListParams
NewNotifyReadRepoListParamsWithContext creates a new NotifyReadRepoListParams object with the ability to set a context for a request.
func NewNotifyReadRepoListParamsWithHTTPClient ¶
func NewNotifyReadRepoListParamsWithHTTPClient(client *http.Client) *NotifyReadRepoListParams
NewNotifyReadRepoListParamsWithHTTPClient creates a new NotifyReadRepoListParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyReadRepoListParamsWithTimeout ¶
func NewNotifyReadRepoListParamsWithTimeout(timeout time.Duration) *NotifyReadRepoListParams
NewNotifyReadRepoListParamsWithTimeout creates a new NotifyReadRepoListParams object with the ability to set a timeout on a request.
func (*NotifyReadRepoListParams) SetAll ¶
func (o *NotifyReadRepoListParams) SetAll(all *string)
SetAll adds the all to the notify read repo list params
func (*NotifyReadRepoListParams) SetContext ¶
func (o *NotifyReadRepoListParams) SetContext(ctx context.Context)
SetContext adds the context to the notify read repo list params
func (*NotifyReadRepoListParams) SetDefaults ¶
func (o *NotifyReadRepoListParams) SetDefaults()
SetDefaults hydrates default values in the notify read repo list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadRepoListParams) SetHTTPClient ¶
func (o *NotifyReadRepoListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify read repo list params
func (*NotifyReadRepoListParams) SetLastReadAt ¶
func (o *NotifyReadRepoListParams) SetLastReadAt(lastReadAt *strfmt.DateTime)
SetLastReadAt adds the lastReadAt to the notify read repo list params
func (*NotifyReadRepoListParams) SetOwner ¶
func (o *NotifyReadRepoListParams) SetOwner(owner string)
SetOwner adds the owner to the notify read repo list params
func (*NotifyReadRepoListParams) SetRepo ¶
func (o *NotifyReadRepoListParams) SetRepo(repo string)
SetRepo adds the repo to the notify read repo list params
func (*NotifyReadRepoListParams) SetStatusTypes ¶
func (o *NotifyReadRepoListParams) SetStatusTypes(statusTypes []string)
SetStatusTypes adds the statusTypes to the notify read repo list params
func (*NotifyReadRepoListParams) SetTimeout ¶
func (o *NotifyReadRepoListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify read repo list params
func (*NotifyReadRepoListParams) SetToStatus ¶
func (o *NotifyReadRepoListParams) SetToStatus(toStatus *string)
SetToStatus adds the toStatus to the notify read repo list params
func (*NotifyReadRepoListParams) WithAll ¶
func (o *NotifyReadRepoListParams) WithAll(all *string) *NotifyReadRepoListParams
WithAll adds the all to the notify read repo list params
func (*NotifyReadRepoListParams) WithContext ¶
func (o *NotifyReadRepoListParams) WithContext(ctx context.Context) *NotifyReadRepoListParams
WithContext adds the context to the notify read repo list params
func (*NotifyReadRepoListParams) WithDefaults ¶
func (o *NotifyReadRepoListParams) WithDefaults() *NotifyReadRepoListParams
WithDefaults hydrates default values in the notify read repo list params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadRepoListParams) WithHTTPClient ¶
func (o *NotifyReadRepoListParams) WithHTTPClient(client *http.Client) *NotifyReadRepoListParams
WithHTTPClient adds the HTTPClient to the notify read repo list params
func (*NotifyReadRepoListParams) WithLastReadAt ¶
func (o *NotifyReadRepoListParams) WithLastReadAt(lastReadAt *strfmt.DateTime) *NotifyReadRepoListParams
WithLastReadAt adds the lastReadAt to the notify read repo list params
func (*NotifyReadRepoListParams) WithOwner ¶
func (o *NotifyReadRepoListParams) WithOwner(owner string) *NotifyReadRepoListParams
WithOwner adds the owner to the notify read repo list params
func (*NotifyReadRepoListParams) WithRepo ¶
func (o *NotifyReadRepoListParams) WithRepo(repo string) *NotifyReadRepoListParams
WithRepo adds the repo to the notify read repo list params
func (*NotifyReadRepoListParams) WithStatusTypes ¶
func (o *NotifyReadRepoListParams) WithStatusTypes(statusTypes []string) *NotifyReadRepoListParams
WithStatusTypes adds the statusTypes to the notify read repo list params
func (*NotifyReadRepoListParams) WithTimeout ¶
func (o *NotifyReadRepoListParams) WithTimeout(timeout time.Duration) *NotifyReadRepoListParams
WithTimeout adds the timeout to the notify read repo list params
func (*NotifyReadRepoListParams) WithToStatus ¶
func (o *NotifyReadRepoListParams) WithToStatus(toStatus *string) *NotifyReadRepoListParams
WithToStatus adds the toStatus to the notify read repo list params
func (*NotifyReadRepoListParams) WriteToRequest ¶
func (o *NotifyReadRepoListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyReadRepoListReader ¶
type NotifyReadRepoListReader struct {
// contains filtered or unexported fields
}
NotifyReadRepoListReader is a Reader for the NotifyReadRepoList structure.
func (*NotifyReadRepoListReader) ReadResponse ¶
func (o *NotifyReadRepoListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyReadRepoListResetContent ¶
type NotifyReadRepoListResetContent struct {
Payload []*models.NotificationThread
}
NotifyReadRepoListResetContent describes a response with status code 205, with default header values.
NotificationThreadList
func NewNotifyReadRepoListResetContent ¶
func NewNotifyReadRepoListResetContent() *NotifyReadRepoListResetContent
NewNotifyReadRepoListResetContent creates a NotifyReadRepoListResetContent with default headers values
func (*NotifyReadRepoListResetContent) Code ¶
func (o *NotifyReadRepoListResetContent) Code() int
Code gets the status code for the notify read repo list reset content response
func (*NotifyReadRepoListResetContent) Error ¶
func (o *NotifyReadRepoListResetContent) Error() string
func (*NotifyReadRepoListResetContent) GetPayload ¶
func (o *NotifyReadRepoListResetContent) GetPayload() []*models.NotificationThread
func (*NotifyReadRepoListResetContent) IsClientError ¶
func (o *NotifyReadRepoListResetContent) IsClientError() bool
IsClientError returns true when this notify read repo list reset content response has a 4xx status code
func (*NotifyReadRepoListResetContent) IsCode ¶
func (o *NotifyReadRepoListResetContent) IsCode(code int) bool
IsCode returns true when this notify read repo list reset content response a status code equal to that given
func (*NotifyReadRepoListResetContent) IsRedirect ¶
func (o *NotifyReadRepoListResetContent) IsRedirect() bool
IsRedirect returns true when this notify read repo list reset content response has a 3xx status code
func (*NotifyReadRepoListResetContent) IsServerError ¶
func (o *NotifyReadRepoListResetContent) IsServerError() bool
IsServerError returns true when this notify read repo list reset content response has a 5xx status code
func (*NotifyReadRepoListResetContent) IsSuccess ¶
func (o *NotifyReadRepoListResetContent) IsSuccess() bool
IsSuccess returns true when this notify read repo list reset content response has a 2xx status code
func (*NotifyReadRepoListResetContent) String ¶
func (o *NotifyReadRepoListResetContent) String() string
type NotifyReadThreadForbidden ¶
NotifyReadThreadForbidden describes a response with status code 403, with default header values.
APIForbiddenError is a forbidden error response
func NewNotifyReadThreadForbidden ¶
func NewNotifyReadThreadForbidden() *NotifyReadThreadForbidden
NewNotifyReadThreadForbidden creates a NotifyReadThreadForbidden with default headers values
func (*NotifyReadThreadForbidden) Code ¶
func (o *NotifyReadThreadForbidden) Code() int
Code gets the status code for the notify read thread forbidden response
func (*NotifyReadThreadForbidden) Error ¶
func (o *NotifyReadThreadForbidden) Error() string
func (*NotifyReadThreadForbidden) IsClientError ¶
func (o *NotifyReadThreadForbidden) IsClientError() bool
IsClientError returns true when this notify read thread forbidden response has a 4xx status code
func (*NotifyReadThreadForbidden) IsCode ¶
func (o *NotifyReadThreadForbidden) IsCode(code int) bool
IsCode returns true when this notify read thread forbidden response a status code equal to that given
func (*NotifyReadThreadForbidden) IsRedirect ¶
func (o *NotifyReadThreadForbidden) IsRedirect() bool
IsRedirect returns true when this notify read thread forbidden response has a 3xx status code
func (*NotifyReadThreadForbidden) IsServerError ¶
func (o *NotifyReadThreadForbidden) IsServerError() bool
IsServerError returns true when this notify read thread forbidden response has a 5xx status code
func (*NotifyReadThreadForbidden) IsSuccess ¶
func (o *NotifyReadThreadForbidden) IsSuccess() bool
IsSuccess returns true when this notify read thread forbidden response has a 2xx status code
func (*NotifyReadThreadForbidden) String ¶
func (o *NotifyReadThreadForbidden) String() string
type NotifyReadThreadNotFound ¶
type NotifyReadThreadNotFound struct { }
NotifyReadThreadNotFound describes a response with status code 404, with default header values.
APINotFound is a not found empty response
func NewNotifyReadThreadNotFound ¶
func NewNotifyReadThreadNotFound() *NotifyReadThreadNotFound
NewNotifyReadThreadNotFound creates a NotifyReadThreadNotFound with default headers values
func (*NotifyReadThreadNotFound) Code ¶
func (o *NotifyReadThreadNotFound) Code() int
Code gets the status code for the notify read thread not found response
func (*NotifyReadThreadNotFound) Error ¶
func (o *NotifyReadThreadNotFound) Error() string
func (*NotifyReadThreadNotFound) IsClientError ¶
func (o *NotifyReadThreadNotFound) IsClientError() bool
IsClientError returns true when this notify read thread not found response has a 4xx status code
func (*NotifyReadThreadNotFound) IsCode ¶
func (o *NotifyReadThreadNotFound) IsCode(code int) bool
IsCode returns true when this notify read thread not found response a status code equal to that given
func (*NotifyReadThreadNotFound) IsRedirect ¶
func (o *NotifyReadThreadNotFound) IsRedirect() bool
IsRedirect returns true when this notify read thread not found response has a 3xx status code
func (*NotifyReadThreadNotFound) IsServerError ¶
func (o *NotifyReadThreadNotFound) IsServerError() bool
IsServerError returns true when this notify read thread not found response has a 5xx status code
func (*NotifyReadThreadNotFound) IsSuccess ¶
func (o *NotifyReadThreadNotFound) IsSuccess() bool
IsSuccess returns true when this notify read thread not found response has a 2xx status code
func (*NotifyReadThreadNotFound) String ¶
func (o *NotifyReadThreadNotFound) String() string
type NotifyReadThreadParams ¶
type NotifyReadThreadParams struct { /* ID. id of notification thread */ ID string /* ToStatus. Status to mark notifications as Default: "read" */ ToStatus *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NotifyReadThreadParams contains all the parameters to send to the API endpoint
for the notify read thread operation. Typically these are written to a http.Request.
func NewNotifyReadThreadParams ¶
func NewNotifyReadThreadParams() *NotifyReadThreadParams
NewNotifyReadThreadParams creates a new NotifyReadThreadParams 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 NewNotifyReadThreadParamsWithContext ¶
func NewNotifyReadThreadParamsWithContext(ctx context.Context) *NotifyReadThreadParams
NewNotifyReadThreadParamsWithContext creates a new NotifyReadThreadParams object with the ability to set a context for a request.
func NewNotifyReadThreadParamsWithHTTPClient ¶
func NewNotifyReadThreadParamsWithHTTPClient(client *http.Client) *NotifyReadThreadParams
NewNotifyReadThreadParamsWithHTTPClient creates a new NotifyReadThreadParams object with the ability to set a custom HTTPClient for a request.
func NewNotifyReadThreadParamsWithTimeout ¶
func NewNotifyReadThreadParamsWithTimeout(timeout time.Duration) *NotifyReadThreadParams
NewNotifyReadThreadParamsWithTimeout creates a new NotifyReadThreadParams object with the ability to set a timeout on a request.
func (*NotifyReadThreadParams) SetContext ¶
func (o *NotifyReadThreadParams) SetContext(ctx context.Context)
SetContext adds the context to the notify read thread params
func (*NotifyReadThreadParams) SetDefaults ¶
func (o *NotifyReadThreadParams) SetDefaults()
SetDefaults hydrates default values in the notify read thread params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadThreadParams) SetHTTPClient ¶
func (o *NotifyReadThreadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the notify read thread params
func (*NotifyReadThreadParams) SetID ¶
func (o *NotifyReadThreadParams) SetID(id string)
SetID adds the id to the notify read thread params
func (*NotifyReadThreadParams) SetTimeout ¶
func (o *NotifyReadThreadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the notify read thread params
func (*NotifyReadThreadParams) SetToStatus ¶
func (o *NotifyReadThreadParams) SetToStatus(toStatus *string)
SetToStatus adds the toStatus to the notify read thread params
func (*NotifyReadThreadParams) WithContext ¶
func (o *NotifyReadThreadParams) WithContext(ctx context.Context) *NotifyReadThreadParams
WithContext adds the context to the notify read thread params
func (*NotifyReadThreadParams) WithDefaults ¶
func (o *NotifyReadThreadParams) WithDefaults() *NotifyReadThreadParams
WithDefaults hydrates default values in the notify read thread params (not the query body).
All values with no default are reset to their zero value.
func (*NotifyReadThreadParams) WithHTTPClient ¶
func (o *NotifyReadThreadParams) WithHTTPClient(client *http.Client) *NotifyReadThreadParams
WithHTTPClient adds the HTTPClient to the notify read thread params
func (*NotifyReadThreadParams) WithID ¶
func (o *NotifyReadThreadParams) WithID(id string) *NotifyReadThreadParams
WithID adds the id to the notify read thread params
func (*NotifyReadThreadParams) WithTimeout ¶
func (o *NotifyReadThreadParams) WithTimeout(timeout time.Duration) *NotifyReadThreadParams
WithTimeout adds the timeout to the notify read thread params
func (*NotifyReadThreadParams) WithToStatus ¶
func (o *NotifyReadThreadParams) WithToStatus(toStatus *string) *NotifyReadThreadParams
WithToStatus adds the toStatus to the notify read thread params
func (*NotifyReadThreadParams) WriteToRequest ¶
func (o *NotifyReadThreadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NotifyReadThreadReader ¶
type NotifyReadThreadReader struct {
// contains filtered or unexported fields
}
NotifyReadThreadReader is a Reader for the NotifyReadThread structure.
func (*NotifyReadThreadReader) ReadResponse ¶
func (o *NotifyReadThreadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NotifyReadThreadResetContent ¶
type NotifyReadThreadResetContent struct {
Payload *models.NotificationThread
}
NotifyReadThreadResetContent describes a response with status code 205, with default header values.
NotificationThread
func NewNotifyReadThreadResetContent ¶
func NewNotifyReadThreadResetContent() *NotifyReadThreadResetContent
NewNotifyReadThreadResetContent creates a NotifyReadThreadResetContent with default headers values
func (*NotifyReadThreadResetContent) Code ¶
func (o *NotifyReadThreadResetContent) Code() int
Code gets the status code for the notify read thread reset content response
func (*NotifyReadThreadResetContent) Error ¶
func (o *NotifyReadThreadResetContent) Error() string
func (*NotifyReadThreadResetContent) GetPayload ¶
func (o *NotifyReadThreadResetContent) GetPayload() *models.NotificationThread
func (*NotifyReadThreadResetContent) IsClientError ¶
func (o *NotifyReadThreadResetContent) IsClientError() bool
IsClientError returns true when this notify read thread reset content response has a 4xx status code
func (*NotifyReadThreadResetContent) IsCode ¶
func (o *NotifyReadThreadResetContent) IsCode(code int) bool
IsCode returns true when this notify read thread reset content response a status code equal to that given
func (*NotifyReadThreadResetContent) IsRedirect ¶
func (o *NotifyReadThreadResetContent) IsRedirect() bool
IsRedirect returns true when this notify read thread reset content response has a 3xx status code
func (*NotifyReadThreadResetContent) IsServerError ¶
func (o *NotifyReadThreadResetContent) IsServerError() bool
IsServerError returns true when this notify read thread reset content response has a 5xx status code
func (*NotifyReadThreadResetContent) IsSuccess ¶
func (o *NotifyReadThreadResetContent) IsSuccess() bool
IsSuccess returns true when this notify read thread reset content response has a 2xx status code
func (*NotifyReadThreadResetContent) String ¶
func (o *NotifyReadThreadResetContent) String() string
Source Files
¶
- notification_client.go
- notify_get_list_parameters.go
- notify_get_list_responses.go
- notify_get_repo_list_parameters.go
- notify_get_repo_list_responses.go
- notify_get_thread_parameters.go
- notify_get_thread_responses.go
- notify_new_available_parameters.go
- notify_new_available_responses.go
- notify_read_list_parameters.go
- notify_read_list_responses.go
- notify_read_repo_list_parameters.go
- notify_read_repo_list_responses.go
- notify_read_thread_parameters.go
- notify_read_thread_responses.go