notifier

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for notifier API

func (*Client) CreateNotifier

func (a *Client) CreateNotifier(params *CreateNotifierParams, opts ...ClientOption) (*CreateNotifierOK, error)

CreateNotifier create notifier API

func (*Client) DeleteNotifier

func (a *Client) DeleteNotifier(params *DeleteNotifierParams, opts ...ClientOption) (*DeleteNotifierOK, error)

DeleteNotifier delete notifier API

func (*Client) ListNotifiers

func (a *Client) ListNotifiers(params *ListNotifiersParams, opts ...ClientOption) (*ListNotifiersOK, error)

ListNotifiers list notifiers API

func (*Client) ReadNotifier

func (a *Client) ReadNotifier(params *ReadNotifierParams, opts ...ClientOption) (*ReadNotifierOK, error)

ReadNotifier read notifier API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateNotifier

func (a *Client) UpdateNotifier(params *UpdateNotifierParams, opts ...ClientOption) (*UpdateNotifierOK, error)

UpdateNotifier update notifier API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateNotifier(params *CreateNotifierParams, opts ...ClientOption) (*CreateNotifierOK, error)

	DeleteNotifier(params *DeleteNotifierParams, opts ...ClientOption) (*DeleteNotifierOK, error)

	ListNotifiers(params *ListNotifiersParams, opts ...ClientOption) (*ListNotifiersOK, error)

	ReadNotifier(params *ReadNotifierParams, opts ...ClientOption) (*ReadNotifierOK, error)

	UpdateNotifier(params *UpdateNotifierParams, opts ...ClientOption) (*UpdateNotifierOK, 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 notifier API client.

type CreateNotifierBadRequest

type CreateNotifierBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the Notifier because the request is invalid.

func NewCreateNotifierBadRequest

func NewCreateNotifierBadRequest() *CreateNotifierBadRequest

NewCreateNotifierBadRequest creates a CreateNotifierBadRequest with default headers values

func (*CreateNotifierBadRequest) Code

func (o *CreateNotifierBadRequest) Code() int

Code gets the status code for the create notifier bad request response

func (*CreateNotifierBadRequest) Error

func (o *CreateNotifierBadRequest) Error() string

func (*CreateNotifierBadRequest) GetPayload

func (o *CreateNotifierBadRequest) GetPayload() *models.APIError

func (*CreateNotifierBadRequest) IsClientError

func (o *CreateNotifierBadRequest) IsClientError() bool

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

func (*CreateNotifierBadRequest) IsCode

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

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

func (*CreateNotifierBadRequest) IsRedirect

func (o *CreateNotifierBadRequest) IsRedirect() bool

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

func (*CreateNotifierBadRequest) IsServerError

func (o *CreateNotifierBadRequest) IsServerError() bool

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

func (*CreateNotifierBadRequest) IsSuccess

func (o *CreateNotifierBadRequest) IsSuccess() bool

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

func (*CreateNotifierBadRequest) String

func (o *CreateNotifierBadRequest) String() string

type CreateNotifierConflict

type CreateNotifierConflict struct {
	Payload *models.APIError
}

CreateNotifierConflict describes a response with status code 409, with default header values.

Cannot create the Notifier because there is a conflict with an existing Notifier.

func NewCreateNotifierConflict

func NewCreateNotifierConflict() *CreateNotifierConflict

NewCreateNotifierConflict creates a CreateNotifierConflict with default headers values

func (*CreateNotifierConflict) Code

func (o *CreateNotifierConflict) Code() int

Code gets the status code for the create notifier conflict response

func (*CreateNotifierConflict) Error

func (o *CreateNotifierConflict) Error() string

func (*CreateNotifierConflict) GetPayload

func (o *CreateNotifierConflict) GetPayload() *models.APIError

func (*CreateNotifierConflict) IsClientError

func (o *CreateNotifierConflict) IsClientError() bool

IsClientError returns true when this create notifier conflict response has a 4xx status code

func (*CreateNotifierConflict) IsCode

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

IsCode returns true when this create notifier conflict response a status code equal to that given

func (*CreateNotifierConflict) IsRedirect

func (o *CreateNotifierConflict) IsRedirect() bool

IsRedirect returns true when this create notifier conflict response has a 3xx status code

func (*CreateNotifierConflict) IsServerError

func (o *CreateNotifierConflict) IsServerError() bool

IsServerError returns true when this create notifier conflict response has a 5xx status code

func (*CreateNotifierConflict) IsSuccess

func (o *CreateNotifierConflict) IsSuccess() bool

IsSuccess returns true when this create notifier conflict response has a 2xx status code

func (*CreateNotifierConflict) String

func (o *CreateNotifierConflict) String() string

type CreateNotifierDefault

type CreateNotifierDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateNotifierDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateNotifierDefault

func NewCreateNotifierDefault(code int) *CreateNotifierDefault

NewCreateNotifierDefault creates a CreateNotifierDefault with default headers values

func (*CreateNotifierDefault) Code

func (o *CreateNotifierDefault) Code() int

Code gets the status code for the create notifier default response

func (*CreateNotifierDefault) Error

func (o *CreateNotifierDefault) Error() string

func (*CreateNotifierDefault) GetPayload

func (o *CreateNotifierDefault) GetPayload() models.GenericError

func (*CreateNotifierDefault) IsClientError

func (o *CreateNotifierDefault) IsClientError() bool

IsClientError returns true when this create notifier default response has a 4xx status code

func (*CreateNotifierDefault) IsCode

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

IsCode returns true when this create notifier default response a status code equal to that given

func (*CreateNotifierDefault) IsRedirect

func (o *CreateNotifierDefault) IsRedirect() bool

IsRedirect returns true when this create notifier default response has a 3xx status code

func (*CreateNotifierDefault) IsServerError

func (o *CreateNotifierDefault) IsServerError() bool

IsServerError returns true when this create notifier default response has a 5xx status code

func (*CreateNotifierDefault) IsSuccess

func (o *CreateNotifierDefault) IsSuccess() bool

IsSuccess returns true when this create notifier default response has a 2xx status code

func (*CreateNotifierDefault) String

func (o *CreateNotifierDefault) String() string

type CreateNotifierInternalServerError

type CreateNotifierInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateNotifierInternalServerError

func NewCreateNotifierInternalServerError() *CreateNotifierInternalServerError

NewCreateNotifierInternalServerError creates a CreateNotifierInternalServerError with default headers values

func (*CreateNotifierInternalServerError) Code

Code gets the status code for the create notifier internal server error response

func (*CreateNotifierInternalServerError) Error

func (*CreateNotifierInternalServerError) GetPayload

func (*CreateNotifierInternalServerError) IsClientError

func (o *CreateNotifierInternalServerError) IsClientError() bool

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

func (*CreateNotifierInternalServerError) IsCode

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

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

func (*CreateNotifierInternalServerError) IsRedirect

func (o *CreateNotifierInternalServerError) IsRedirect() bool

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

func (*CreateNotifierInternalServerError) IsServerError

func (o *CreateNotifierInternalServerError) IsServerError() bool

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

func (*CreateNotifierInternalServerError) IsSuccess

func (o *CreateNotifierInternalServerError) IsSuccess() bool

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

func (*CreateNotifierInternalServerError) String

type CreateNotifierOK

type CreateNotifierOK struct {
	Payload *models.Configv1CreateNotifierResponse
}

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

A successful response containing the created Notifier.

func NewCreateNotifierOK

func NewCreateNotifierOK() *CreateNotifierOK

NewCreateNotifierOK creates a CreateNotifierOK with default headers values

func (*CreateNotifierOK) Code

func (o *CreateNotifierOK) Code() int

Code gets the status code for the create notifier o k response

func (*CreateNotifierOK) Error

func (o *CreateNotifierOK) Error() string

func (*CreateNotifierOK) GetPayload

func (*CreateNotifierOK) IsClientError

func (o *CreateNotifierOK) IsClientError() bool

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

func (*CreateNotifierOK) IsCode

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

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

func (*CreateNotifierOK) IsRedirect

func (o *CreateNotifierOK) IsRedirect() bool

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

func (*CreateNotifierOK) IsServerError

func (o *CreateNotifierOK) IsServerError() bool

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

func (*CreateNotifierOK) IsSuccess

func (o *CreateNotifierOK) IsSuccess() bool

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

func (*CreateNotifierOK) String

func (o *CreateNotifierOK) String() string

type CreateNotifierParams

type CreateNotifierParams struct {

	// Body.
	Body *models.Configv1CreateNotifierRequest

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

CreateNotifierParams contains all the parameters to send to the API endpoint

for the create notifier operation.

Typically these are written to a http.Request.

func NewCreateNotifierParams

func NewCreateNotifierParams() *CreateNotifierParams

NewCreateNotifierParams creates a new CreateNotifierParams 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 NewCreateNotifierParamsWithContext

func NewCreateNotifierParamsWithContext(ctx context.Context) *CreateNotifierParams

NewCreateNotifierParamsWithContext creates a new CreateNotifierParams object with the ability to set a context for a request.

func NewCreateNotifierParamsWithHTTPClient

func NewCreateNotifierParamsWithHTTPClient(client *http.Client) *CreateNotifierParams

NewCreateNotifierParamsWithHTTPClient creates a new CreateNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNotifierParamsWithTimeout

func NewCreateNotifierParamsWithTimeout(timeout time.Duration) *CreateNotifierParams

NewCreateNotifierParamsWithTimeout creates a new CreateNotifierParams object with the ability to set a timeout on a request.

func (*CreateNotifierParams) SetBody

SetBody adds the body to the create notifier params

func (*CreateNotifierParams) SetContext

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

SetContext adds the context to the create notifier params

func (*CreateNotifierParams) SetDefaults

func (o *CreateNotifierParams) SetDefaults()

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

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

func (*CreateNotifierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create notifier params

func (*CreateNotifierParams) SetTimeout

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

SetTimeout adds the timeout to the create notifier params

func (*CreateNotifierParams) WithBody

WithBody adds the body to the create notifier params

func (*CreateNotifierParams) WithContext

WithContext adds the context to the create notifier params

func (*CreateNotifierParams) WithDefaults

func (o *CreateNotifierParams) WithDefaults() *CreateNotifierParams

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

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

func (*CreateNotifierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create notifier params

func (*CreateNotifierParams) WithTimeout

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

WithTimeout adds the timeout to the create notifier params

func (*CreateNotifierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateNotifierReader

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

CreateNotifierReader is a Reader for the CreateNotifier structure.

func (*CreateNotifierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNotifierBadRequest

type DeleteNotifierBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the Notifier because it is in use.

func NewDeleteNotifierBadRequest

func NewDeleteNotifierBadRequest() *DeleteNotifierBadRequest

NewDeleteNotifierBadRequest creates a DeleteNotifierBadRequest with default headers values

func (*DeleteNotifierBadRequest) Code

func (o *DeleteNotifierBadRequest) Code() int

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

func (*DeleteNotifierBadRequest) Error

func (o *DeleteNotifierBadRequest) Error() string

func (*DeleteNotifierBadRequest) GetPayload

func (o *DeleteNotifierBadRequest) GetPayload() *models.APIError

func (*DeleteNotifierBadRequest) IsClientError

func (o *DeleteNotifierBadRequest) IsClientError() bool

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

func (*DeleteNotifierBadRequest) IsCode

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

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

func (*DeleteNotifierBadRequest) IsRedirect

func (o *DeleteNotifierBadRequest) IsRedirect() bool

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

func (*DeleteNotifierBadRequest) IsServerError

func (o *DeleteNotifierBadRequest) IsServerError() bool

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

func (*DeleteNotifierBadRequest) IsSuccess

func (o *DeleteNotifierBadRequest) IsSuccess() bool

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

func (*DeleteNotifierBadRequest) String

func (o *DeleteNotifierBadRequest) String() string

type DeleteNotifierDefault

type DeleteNotifierDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteNotifierDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteNotifierDefault

func NewDeleteNotifierDefault(code int) *DeleteNotifierDefault

NewDeleteNotifierDefault creates a DeleteNotifierDefault with default headers values

func (*DeleteNotifierDefault) Code

func (o *DeleteNotifierDefault) Code() int

Code gets the status code for the delete notifier default response

func (*DeleteNotifierDefault) Error

func (o *DeleteNotifierDefault) Error() string

func (*DeleteNotifierDefault) GetPayload

func (o *DeleteNotifierDefault) GetPayload() models.GenericError

func (*DeleteNotifierDefault) IsClientError

func (o *DeleteNotifierDefault) IsClientError() bool

IsClientError returns true when this delete notifier default response has a 4xx status code

func (*DeleteNotifierDefault) IsCode

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

IsCode returns true when this delete notifier default response a status code equal to that given

func (*DeleteNotifierDefault) IsRedirect

func (o *DeleteNotifierDefault) IsRedirect() bool

IsRedirect returns true when this delete notifier default response has a 3xx status code

func (*DeleteNotifierDefault) IsServerError

func (o *DeleteNotifierDefault) IsServerError() bool

IsServerError returns true when this delete notifier default response has a 5xx status code

func (*DeleteNotifierDefault) IsSuccess

func (o *DeleteNotifierDefault) IsSuccess() bool

IsSuccess returns true when this delete notifier default response has a 2xx status code

func (*DeleteNotifierDefault) String

func (o *DeleteNotifierDefault) String() string

type DeleteNotifierInternalServerError

type DeleteNotifierInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteNotifierInternalServerError

func NewDeleteNotifierInternalServerError() *DeleteNotifierInternalServerError

NewDeleteNotifierInternalServerError creates a DeleteNotifierInternalServerError with default headers values

func (*DeleteNotifierInternalServerError) Code

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

func (*DeleteNotifierInternalServerError) Error

func (*DeleteNotifierInternalServerError) GetPayload

func (*DeleteNotifierInternalServerError) IsClientError

func (o *DeleteNotifierInternalServerError) IsClientError() bool

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

func (*DeleteNotifierInternalServerError) IsCode

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

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

func (*DeleteNotifierInternalServerError) IsRedirect

func (o *DeleteNotifierInternalServerError) IsRedirect() bool

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

func (*DeleteNotifierInternalServerError) IsServerError

func (o *DeleteNotifierInternalServerError) IsServerError() bool

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

func (*DeleteNotifierInternalServerError) IsSuccess

func (o *DeleteNotifierInternalServerError) IsSuccess() bool

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

func (*DeleteNotifierInternalServerError) String

type DeleteNotifierNotFound

type DeleteNotifierNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the Notifier because the slug does not exist.

func NewDeleteNotifierNotFound

func NewDeleteNotifierNotFound() *DeleteNotifierNotFound

NewDeleteNotifierNotFound creates a DeleteNotifierNotFound with default headers values

func (*DeleteNotifierNotFound) Code

func (o *DeleteNotifierNotFound) Code() int

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

func (*DeleteNotifierNotFound) Error

func (o *DeleteNotifierNotFound) Error() string

func (*DeleteNotifierNotFound) GetPayload

func (o *DeleteNotifierNotFound) GetPayload() *models.APIError

func (*DeleteNotifierNotFound) IsClientError

func (o *DeleteNotifierNotFound) IsClientError() bool

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

func (*DeleteNotifierNotFound) IsCode

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

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

func (*DeleteNotifierNotFound) IsRedirect

func (o *DeleteNotifierNotFound) IsRedirect() bool

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

func (*DeleteNotifierNotFound) IsServerError

func (o *DeleteNotifierNotFound) IsServerError() bool

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

func (*DeleteNotifierNotFound) IsSuccess

func (o *DeleteNotifierNotFound) IsSuccess() bool

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

func (*DeleteNotifierNotFound) String

func (o *DeleteNotifierNotFound) String() string

type DeleteNotifierOK

type DeleteNotifierOK struct {
	Payload models.Configv1DeleteNotifierResponse
}

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

A successful response.

func NewDeleteNotifierOK

func NewDeleteNotifierOK() *DeleteNotifierOK

NewDeleteNotifierOK creates a DeleteNotifierOK with default headers values

func (*DeleteNotifierOK) Code

func (o *DeleteNotifierOK) Code() int

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

func (*DeleteNotifierOK) Error

func (o *DeleteNotifierOK) Error() string

func (*DeleteNotifierOK) GetPayload

func (*DeleteNotifierOK) IsClientError

func (o *DeleteNotifierOK) IsClientError() bool

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

func (*DeleteNotifierOK) IsCode

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

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

func (*DeleteNotifierOK) IsRedirect

func (o *DeleteNotifierOK) IsRedirect() bool

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

func (*DeleteNotifierOK) IsServerError

func (o *DeleteNotifierOK) IsServerError() bool

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

func (*DeleteNotifierOK) IsSuccess

func (o *DeleteNotifierOK) IsSuccess() bool

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

func (*DeleteNotifierOK) String

func (o *DeleteNotifierOK) String() string

type DeleteNotifierParams

type DeleteNotifierParams struct {

	// Slug.
	Slug string

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

DeleteNotifierParams contains all the parameters to send to the API endpoint

for the delete notifier operation.

Typically these are written to a http.Request.

func NewDeleteNotifierParams

func NewDeleteNotifierParams() *DeleteNotifierParams

NewDeleteNotifierParams creates a new DeleteNotifierParams 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 NewDeleteNotifierParamsWithContext

func NewDeleteNotifierParamsWithContext(ctx context.Context) *DeleteNotifierParams

NewDeleteNotifierParamsWithContext creates a new DeleteNotifierParams object with the ability to set a context for a request.

func NewDeleteNotifierParamsWithHTTPClient

func NewDeleteNotifierParamsWithHTTPClient(client *http.Client) *DeleteNotifierParams

NewDeleteNotifierParamsWithHTTPClient creates a new DeleteNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNotifierParamsWithTimeout

func NewDeleteNotifierParamsWithTimeout(timeout time.Duration) *DeleteNotifierParams

NewDeleteNotifierParamsWithTimeout creates a new DeleteNotifierParams object with the ability to set a timeout on a request.

func (*DeleteNotifierParams) SetContext

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

SetContext adds the context to the delete notifier params

func (*DeleteNotifierParams) SetDefaults

func (o *DeleteNotifierParams) SetDefaults()

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

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

func (*DeleteNotifierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete notifier params

func (*DeleteNotifierParams) SetSlug

func (o *DeleteNotifierParams) SetSlug(slug string)

SetSlug adds the slug to the delete notifier params

func (*DeleteNotifierParams) SetTimeout

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

SetTimeout adds the timeout to the delete notifier params

func (*DeleteNotifierParams) WithContext

WithContext adds the context to the delete notifier params

func (*DeleteNotifierParams) WithDefaults

func (o *DeleteNotifierParams) WithDefaults() *DeleteNotifierParams

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

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

func (*DeleteNotifierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete notifier params

func (*DeleteNotifierParams) WithSlug

WithSlug adds the slug to the delete notifier params

func (*DeleteNotifierParams) WithTimeout

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

WithTimeout adds the timeout to the delete notifier params

func (*DeleteNotifierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteNotifierReader

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

DeleteNotifierReader is a Reader for the DeleteNotifier structure.

func (*DeleteNotifierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListNotifiersDefault

type ListNotifiersDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListNotifiersDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListNotifiersDefault

func NewListNotifiersDefault(code int) *ListNotifiersDefault

NewListNotifiersDefault creates a ListNotifiersDefault with default headers values

func (*ListNotifiersDefault) Code

func (o *ListNotifiersDefault) Code() int

Code gets the status code for the list notifiers default response

func (*ListNotifiersDefault) Error

func (o *ListNotifiersDefault) Error() string

func (*ListNotifiersDefault) GetPayload

func (o *ListNotifiersDefault) GetPayload() models.GenericError

func (*ListNotifiersDefault) IsClientError

func (o *ListNotifiersDefault) IsClientError() bool

IsClientError returns true when this list notifiers default response has a 4xx status code

func (*ListNotifiersDefault) IsCode

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

IsCode returns true when this list notifiers default response a status code equal to that given

func (*ListNotifiersDefault) IsRedirect

func (o *ListNotifiersDefault) IsRedirect() bool

IsRedirect returns true when this list notifiers default response has a 3xx status code

func (*ListNotifiersDefault) IsServerError

func (o *ListNotifiersDefault) IsServerError() bool

IsServerError returns true when this list notifiers default response has a 5xx status code

func (*ListNotifiersDefault) IsSuccess

func (o *ListNotifiersDefault) IsSuccess() bool

IsSuccess returns true when this list notifiers default response has a 2xx status code

func (*ListNotifiersDefault) String

func (o *ListNotifiersDefault) String() string

type ListNotifiersInternalServerError

type ListNotifiersInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListNotifiersInternalServerError

func NewListNotifiersInternalServerError() *ListNotifiersInternalServerError

NewListNotifiersInternalServerError creates a ListNotifiersInternalServerError with default headers values

func (*ListNotifiersInternalServerError) Code

Code gets the status code for the list notifiers internal server error response

func (*ListNotifiersInternalServerError) Error

func (*ListNotifiersInternalServerError) GetPayload

func (*ListNotifiersInternalServerError) IsClientError

func (o *ListNotifiersInternalServerError) IsClientError() bool

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

func (*ListNotifiersInternalServerError) IsCode

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

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

func (*ListNotifiersInternalServerError) IsRedirect

func (o *ListNotifiersInternalServerError) IsRedirect() bool

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

func (*ListNotifiersInternalServerError) IsServerError

func (o *ListNotifiersInternalServerError) IsServerError() bool

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

func (*ListNotifiersInternalServerError) IsSuccess

func (o *ListNotifiersInternalServerError) IsSuccess() bool

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

func (*ListNotifiersInternalServerError) String

type ListNotifiersOK

type ListNotifiersOK struct {
	Payload *models.Configv1ListNotifiersResponse
}

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

A successful response.

func NewListNotifiersOK

func NewListNotifiersOK() *ListNotifiersOK

NewListNotifiersOK creates a ListNotifiersOK with default headers values

func (*ListNotifiersOK) Code

func (o *ListNotifiersOK) Code() int

Code gets the status code for the list notifiers o k response

func (*ListNotifiersOK) Error

func (o *ListNotifiersOK) Error() string

func (*ListNotifiersOK) GetPayload

func (*ListNotifiersOK) IsClientError

func (o *ListNotifiersOK) IsClientError() bool

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

func (*ListNotifiersOK) IsCode

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

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

func (*ListNotifiersOK) IsRedirect

func (o *ListNotifiersOK) IsRedirect() bool

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

func (*ListNotifiersOK) IsServerError

func (o *ListNotifiersOK) IsServerError() bool

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

func (*ListNotifiersOK) IsSuccess

func (o *ListNotifiersOK) IsSuccess() bool

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

func (*ListNotifiersOK) String

func (o *ListNotifiersOK) String() string

type ListNotifiersParams

type ListNotifiersParams struct {

	/* Names.

	   Filters results by name, where any Notifier with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any Notifier with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListNotifiersParams contains all the parameters to send to the API endpoint

for the list notifiers operation.

Typically these are written to a http.Request.

func NewListNotifiersParams

func NewListNotifiersParams() *ListNotifiersParams

NewListNotifiersParams creates a new ListNotifiersParams 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 NewListNotifiersParamsWithContext

func NewListNotifiersParamsWithContext(ctx context.Context) *ListNotifiersParams

NewListNotifiersParamsWithContext creates a new ListNotifiersParams object with the ability to set a context for a request.

func NewListNotifiersParamsWithHTTPClient

func NewListNotifiersParamsWithHTTPClient(client *http.Client) *ListNotifiersParams

NewListNotifiersParamsWithHTTPClient creates a new ListNotifiersParams object with the ability to set a custom HTTPClient for a request.

func NewListNotifiersParamsWithTimeout

func NewListNotifiersParamsWithTimeout(timeout time.Duration) *ListNotifiersParams

NewListNotifiersParamsWithTimeout creates a new ListNotifiersParams object with the ability to set a timeout on a request.

func (*ListNotifiersParams) SetContext

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

SetContext adds the context to the list notifiers params

func (*ListNotifiersParams) SetDefaults

func (o *ListNotifiersParams) SetDefaults()

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

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

func (*ListNotifiersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list notifiers params

func (*ListNotifiersParams) SetNames

func (o *ListNotifiersParams) SetNames(names []string)

SetNames adds the names to the list notifiers params

func (*ListNotifiersParams) SetPageMaxSize

func (o *ListNotifiersParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list notifiers params

func (*ListNotifiersParams) SetPageToken

func (o *ListNotifiersParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list notifiers params

func (*ListNotifiersParams) SetSlugs

func (o *ListNotifiersParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list notifiers params

func (*ListNotifiersParams) SetTimeout

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

SetTimeout adds the timeout to the list notifiers params

func (*ListNotifiersParams) WithContext

WithContext adds the context to the list notifiers params

func (*ListNotifiersParams) WithDefaults

func (o *ListNotifiersParams) WithDefaults() *ListNotifiersParams

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

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

func (*ListNotifiersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list notifiers params

func (*ListNotifiersParams) WithNames

func (o *ListNotifiersParams) WithNames(names []string) *ListNotifiersParams

WithNames adds the names to the list notifiers params

func (*ListNotifiersParams) WithPageMaxSize

func (o *ListNotifiersParams) WithPageMaxSize(pageMaxSize *int64) *ListNotifiersParams

WithPageMaxSize adds the pageMaxSize to the list notifiers params

func (*ListNotifiersParams) WithPageToken

func (o *ListNotifiersParams) WithPageToken(pageToken *string) *ListNotifiersParams

WithPageToken adds the pageToken to the list notifiers params

func (*ListNotifiersParams) WithSlugs

func (o *ListNotifiersParams) WithSlugs(slugs []string) *ListNotifiersParams

WithSlugs adds the slugs to the list notifiers params

func (*ListNotifiersParams) WithTimeout

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

WithTimeout adds the timeout to the list notifiers params

func (*ListNotifiersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListNotifiersReader

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

ListNotifiersReader is a Reader for the ListNotifiers structure.

func (*ListNotifiersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadNotifierDefault

type ReadNotifierDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadNotifierDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadNotifierDefault

func NewReadNotifierDefault(code int) *ReadNotifierDefault

NewReadNotifierDefault creates a ReadNotifierDefault with default headers values

func (*ReadNotifierDefault) Code

func (o *ReadNotifierDefault) Code() int

Code gets the status code for the read notifier default response

func (*ReadNotifierDefault) Error

func (o *ReadNotifierDefault) Error() string

func (*ReadNotifierDefault) GetPayload

func (o *ReadNotifierDefault) GetPayload() models.GenericError

func (*ReadNotifierDefault) IsClientError

func (o *ReadNotifierDefault) IsClientError() bool

IsClientError returns true when this read notifier default response has a 4xx status code

func (*ReadNotifierDefault) IsCode

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

IsCode returns true when this read notifier default response a status code equal to that given

func (*ReadNotifierDefault) IsRedirect

func (o *ReadNotifierDefault) IsRedirect() bool

IsRedirect returns true when this read notifier default response has a 3xx status code

func (*ReadNotifierDefault) IsServerError

func (o *ReadNotifierDefault) IsServerError() bool

IsServerError returns true when this read notifier default response has a 5xx status code

func (*ReadNotifierDefault) IsSuccess

func (o *ReadNotifierDefault) IsSuccess() bool

IsSuccess returns true when this read notifier default response has a 2xx status code

func (*ReadNotifierDefault) String

func (o *ReadNotifierDefault) String() string

type ReadNotifierInternalServerError

type ReadNotifierInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadNotifierInternalServerError

func NewReadNotifierInternalServerError() *ReadNotifierInternalServerError

NewReadNotifierInternalServerError creates a ReadNotifierInternalServerError with default headers values

func (*ReadNotifierInternalServerError) Code

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

func (*ReadNotifierInternalServerError) Error

func (*ReadNotifierInternalServerError) GetPayload

func (*ReadNotifierInternalServerError) IsClientError

func (o *ReadNotifierInternalServerError) IsClientError() bool

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

func (*ReadNotifierInternalServerError) IsCode

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

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

func (*ReadNotifierInternalServerError) IsRedirect

func (o *ReadNotifierInternalServerError) IsRedirect() bool

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

func (*ReadNotifierInternalServerError) IsServerError

func (o *ReadNotifierInternalServerError) IsServerError() bool

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

func (*ReadNotifierInternalServerError) IsSuccess

func (o *ReadNotifierInternalServerError) IsSuccess() bool

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

func (*ReadNotifierInternalServerError) String

type ReadNotifierNotFound

type ReadNotifierNotFound struct {
	Payload *models.APIError
}

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

Cannot read the Notifier because the slug does not exist.

func NewReadNotifierNotFound

func NewReadNotifierNotFound() *ReadNotifierNotFound

NewReadNotifierNotFound creates a ReadNotifierNotFound with default headers values

func (*ReadNotifierNotFound) Code

func (o *ReadNotifierNotFound) Code() int

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

func (*ReadNotifierNotFound) Error

func (o *ReadNotifierNotFound) Error() string

func (*ReadNotifierNotFound) GetPayload

func (o *ReadNotifierNotFound) GetPayload() *models.APIError

func (*ReadNotifierNotFound) IsClientError

func (o *ReadNotifierNotFound) IsClientError() bool

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

func (*ReadNotifierNotFound) IsCode

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

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

func (*ReadNotifierNotFound) IsRedirect

func (o *ReadNotifierNotFound) IsRedirect() bool

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

func (*ReadNotifierNotFound) IsServerError

func (o *ReadNotifierNotFound) IsServerError() bool

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

func (*ReadNotifierNotFound) IsSuccess

func (o *ReadNotifierNotFound) IsSuccess() bool

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

func (*ReadNotifierNotFound) String

func (o *ReadNotifierNotFound) String() string

type ReadNotifierOK

type ReadNotifierOK struct {
	Payload *models.Configv1ReadNotifierResponse
}

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

A successful response.

func NewReadNotifierOK

func NewReadNotifierOK() *ReadNotifierOK

NewReadNotifierOK creates a ReadNotifierOK with default headers values

func (*ReadNotifierOK) Code

func (o *ReadNotifierOK) Code() int

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

func (*ReadNotifierOK) Error

func (o *ReadNotifierOK) Error() string

func (*ReadNotifierOK) GetPayload

func (*ReadNotifierOK) IsClientError

func (o *ReadNotifierOK) IsClientError() bool

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

func (*ReadNotifierOK) IsCode

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

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

func (*ReadNotifierOK) IsRedirect

func (o *ReadNotifierOK) IsRedirect() bool

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

func (*ReadNotifierOK) IsServerError

func (o *ReadNotifierOK) IsServerError() bool

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

func (*ReadNotifierOK) IsSuccess

func (o *ReadNotifierOK) IsSuccess() bool

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

func (*ReadNotifierOK) String

func (o *ReadNotifierOK) String() string

type ReadNotifierParams

type ReadNotifierParams struct {

	// Slug.
	Slug string

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

ReadNotifierParams contains all the parameters to send to the API endpoint

for the read notifier operation.

Typically these are written to a http.Request.

func NewReadNotifierParams

func NewReadNotifierParams() *ReadNotifierParams

NewReadNotifierParams creates a new ReadNotifierParams 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 NewReadNotifierParamsWithContext

func NewReadNotifierParamsWithContext(ctx context.Context) *ReadNotifierParams

NewReadNotifierParamsWithContext creates a new ReadNotifierParams object with the ability to set a context for a request.

func NewReadNotifierParamsWithHTTPClient

func NewReadNotifierParamsWithHTTPClient(client *http.Client) *ReadNotifierParams

NewReadNotifierParamsWithHTTPClient creates a new ReadNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewReadNotifierParamsWithTimeout

func NewReadNotifierParamsWithTimeout(timeout time.Duration) *ReadNotifierParams

NewReadNotifierParamsWithTimeout creates a new ReadNotifierParams object with the ability to set a timeout on a request.

func (*ReadNotifierParams) SetContext

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

SetContext adds the context to the read notifier params

func (*ReadNotifierParams) SetDefaults

func (o *ReadNotifierParams) SetDefaults()

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

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

func (*ReadNotifierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read notifier params

func (*ReadNotifierParams) SetSlug

func (o *ReadNotifierParams) SetSlug(slug string)

SetSlug adds the slug to the read notifier params

func (*ReadNotifierParams) SetTimeout

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

SetTimeout adds the timeout to the read notifier params

func (*ReadNotifierParams) WithContext

WithContext adds the context to the read notifier params

func (*ReadNotifierParams) WithDefaults

func (o *ReadNotifierParams) WithDefaults() *ReadNotifierParams

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

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

func (*ReadNotifierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read notifier params

func (*ReadNotifierParams) WithSlug

func (o *ReadNotifierParams) WithSlug(slug string) *ReadNotifierParams

WithSlug adds the slug to the read notifier params

func (*ReadNotifierParams) WithTimeout

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

WithTimeout adds the timeout to the read notifier params

func (*ReadNotifierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadNotifierReader

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

ReadNotifierReader is a Reader for the ReadNotifier structure.

func (*ReadNotifierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateNotifierBadRequest

type UpdateNotifierBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the Notifier because the request is invalid.

func NewUpdateNotifierBadRequest

func NewUpdateNotifierBadRequest() *UpdateNotifierBadRequest

NewUpdateNotifierBadRequest creates a UpdateNotifierBadRequest with default headers values

func (*UpdateNotifierBadRequest) Code

func (o *UpdateNotifierBadRequest) Code() int

Code gets the status code for the update notifier bad request response

func (*UpdateNotifierBadRequest) Error

func (o *UpdateNotifierBadRequest) Error() string

func (*UpdateNotifierBadRequest) GetPayload

func (o *UpdateNotifierBadRequest) GetPayload() *models.APIError

func (*UpdateNotifierBadRequest) IsClientError

func (o *UpdateNotifierBadRequest) IsClientError() bool

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

func (*UpdateNotifierBadRequest) IsCode

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

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

func (*UpdateNotifierBadRequest) IsRedirect

func (o *UpdateNotifierBadRequest) IsRedirect() bool

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

func (*UpdateNotifierBadRequest) IsServerError

func (o *UpdateNotifierBadRequest) IsServerError() bool

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

func (*UpdateNotifierBadRequest) IsSuccess

func (o *UpdateNotifierBadRequest) IsSuccess() bool

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

func (*UpdateNotifierBadRequest) String

func (o *UpdateNotifierBadRequest) String() string

type UpdateNotifierConflict

type UpdateNotifierConflict struct {
	Payload *models.APIError
}

UpdateNotifierConflict describes a response with status code 409, with default header values.

Cannot update the Notifier because there is a conflict with an existing Notifier.

func NewUpdateNotifierConflict

func NewUpdateNotifierConflict() *UpdateNotifierConflict

NewUpdateNotifierConflict creates a UpdateNotifierConflict with default headers values

func (*UpdateNotifierConflict) Code

func (o *UpdateNotifierConflict) Code() int

Code gets the status code for the update notifier conflict response

func (*UpdateNotifierConflict) Error

func (o *UpdateNotifierConflict) Error() string

func (*UpdateNotifierConflict) GetPayload

func (o *UpdateNotifierConflict) GetPayload() *models.APIError

func (*UpdateNotifierConflict) IsClientError

func (o *UpdateNotifierConflict) IsClientError() bool

IsClientError returns true when this update notifier conflict response has a 4xx status code

func (*UpdateNotifierConflict) IsCode

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

IsCode returns true when this update notifier conflict response a status code equal to that given

func (*UpdateNotifierConflict) IsRedirect

func (o *UpdateNotifierConflict) IsRedirect() bool

IsRedirect returns true when this update notifier conflict response has a 3xx status code

func (*UpdateNotifierConflict) IsServerError

func (o *UpdateNotifierConflict) IsServerError() bool

IsServerError returns true when this update notifier conflict response has a 5xx status code

func (*UpdateNotifierConflict) IsSuccess

func (o *UpdateNotifierConflict) IsSuccess() bool

IsSuccess returns true when this update notifier conflict response has a 2xx status code

func (*UpdateNotifierConflict) String

func (o *UpdateNotifierConflict) String() string

type UpdateNotifierDefault

type UpdateNotifierDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateNotifierDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateNotifierDefault

func NewUpdateNotifierDefault(code int) *UpdateNotifierDefault

NewUpdateNotifierDefault creates a UpdateNotifierDefault with default headers values

func (*UpdateNotifierDefault) Code

func (o *UpdateNotifierDefault) Code() int

Code gets the status code for the update notifier default response

func (*UpdateNotifierDefault) Error

func (o *UpdateNotifierDefault) Error() string

func (*UpdateNotifierDefault) GetPayload

func (o *UpdateNotifierDefault) GetPayload() models.GenericError

func (*UpdateNotifierDefault) IsClientError

func (o *UpdateNotifierDefault) IsClientError() bool

IsClientError returns true when this update notifier default response has a 4xx status code

func (*UpdateNotifierDefault) IsCode

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

IsCode returns true when this update notifier default response a status code equal to that given

func (*UpdateNotifierDefault) IsRedirect

func (o *UpdateNotifierDefault) IsRedirect() bool

IsRedirect returns true when this update notifier default response has a 3xx status code

func (*UpdateNotifierDefault) IsServerError

func (o *UpdateNotifierDefault) IsServerError() bool

IsServerError returns true when this update notifier default response has a 5xx status code

func (*UpdateNotifierDefault) IsSuccess

func (o *UpdateNotifierDefault) IsSuccess() bool

IsSuccess returns true when this update notifier default response has a 2xx status code

func (*UpdateNotifierDefault) String

func (o *UpdateNotifierDefault) String() string

type UpdateNotifierInternalServerError

type UpdateNotifierInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateNotifierInternalServerError

func NewUpdateNotifierInternalServerError() *UpdateNotifierInternalServerError

NewUpdateNotifierInternalServerError creates a UpdateNotifierInternalServerError with default headers values

func (*UpdateNotifierInternalServerError) Code

Code gets the status code for the update notifier internal server error response

func (*UpdateNotifierInternalServerError) Error

func (*UpdateNotifierInternalServerError) GetPayload

func (*UpdateNotifierInternalServerError) IsClientError

func (o *UpdateNotifierInternalServerError) IsClientError() bool

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

func (*UpdateNotifierInternalServerError) IsCode

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

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

func (*UpdateNotifierInternalServerError) IsRedirect

func (o *UpdateNotifierInternalServerError) IsRedirect() bool

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

func (*UpdateNotifierInternalServerError) IsServerError

func (o *UpdateNotifierInternalServerError) IsServerError() bool

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

func (*UpdateNotifierInternalServerError) IsSuccess

func (o *UpdateNotifierInternalServerError) IsSuccess() bool

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

func (*UpdateNotifierInternalServerError) String

type UpdateNotifierNotFound

type UpdateNotifierNotFound struct {
	Payload *models.APIError
}

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

Cannot update the Notifier because the slug does not exist.

func NewUpdateNotifierNotFound

func NewUpdateNotifierNotFound() *UpdateNotifierNotFound

NewUpdateNotifierNotFound creates a UpdateNotifierNotFound with default headers values

func (*UpdateNotifierNotFound) Code

func (o *UpdateNotifierNotFound) Code() int

Code gets the status code for the update notifier not found response

func (*UpdateNotifierNotFound) Error

func (o *UpdateNotifierNotFound) Error() string

func (*UpdateNotifierNotFound) GetPayload

func (o *UpdateNotifierNotFound) GetPayload() *models.APIError

func (*UpdateNotifierNotFound) IsClientError

func (o *UpdateNotifierNotFound) IsClientError() bool

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

func (*UpdateNotifierNotFound) IsCode

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

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

func (*UpdateNotifierNotFound) IsRedirect

func (o *UpdateNotifierNotFound) IsRedirect() bool

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

func (*UpdateNotifierNotFound) IsServerError

func (o *UpdateNotifierNotFound) IsServerError() bool

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

func (*UpdateNotifierNotFound) IsSuccess

func (o *UpdateNotifierNotFound) IsSuccess() bool

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

func (*UpdateNotifierNotFound) String

func (o *UpdateNotifierNotFound) String() string

type UpdateNotifierOK

type UpdateNotifierOK struct {
	Payload *models.Configv1UpdateNotifierResponse
}

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

A successful response containing the updated Notifier.

func NewUpdateNotifierOK

func NewUpdateNotifierOK() *UpdateNotifierOK

NewUpdateNotifierOK creates a UpdateNotifierOK with default headers values

func (*UpdateNotifierOK) Code

func (o *UpdateNotifierOK) Code() int

Code gets the status code for the update notifier o k response

func (*UpdateNotifierOK) Error

func (o *UpdateNotifierOK) Error() string

func (*UpdateNotifierOK) GetPayload

func (*UpdateNotifierOK) IsClientError

func (o *UpdateNotifierOK) IsClientError() bool

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

func (*UpdateNotifierOK) IsCode

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

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

func (*UpdateNotifierOK) IsRedirect

func (o *UpdateNotifierOK) IsRedirect() bool

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

func (*UpdateNotifierOK) IsServerError

func (o *UpdateNotifierOK) IsServerError() bool

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

func (*UpdateNotifierOK) IsSuccess

func (o *UpdateNotifierOK) IsSuccess() bool

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

func (*UpdateNotifierOK) String

func (o *UpdateNotifierOK) String() string

type UpdateNotifierParams

type UpdateNotifierParams struct {

	// Body.
	Body *models.ConfigV1UpdateNotifierBody

	// Slug.
	Slug string

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

UpdateNotifierParams contains all the parameters to send to the API endpoint

for the update notifier operation.

Typically these are written to a http.Request.

func NewUpdateNotifierParams

func NewUpdateNotifierParams() *UpdateNotifierParams

NewUpdateNotifierParams creates a new UpdateNotifierParams 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 NewUpdateNotifierParamsWithContext

func NewUpdateNotifierParamsWithContext(ctx context.Context) *UpdateNotifierParams

NewUpdateNotifierParamsWithContext creates a new UpdateNotifierParams object with the ability to set a context for a request.

func NewUpdateNotifierParamsWithHTTPClient

func NewUpdateNotifierParamsWithHTTPClient(client *http.Client) *UpdateNotifierParams

NewUpdateNotifierParamsWithHTTPClient creates a new UpdateNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNotifierParamsWithTimeout

func NewUpdateNotifierParamsWithTimeout(timeout time.Duration) *UpdateNotifierParams

NewUpdateNotifierParamsWithTimeout creates a new UpdateNotifierParams object with the ability to set a timeout on a request.

func (*UpdateNotifierParams) SetBody

SetBody adds the body to the update notifier params

func (*UpdateNotifierParams) SetContext

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

SetContext adds the context to the update notifier params

func (*UpdateNotifierParams) SetDefaults

func (o *UpdateNotifierParams) SetDefaults()

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

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

func (*UpdateNotifierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update notifier params

func (*UpdateNotifierParams) SetSlug

func (o *UpdateNotifierParams) SetSlug(slug string)

SetSlug adds the slug to the update notifier params

func (*UpdateNotifierParams) SetTimeout

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

SetTimeout adds the timeout to the update notifier params

func (*UpdateNotifierParams) WithBody

WithBody adds the body to the update notifier params

func (*UpdateNotifierParams) WithContext

WithContext adds the context to the update notifier params

func (*UpdateNotifierParams) WithDefaults

func (o *UpdateNotifierParams) WithDefaults() *UpdateNotifierParams

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

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

func (*UpdateNotifierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update notifier params

func (*UpdateNotifierParams) WithSlug

WithSlug adds the slug to the update notifier params

func (*UpdateNotifierParams) WithTimeout

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

WithTimeout adds the timeout to the update notifier params

func (*UpdateNotifierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateNotifierReader

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

UpdateNotifierReader is a Reader for the UpdateNotifier structure.

func (*UpdateNotifierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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