notification

package
v0.0.0-...-078138e Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

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

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

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

WithAll adds the all to the notify get repo list params

func (*NotifyGetRepoListParams) WithBefore

WithBefore adds the before to the notify get repo list params

func (*NotifyGetRepoListParams) WithContext

WithContext adds the context to the notify get repo list params

func (*NotifyGetRepoListParams) WithDefaults

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

WithLimit adds the limit to the notify get repo list params

func (*NotifyGetRepoListParams) WithOwner

WithOwner adds the owner to the notify get repo list params

func (*NotifyGetRepoListParams) WithPage

WithPage adds the page to the notify get repo list params

func (*NotifyGetRepoListParams) WithRepo

WithRepo adds the repo to the notify get repo list params

func (*NotifyGetRepoListParams) WithSince

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

WithTimeout adds the timeout to the notify get repo list params

func (*NotifyGetRepoListParams) WriteToRequest

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

type NotifyGetThreadForbidden struct {
	Message string
	URL     string
}

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

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

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 (*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

WithContext adds the context to the notify new available params

func (*NotifyNewAvailableParams) WithDefaults

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

WithTimeout adds the timeout to the notify new available params

func (*NotifyNewAvailableParams) WriteToRequest

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

WithAll adds the all to the notify read list params

func (*NotifyReadListParams) WithContext

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 (*NotifyReadListResetContent) GetPayload

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

WithAll adds the all to the notify read repo list params

func (*NotifyReadRepoListParams) WithContext

WithContext adds the context to the notify read repo list params

func (*NotifyReadRepoListParams) WithDefaults

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

WithOwner adds the owner to the notify read repo list params

func (*NotifyReadRepoListParams) WithRepo

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

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

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

Code gets the status code for the notify read repo list reset content response

func (*NotifyReadRepoListResetContent) Error

func (*NotifyReadRepoListResetContent) GetPayload

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

type NotifyReadThreadForbidden

type NotifyReadThreadForbidden struct {
	Message string
	URL     string
}

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

WithContext adds the context to the notify read thread params

func (*NotifyReadThreadParams) WithDefaults

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

WithID adds the id to the notify read thread params

func (*NotifyReadThreadParams) WithTimeout

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

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

Code gets the status code for the notify read thread reset content response

func (*NotifyReadThreadResetContent) Error

func (*NotifyReadThreadResetContent) GetPayload

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

Jump to

Keyboard shortcuts

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