notifications

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClearNotificationsBadRequest

type ClearNotificationsBadRequest struct {
}

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

bad request

func NewClearNotificationsBadRequest

func NewClearNotificationsBadRequest() *ClearNotificationsBadRequest

NewClearNotificationsBadRequest creates a ClearNotificationsBadRequest with default headers values

func (*ClearNotificationsBadRequest) Code

Code gets the status code for the clear notifications bad request response

func (*ClearNotificationsBadRequest) Error

func (*ClearNotificationsBadRequest) IsClientError

func (o *ClearNotificationsBadRequest) IsClientError() bool

IsClientError returns true when this clear notifications bad request response has a 4xx status code

func (*ClearNotificationsBadRequest) IsCode

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

IsCode returns true when this clear notifications bad request response a status code equal to that given

func (*ClearNotificationsBadRequest) IsRedirect

func (o *ClearNotificationsBadRequest) IsRedirect() bool

IsRedirect returns true when this clear notifications bad request response has a 3xx status code

func (*ClearNotificationsBadRequest) IsServerError

func (o *ClearNotificationsBadRequest) IsServerError() bool

IsServerError returns true when this clear notifications bad request response has a 5xx status code

func (*ClearNotificationsBadRequest) IsSuccess

func (o *ClearNotificationsBadRequest) IsSuccess() bool

IsSuccess returns true when this clear notifications bad request response has a 2xx status code

func (*ClearNotificationsBadRequest) String

type ClearNotificationsInternalServerError

type ClearNotificationsInternalServerError struct {
}

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

internal server error

func NewClearNotificationsInternalServerError

func NewClearNotificationsInternalServerError() *ClearNotificationsInternalServerError

NewClearNotificationsInternalServerError creates a ClearNotificationsInternalServerError with default headers values

func (*ClearNotificationsInternalServerError) Code

Code gets the status code for the clear notifications internal server error response

func (*ClearNotificationsInternalServerError) Error

func (*ClearNotificationsInternalServerError) IsClientError

func (o *ClearNotificationsInternalServerError) IsClientError() bool

IsClientError returns true when this clear notifications internal server error response has a 4xx status code

func (*ClearNotificationsInternalServerError) IsCode

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

func (*ClearNotificationsInternalServerError) IsRedirect

IsRedirect returns true when this clear notifications internal server error response has a 3xx status code

func (*ClearNotificationsInternalServerError) IsServerError

func (o *ClearNotificationsInternalServerError) IsServerError() bool

IsServerError returns true when this clear notifications internal server error response has a 5xx status code

func (*ClearNotificationsInternalServerError) IsSuccess

IsSuccess returns true when this clear notifications internal server error response has a 2xx status code

func (*ClearNotificationsInternalServerError) String

type ClearNotificationsNotAcceptable

type ClearNotificationsNotAcceptable struct {
}

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

not acceptable

func NewClearNotificationsNotAcceptable

func NewClearNotificationsNotAcceptable() *ClearNotificationsNotAcceptable

NewClearNotificationsNotAcceptable creates a ClearNotificationsNotAcceptable with default headers values

func (*ClearNotificationsNotAcceptable) Code

Code gets the status code for the clear notifications not acceptable response

func (*ClearNotificationsNotAcceptable) Error

func (*ClearNotificationsNotAcceptable) IsClientError

func (o *ClearNotificationsNotAcceptable) IsClientError() bool

IsClientError returns true when this clear notifications not acceptable response has a 4xx status code

func (*ClearNotificationsNotAcceptable) IsCode

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

IsCode returns true when this clear notifications not acceptable response a status code equal to that given

func (*ClearNotificationsNotAcceptable) IsRedirect

func (o *ClearNotificationsNotAcceptable) IsRedirect() bool

IsRedirect returns true when this clear notifications not acceptable response has a 3xx status code

func (*ClearNotificationsNotAcceptable) IsServerError

func (o *ClearNotificationsNotAcceptable) IsServerError() bool

IsServerError returns true when this clear notifications not acceptable response has a 5xx status code

func (*ClearNotificationsNotAcceptable) IsSuccess

func (o *ClearNotificationsNotAcceptable) IsSuccess() bool

IsSuccess returns true when this clear notifications not acceptable response has a 2xx status code

func (*ClearNotificationsNotAcceptable) String

type ClearNotificationsNotFound

type ClearNotificationsNotFound struct {
}

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

not found

func NewClearNotificationsNotFound

func NewClearNotificationsNotFound() *ClearNotificationsNotFound

NewClearNotificationsNotFound creates a ClearNotificationsNotFound with default headers values

func (*ClearNotificationsNotFound) Code

func (o *ClearNotificationsNotFound) Code() int

Code gets the status code for the clear notifications not found response

func (*ClearNotificationsNotFound) Error

func (*ClearNotificationsNotFound) IsClientError

func (o *ClearNotificationsNotFound) IsClientError() bool

IsClientError returns true when this clear notifications not found response has a 4xx status code

func (*ClearNotificationsNotFound) IsCode

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

IsCode returns true when this clear notifications not found response a status code equal to that given

func (*ClearNotificationsNotFound) IsRedirect

func (o *ClearNotificationsNotFound) IsRedirect() bool

IsRedirect returns true when this clear notifications not found response has a 3xx status code

func (*ClearNotificationsNotFound) IsServerError

func (o *ClearNotificationsNotFound) IsServerError() bool

IsServerError returns true when this clear notifications not found response has a 5xx status code

func (*ClearNotificationsNotFound) IsSuccess

func (o *ClearNotificationsNotFound) IsSuccess() bool

IsSuccess returns true when this clear notifications not found response has a 2xx status code

func (*ClearNotificationsNotFound) String

func (o *ClearNotificationsNotFound) String() string

type ClearNotificationsOK

type ClearNotificationsOK struct {
	Payload interface{}
}

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

ClearNotificationsOK clear notifications o k

func NewClearNotificationsOK

func NewClearNotificationsOK() *ClearNotificationsOK

NewClearNotificationsOK creates a ClearNotificationsOK with default headers values

func (*ClearNotificationsOK) Code

func (o *ClearNotificationsOK) Code() int

Code gets the status code for the clear notifications o k response

func (*ClearNotificationsOK) Error

func (o *ClearNotificationsOK) Error() string

func (*ClearNotificationsOK) GetPayload

func (o *ClearNotificationsOK) GetPayload() interface{}

func (*ClearNotificationsOK) IsClientError

func (o *ClearNotificationsOK) IsClientError() bool

IsClientError returns true when this clear notifications o k response has a 4xx status code

func (*ClearNotificationsOK) IsCode

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

IsCode returns true when this clear notifications o k response a status code equal to that given

func (*ClearNotificationsOK) IsRedirect

func (o *ClearNotificationsOK) IsRedirect() bool

IsRedirect returns true when this clear notifications o k response has a 3xx status code

func (*ClearNotificationsOK) IsServerError

func (o *ClearNotificationsOK) IsServerError() bool

IsServerError returns true when this clear notifications o k response has a 5xx status code

func (*ClearNotificationsOK) IsSuccess

func (o *ClearNotificationsOK) IsSuccess() bool

IsSuccess returns true when this clear notifications o k response has a 2xx status code

func (*ClearNotificationsOK) String

func (o *ClearNotificationsOK) String() string

type ClearNotificationsParams

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

ClearNotificationsParams contains all the parameters to send to the API endpoint

for the clear notifications operation.

Typically these are written to a http.Request.

func NewClearNotificationsParams

func NewClearNotificationsParams() *ClearNotificationsParams

NewClearNotificationsParams creates a new ClearNotificationsParams 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 NewClearNotificationsParamsWithContext

func NewClearNotificationsParamsWithContext(ctx context.Context) *ClearNotificationsParams

NewClearNotificationsParamsWithContext creates a new ClearNotificationsParams object with the ability to set a context for a request.

func NewClearNotificationsParamsWithHTTPClient

func NewClearNotificationsParamsWithHTTPClient(client *http.Client) *ClearNotificationsParams

NewClearNotificationsParamsWithHTTPClient creates a new ClearNotificationsParams object with the ability to set a custom HTTPClient for a request.

func NewClearNotificationsParamsWithTimeout

func NewClearNotificationsParamsWithTimeout(timeout time.Duration) *ClearNotificationsParams

NewClearNotificationsParamsWithTimeout creates a new ClearNotificationsParams object with the ability to set a timeout on a request.

func (*ClearNotificationsParams) SetContext

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

SetContext adds the context to the clear notifications params

func (*ClearNotificationsParams) SetDefaults

func (o *ClearNotificationsParams) SetDefaults()

SetDefaults hydrates default values in the clear notifications params (not the query body).

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

func (*ClearNotificationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the clear notifications params

func (*ClearNotificationsParams) SetTimeout

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

SetTimeout adds the timeout to the clear notifications params

func (*ClearNotificationsParams) WithContext

WithContext adds the context to the clear notifications params

func (*ClearNotificationsParams) WithDefaults

WithDefaults hydrates default values in the clear notifications params (not the query body).

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

func (*ClearNotificationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the clear notifications params

func (*ClearNotificationsParams) WithTimeout

WithTimeout adds the timeout to the clear notifications params

func (*ClearNotificationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClearNotificationsReader

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

ClearNotificationsReader is a Reader for the ClearNotifications structure.

func (*ClearNotificationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ClearNotificationsUnauthorized

type ClearNotificationsUnauthorized struct {
}

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

unauthorized

func NewClearNotificationsUnauthorized

func NewClearNotificationsUnauthorized() *ClearNotificationsUnauthorized

NewClearNotificationsUnauthorized creates a ClearNotificationsUnauthorized with default headers values

func (*ClearNotificationsUnauthorized) Code

Code gets the status code for the clear notifications unauthorized response

func (*ClearNotificationsUnauthorized) Error

func (*ClearNotificationsUnauthorized) IsClientError

func (o *ClearNotificationsUnauthorized) IsClientError() bool

IsClientError returns true when this clear notifications unauthorized response has a 4xx status code

func (*ClearNotificationsUnauthorized) IsCode

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

IsCode returns true when this clear notifications unauthorized response a status code equal to that given

func (*ClearNotificationsUnauthorized) IsRedirect

func (o *ClearNotificationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this clear notifications unauthorized response has a 3xx status code

func (*ClearNotificationsUnauthorized) IsServerError

func (o *ClearNotificationsUnauthorized) IsServerError() bool

IsServerError returns true when this clear notifications unauthorized response has a 5xx status code

func (*ClearNotificationsUnauthorized) IsSuccess

func (o *ClearNotificationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this clear notifications unauthorized response has a 2xx status code

func (*ClearNotificationsUnauthorized) String

type Client

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

Client for notifications API

func (*Client) ClearNotifications

func (a *Client) ClearNotifications(params *ClearNotificationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClearNotificationsOK, error)

ClearNotifications clears delete all notifications for currently authorized user

Will return an empty object `{}` to indicate success.

func (*Client) Notification

func (a *Client) Notification(params *NotificationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotificationOK, error)

Notification gets a single notification with the given ID

func (*Client) Notifications

func (a *Client) Notifications(params *NotificationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotificationsOK, error)
Notifications gets notifications for currently authorized user

The notifications will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).

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

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {
	ClearNotifications(params *ClearNotificationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClearNotificationsOK, error)

	Notification(params *NotificationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotificationOK, error)

	Notifications(params *NotificationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NotificationsOK, 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 notifications API client.

func NewClientWithBasicAuth

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

New creates a new notifications 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 notifications 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 NotificationBadRequest

type NotificationBadRequest struct {
}

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

bad request

func NewNotificationBadRequest

func NewNotificationBadRequest() *NotificationBadRequest

NewNotificationBadRequest creates a NotificationBadRequest with default headers values

func (*NotificationBadRequest) Code

func (o *NotificationBadRequest) Code() int

Code gets the status code for the notification bad request response

func (*NotificationBadRequest) Error

func (o *NotificationBadRequest) Error() string

func (*NotificationBadRequest) IsClientError

func (o *NotificationBadRequest) IsClientError() bool

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

func (*NotificationBadRequest) IsCode

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

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

func (*NotificationBadRequest) IsRedirect

func (o *NotificationBadRequest) IsRedirect() bool

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

func (*NotificationBadRequest) IsServerError

func (o *NotificationBadRequest) IsServerError() bool

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

func (*NotificationBadRequest) IsSuccess

func (o *NotificationBadRequest) IsSuccess() bool

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

func (*NotificationBadRequest) String

func (o *NotificationBadRequest) String() string

type NotificationInternalServerError

type NotificationInternalServerError struct {
}

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

internal server error

func NewNotificationInternalServerError

func NewNotificationInternalServerError() *NotificationInternalServerError

NewNotificationInternalServerError creates a NotificationInternalServerError with default headers values

func (*NotificationInternalServerError) Code

Code gets the status code for the notification internal server error response

func (*NotificationInternalServerError) Error

func (*NotificationInternalServerError) IsClientError

func (o *NotificationInternalServerError) IsClientError() bool

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

func (*NotificationInternalServerError) IsCode

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

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

func (*NotificationInternalServerError) IsRedirect

func (o *NotificationInternalServerError) IsRedirect() bool

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

func (*NotificationInternalServerError) IsServerError

func (o *NotificationInternalServerError) IsServerError() bool

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

func (*NotificationInternalServerError) IsSuccess

func (o *NotificationInternalServerError) IsSuccess() bool

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

func (*NotificationInternalServerError) String

type NotificationNotAcceptable

type NotificationNotAcceptable struct {
}

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

not acceptable

func NewNotificationNotAcceptable

func NewNotificationNotAcceptable() *NotificationNotAcceptable

NewNotificationNotAcceptable creates a NotificationNotAcceptable with default headers values

func (*NotificationNotAcceptable) Code

func (o *NotificationNotAcceptable) Code() int

Code gets the status code for the notification not acceptable response

func (*NotificationNotAcceptable) Error

func (o *NotificationNotAcceptable) Error() string

func (*NotificationNotAcceptable) IsClientError

func (o *NotificationNotAcceptable) IsClientError() bool

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

func (*NotificationNotAcceptable) IsCode

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

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

func (*NotificationNotAcceptable) IsRedirect

func (o *NotificationNotAcceptable) IsRedirect() bool

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

func (*NotificationNotAcceptable) IsServerError

func (o *NotificationNotAcceptable) IsServerError() bool

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

func (*NotificationNotAcceptable) IsSuccess

func (o *NotificationNotAcceptable) IsSuccess() bool

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

func (*NotificationNotAcceptable) String

func (o *NotificationNotAcceptable) String() string

type NotificationNotFound

type NotificationNotFound struct {
}

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

not found

func NewNotificationNotFound

func NewNotificationNotFound() *NotificationNotFound

NewNotificationNotFound creates a NotificationNotFound with default headers values

func (*NotificationNotFound) Code

func (o *NotificationNotFound) Code() int

Code gets the status code for the notification not found response

func (*NotificationNotFound) Error

func (o *NotificationNotFound) Error() string

func (*NotificationNotFound) IsClientError

func (o *NotificationNotFound) IsClientError() bool

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

func (*NotificationNotFound) IsCode

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

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

func (*NotificationNotFound) IsRedirect

func (o *NotificationNotFound) IsRedirect() bool

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

func (*NotificationNotFound) IsServerError

func (o *NotificationNotFound) IsServerError() bool

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

func (*NotificationNotFound) IsSuccess

func (o *NotificationNotFound) IsSuccess() bool

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

func (*NotificationNotFound) String

func (o *NotificationNotFound) String() string

type NotificationOK

type NotificationOK struct {
	Payload *models.Notification
}

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

Requested notification.

func NewNotificationOK

func NewNotificationOK() *NotificationOK

NewNotificationOK creates a NotificationOK with default headers values

func (*NotificationOK) Code

func (o *NotificationOK) Code() int

Code gets the status code for the notification o k response

func (*NotificationOK) Error

func (o *NotificationOK) Error() string

func (*NotificationOK) GetPayload

func (o *NotificationOK) GetPayload() *models.Notification

func (*NotificationOK) IsClientError

func (o *NotificationOK) IsClientError() bool

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

func (*NotificationOK) IsCode

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

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

func (*NotificationOK) IsRedirect

func (o *NotificationOK) IsRedirect() bool

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

func (*NotificationOK) IsServerError

func (o *NotificationOK) IsServerError() bool

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

func (*NotificationOK) IsSuccess

func (o *NotificationOK) IsSuccess() bool

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

func (*NotificationOK) String

func (o *NotificationOK) String() string

type NotificationParams

type NotificationParams struct {

	/* ID.

	   The ID of the notification.
	*/
	ID string

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

NotificationParams contains all the parameters to send to the API endpoint

for the notification operation.

Typically these are written to a http.Request.

func NewNotificationParams

func NewNotificationParams() *NotificationParams

NewNotificationParams creates a new NotificationParams 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 NewNotificationParamsWithContext

func NewNotificationParamsWithContext(ctx context.Context) *NotificationParams

NewNotificationParamsWithContext creates a new NotificationParams object with the ability to set a context for a request.

func NewNotificationParamsWithHTTPClient

func NewNotificationParamsWithHTTPClient(client *http.Client) *NotificationParams

NewNotificationParamsWithHTTPClient creates a new NotificationParams object with the ability to set a custom HTTPClient for a request.

func NewNotificationParamsWithTimeout

func NewNotificationParamsWithTimeout(timeout time.Duration) *NotificationParams

NewNotificationParamsWithTimeout creates a new NotificationParams object with the ability to set a timeout on a request.

func (*NotificationParams) SetContext

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

SetContext adds the context to the notification params

func (*NotificationParams) SetDefaults

func (o *NotificationParams) SetDefaults()

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

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

func (*NotificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the notification params

func (*NotificationParams) SetID

func (o *NotificationParams) SetID(id string)

SetID adds the id to the notification params

func (*NotificationParams) SetTimeout

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

SetTimeout adds the timeout to the notification params

func (*NotificationParams) WithContext

WithContext adds the context to the notification params

func (*NotificationParams) WithDefaults

func (o *NotificationParams) WithDefaults() *NotificationParams

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

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

func (*NotificationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the notification params

func (*NotificationParams) WithID

WithID adds the id to the notification params

func (*NotificationParams) WithTimeout

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

WithTimeout adds the timeout to the notification params

func (*NotificationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NotificationReader

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

NotificationReader is a Reader for the Notification structure.

func (*NotificationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NotificationUnauthorized

type NotificationUnauthorized struct {
}

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

unauthorized

func NewNotificationUnauthorized

func NewNotificationUnauthorized() *NotificationUnauthorized

NewNotificationUnauthorized creates a NotificationUnauthorized with default headers values

func (*NotificationUnauthorized) Code

func (o *NotificationUnauthorized) Code() int

Code gets the status code for the notification unauthorized response

func (*NotificationUnauthorized) Error

func (o *NotificationUnauthorized) Error() string

func (*NotificationUnauthorized) IsClientError

func (o *NotificationUnauthorized) IsClientError() bool

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

func (*NotificationUnauthorized) IsCode

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

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

func (*NotificationUnauthorized) IsRedirect

func (o *NotificationUnauthorized) IsRedirect() bool

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

func (*NotificationUnauthorized) IsServerError

func (o *NotificationUnauthorized) IsServerError() bool

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

func (*NotificationUnauthorized) IsSuccess

func (o *NotificationUnauthorized) IsSuccess() bool

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

func (*NotificationUnauthorized) String

func (o *NotificationUnauthorized) String() string

type NotificationsBadRequest

type NotificationsBadRequest struct {
}

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

bad request

func NewNotificationsBadRequest

func NewNotificationsBadRequest() *NotificationsBadRequest

NewNotificationsBadRequest creates a NotificationsBadRequest with default headers values

func (*NotificationsBadRequest) Code

func (o *NotificationsBadRequest) Code() int

Code gets the status code for the notifications bad request response

func (*NotificationsBadRequest) Error

func (o *NotificationsBadRequest) Error() string

func (*NotificationsBadRequest) IsClientError

func (o *NotificationsBadRequest) IsClientError() bool

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

func (*NotificationsBadRequest) IsCode

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

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

func (*NotificationsBadRequest) IsRedirect

func (o *NotificationsBadRequest) IsRedirect() bool

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

func (*NotificationsBadRequest) IsServerError

func (o *NotificationsBadRequest) IsServerError() bool

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

func (*NotificationsBadRequest) IsSuccess

func (o *NotificationsBadRequest) IsSuccess() bool

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

func (*NotificationsBadRequest) String

func (o *NotificationsBadRequest) String() string

type NotificationsInternalServerError

type NotificationsInternalServerError struct {
}

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

internal server error

func NewNotificationsInternalServerError

func NewNotificationsInternalServerError() *NotificationsInternalServerError

NewNotificationsInternalServerError creates a NotificationsInternalServerError with default headers values

func (*NotificationsInternalServerError) Code

Code gets the status code for the notifications internal server error response

func (*NotificationsInternalServerError) Error

func (*NotificationsInternalServerError) IsClientError

func (o *NotificationsInternalServerError) IsClientError() bool

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

func (*NotificationsInternalServerError) IsCode

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

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

func (*NotificationsInternalServerError) IsRedirect

func (o *NotificationsInternalServerError) IsRedirect() bool

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

func (*NotificationsInternalServerError) IsServerError

func (o *NotificationsInternalServerError) IsServerError() bool

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

func (*NotificationsInternalServerError) IsSuccess

func (o *NotificationsInternalServerError) IsSuccess() bool

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

func (*NotificationsInternalServerError) String

type NotificationsNotAcceptable

type NotificationsNotAcceptable struct {
}

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

not acceptable

func NewNotificationsNotAcceptable

func NewNotificationsNotAcceptable() *NotificationsNotAcceptable

NewNotificationsNotAcceptable creates a NotificationsNotAcceptable with default headers values

func (*NotificationsNotAcceptable) Code

func (o *NotificationsNotAcceptable) Code() int

Code gets the status code for the notifications not acceptable response

func (*NotificationsNotAcceptable) Error

func (*NotificationsNotAcceptable) IsClientError

func (o *NotificationsNotAcceptable) IsClientError() bool

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

func (*NotificationsNotAcceptable) IsCode

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

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

func (*NotificationsNotAcceptable) IsRedirect

func (o *NotificationsNotAcceptable) IsRedirect() bool

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

func (*NotificationsNotAcceptable) IsServerError

func (o *NotificationsNotAcceptable) IsServerError() bool

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

func (*NotificationsNotAcceptable) IsSuccess

func (o *NotificationsNotAcceptable) IsSuccess() bool

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

func (*NotificationsNotAcceptable) String

func (o *NotificationsNotAcceptable) String() string

type NotificationsNotFound

type NotificationsNotFound struct {
}

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

not found

func NewNotificationsNotFound

func NewNotificationsNotFound() *NotificationsNotFound

NewNotificationsNotFound creates a NotificationsNotFound with default headers values

func (*NotificationsNotFound) Code

func (o *NotificationsNotFound) Code() int

Code gets the status code for the notifications not found response

func (*NotificationsNotFound) Error

func (o *NotificationsNotFound) Error() string

func (*NotificationsNotFound) IsClientError

func (o *NotificationsNotFound) IsClientError() bool

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

func (*NotificationsNotFound) IsCode

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

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

func (*NotificationsNotFound) IsRedirect

func (o *NotificationsNotFound) IsRedirect() bool

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

func (*NotificationsNotFound) IsServerError

func (o *NotificationsNotFound) IsServerError() bool

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

func (*NotificationsNotFound) IsSuccess

func (o *NotificationsNotFound) IsSuccess() bool

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

func (*NotificationsNotFound) String

func (o *NotificationsNotFound) String() string

type NotificationsOK

type NotificationsOK struct {

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

	Payload []*models.Notification
}

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

Array of notifications.

func NewNotificationsOK

func NewNotificationsOK() *NotificationsOK

NewNotificationsOK creates a NotificationsOK with default headers values

func (*NotificationsOK) Code

func (o *NotificationsOK) Code() int

Code gets the status code for the notifications o k response

func (*NotificationsOK) Error

func (o *NotificationsOK) Error() string

func (*NotificationsOK) GetPayload

func (o *NotificationsOK) GetPayload() []*models.Notification

func (*NotificationsOK) IsClientError

func (o *NotificationsOK) IsClientError() bool

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

func (*NotificationsOK) IsCode

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

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

func (*NotificationsOK) IsRedirect

func (o *NotificationsOK) IsRedirect() bool

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

func (*NotificationsOK) IsServerError

func (o *NotificationsOK) IsServerError() bool

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

func (*NotificationsOK) IsSuccess

func (o *NotificationsOK) IsSuccess() bool

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

func (*NotificationsOK) String

func (o *NotificationsOK) String() string

type NotificationsParams

type NotificationsParams struct {

	/* ExcludeTypes.

	   Types of notifications to exclude.
	*/
	ExcludeTypes []string

	/* Limit.

	   Number of notifications to return.

	   Default: 20
	*/
	Limit *int64

	/* MaxID.

	   Return only notifications *OLDER* than the given max notification ID. The notification with the specified ID will not be included in the response.
	*/
	MaxID *string

	/* MinID.

	   Return only notifications *immediately newer* than the given since notification ID. The notification with the specified ID will not be included in the response.
	*/
	MinID *string

	/* SinceID.

	   Return only notifications *newer* than the given since notification ID. The notification with the specified ID will not be included in the response.
	*/
	SinceID *string

	/* Types.

	   Types of notifications to include. If not provided, all notification types will be included.
	*/
	Types []string

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

NotificationsParams contains all the parameters to send to the API endpoint

for the notifications operation.

Typically these are written to a http.Request.

func NewNotificationsParams

func NewNotificationsParams() *NotificationsParams

NewNotificationsParams creates a new NotificationsParams 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 NewNotificationsParamsWithContext

func NewNotificationsParamsWithContext(ctx context.Context) *NotificationsParams

NewNotificationsParamsWithContext creates a new NotificationsParams object with the ability to set a context for a request.

func NewNotificationsParamsWithHTTPClient

func NewNotificationsParamsWithHTTPClient(client *http.Client) *NotificationsParams

NewNotificationsParamsWithHTTPClient creates a new NotificationsParams object with the ability to set a custom HTTPClient for a request.

func NewNotificationsParamsWithTimeout

func NewNotificationsParamsWithTimeout(timeout time.Duration) *NotificationsParams

NewNotificationsParamsWithTimeout creates a new NotificationsParams object with the ability to set a timeout on a request.

func (*NotificationsParams) SetContext

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

SetContext adds the context to the notifications params

func (*NotificationsParams) SetDefaults

func (o *NotificationsParams) SetDefaults()

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

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

func (*NotificationsParams) SetExcludeTypes

func (o *NotificationsParams) SetExcludeTypes(excludeTypes []string)

SetExcludeTypes adds the excludeTypes to the notifications params

func (*NotificationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the notifications params

func (*NotificationsParams) SetLimit

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

SetLimit adds the limit to the notifications params

func (*NotificationsParams) SetMaxID

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

SetMaxID adds the maxId to the notifications params

func (*NotificationsParams) SetMinID

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

SetMinID adds the minId to the notifications params

func (*NotificationsParams) SetSinceID

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

SetSinceID adds the sinceId to the notifications params

func (*NotificationsParams) SetTimeout

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

SetTimeout adds the timeout to the notifications params

func (*NotificationsParams) SetTypes

func (o *NotificationsParams) SetTypes(types []string)

SetTypes adds the types to the notifications params

func (*NotificationsParams) WithContext

WithContext adds the context to the notifications params

func (*NotificationsParams) WithDefaults

func (o *NotificationsParams) WithDefaults() *NotificationsParams

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

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

func (*NotificationsParams) WithExcludeTypes

func (o *NotificationsParams) WithExcludeTypes(excludeTypes []string) *NotificationsParams

WithExcludeTypes adds the excludeTypes to the notifications params

func (*NotificationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the notifications params

func (*NotificationsParams) WithLimit

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

WithLimit adds the limit to the notifications params

func (*NotificationsParams) WithMaxID

func (o *NotificationsParams) WithMaxID(maxID *string) *NotificationsParams

WithMaxID adds the maxID to the notifications params

func (*NotificationsParams) WithMinID

func (o *NotificationsParams) WithMinID(minID *string) *NotificationsParams

WithMinID adds the minID to the notifications params

func (*NotificationsParams) WithSinceID

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

WithSinceID adds the sinceID to the notifications params

func (*NotificationsParams) WithTimeout

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

WithTimeout adds the timeout to the notifications params

func (*NotificationsParams) WithTypes

func (o *NotificationsParams) WithTypes(types []string) *NotificationsParams

WithTypes adds the types to the notifications params

func (*NotificationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type NotificationsReader

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

NotificationsReader is a Reader for the Notifications structure.

func (*NotificationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type NotificationsUnauthorized

type NotificationsUnauthorized struct {
}

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

unauthorized

func NewNotificationsUnauthorized

func NewNotificationsUnauthorized() *NotificationsUnauthorized

NewNotificationsUnauthorized creates a NotificationsUnauthorized with default headers values

func (*NotificationsUnauthorized) Code

func (o *NotificationsUnauthorized) Code() int

Code gets the status code for the notifications unauthorized response

func (*NotificationsUnauthorized) Error

func (o *NotificationsUnauthorized) Error() string

func (*NotificationsUnauthorized) IsClientError

func (o *NotificationsUnauthorized) IsClientError() bool

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

func (*NotificationsUnauthorized) IsCode

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

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

func (*NotificationsUnauthorized) IsRedirect

func (o *NotificationsUnauthorized) IsRedirect() bool

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

func (*NotificationsUnauthorized) IsServerError

func (o *NotificationsUnauthorized) IsServerError() bool

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

func (*NotificationsUnauthorized) IsSuccess

func (o *NotificationsUnauthorized) IsSuccess() bool

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

func (*NotificationsUnauthorized) String

func (o *NotificationsUnauthorized) String() string

Jump to

Keyboard shortcuts

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