alert_notifier

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: ISC Imports: 10 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 alert notifier API

func (*Client) GetAlertNotifiers

func (a *Client) GetAlertNotifiers(params *GetAlertNotifiersParams, opts ...ClientOption) (*GetAlertNotifiersOK, error)

GetAlertNotifiers get alert notifiers API

func (*Client) GetAlertNotifiersConnection

func (a *Client) GetAlertNotifiersConnection(params *GetAlertNotifiersConnectionParams, opts ...ClientOption) (*GetAlertNotifiersConnectionOK, error)

GetAlertNotifiersConnection get alert notifiers connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAlertNotifier added in v1.10.0

func (a *Client) UpdateAlertNotifier(params *UpdateAlertNotifierParams, opts ...ClientOption) (*UpdateAlertNotifierOK, error)

UpdateAlertNotifier update alert notifier API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAlertNotifiers(params *GetAlertNotifiersParams, opts ...ClientOption) (*GetAlertNotifiersOK, error)

	GetAlertNotifiersConnection(params *GetAlertNotifiersConnectionParams, opts ...ClientOption) (*GetAlertNotifiersConnectionOK, error)

	UpdateAlertNotifier(params *UpdateAlertNotifierParams, opts ...ClientOption) (*UpdateAlertNotifierOK, 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 alert notifier API client.

type GetAlertNotifiersBadRequest

type GetAlertNotifiersBadRequest struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetAlertNotifiersBadRequest

func NewGetAlertNotifiersBadRequest() *GetAlertNotifiersBadRequest

NewGetAlertNotifiersBadRequest creates a GetAlertNotifiersBadRequest with default headers values

func (*GetAlertNotifiersBadRequest) Error

func (*GetAlertNotifiersBadRequest) GetPayload

func (o *GetAlertNotifiersBadRequest) GetPayload() *models.ErrorBody

type GetAlertNotifiersConnectionBadRequest

type GetAlertNotifiersConnectionBadRequest struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetAlertNotifiersConnectionBadRequest

func NewGetAlertNotifiersConnectionBadRequest() *GetAlertNotifiersConnectionBadRequest

NewGetAlertNotifiersConnectionBadRequest creates a GetAlertNotifiersConnectionBadRequest with default headers values

func (*GetAlertNotifiersConnectionBadRequest) Error

func (*GetAlertNotifiersConnectionBadRequest) GetPayload

type GetAlertNotifiersConnectionInternalServerError added in v1.10.0

type GetAlertNotifiersConnectionInternalServerError struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertNotifiersConnectionInternalServerError added in v1.10.0

func NewGetAlertNotifiersConnectionInternalServerError() *GetAlertNotifiersConnectionInternalServerError

NewGetAlertNotifiersConnectionInternalServerError creates a GetAlertNotifiersConnectionInternalServerError with default headers values

func (*GetAlertNotifiersConnectionInternalServerError) Error added in v1.10.0

func (*GetAlertNotifiersConnectionInternalServerError) GetPayload added in v1.10.0

type GetAlertNotifiersConnectionNotFound added in v1.10.0

type GetAlertNotifiersConnectionNotFound struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertNotifiersConnectionNotFound added in v1.10.0

func NewGetAlertNotifiersConnectionNotFound() *GetAlertNotifiersConnectionNotFound

NewGetAlertNotifiersConnectionNotFound creates a GetAlertNotifiersConnectionNotFound with default headers values

func (*GetAlertNotifiersConnectionNotFound) Error added in v1.10.0

func (*GetAlertNotifiersConnectionNotFound) GetPayload added in v1.10.0

type GetAlertNotifiersConnectionOK

type GetAlertNotifiersConnectionOK struct {
	Payload *models.AlertNotifierConnection
}
GetAlertNotifiersConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetAlertNotifiersConnectionOK

func NewGetAlertNotifiersConnectionOK() *GetAlertNotifiersConnectionOK

NewGetAlertNotifiersConnectionOK creates a GetAlertNotifiersConnectionOK with default headers values

func (*GetAlertNotifiersConnectionOK) Error

func (*GetAlertNotifiersConnectionOK) GetPayload

type GetAlertNotifiersConnectionParams

type GetAlertNotifiersConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetAlertNotifiersConnectionRequestBody

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

GetAlertNotifiersConnectionParams contains all the parameters to send to the API endpoint

for the get alert notifiers connection operation.

Typically these are written to a http.Request.

func NewGetAlertNotifiersConnectionParams

func NewGetAlertNotifiersConnectionParams() *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParams creates a new GetAlertNotifiersConnectionParams 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 NewGetAlertNotifiersConnectionParamsWithContext

func NewGetAlertNotifiersConnectionParamsWithContext(ctx context.Context) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithContext creates a new GetAlertNotifiersConnectionParams object with the ability to set a context for a request.

func NewGetAlertNotifiersConnectionParamsWithHTTPClient

func NewGetAlertNotifiersConnectionParamsWithHTTPClient(client *http.Client) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithHTTPClient creates a new GetAlertNotifiersConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertNotifiersConnectionParamsWithTimeout

func NewGetAlertNotifiersConnectionParamsWithTimeout(timeout time.Duration) *GetAlertNotifiersConnectionParams

NewGetAlertNotifiersConnectionParamsWithTimeout creates a new GetAlertNotifiersConnectionParams object with the ability to set a timeout on a request.

func (*GetAlertNotifiersConnectionParams) SetContentLanguage

func (o *GetAlertNotifiersConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetContext

SetContext adds the context to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetDefaults

func (o *GetAlertNotifiersConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get alert notifiers connection params (not the query body).

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

func (*GetAlertNotifiersConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithContentLanguage

func (o *GetAlertNotifiersConnectionParams) WithContentLanguage(contentLanguage *string) *GetAlertNotifiersConnectionParams

WithContentLanguage adds the contentLanguage to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithContext

WithContext adds the context to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithDefaults

WithDefaults hydrates default values in the get alert notifiers connection params (not the query body).

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

func (*GetAlertNotifiersConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WithTimeout

WithTimeout adds the timeout to the get alert notifiers connection params

func (*GetAlertNotifiersConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAlertNotifiersConnectionReader

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

GetAlertNotifiersConnectionReader is a Reader for the GetAlertNotifiersConnection structure.

func (*GetAlertNotifiersConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAlertNotifiersInternalServerError added in v1.10.0

type GetAlertNotifiersInternalServerError struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetAlertNotifiersInternalServerError added in v1.10.0

func NewGetAlertNotifiersInternalServerError() *GetAlertNotifiersInternalServerError

NewGetAlertNotifiersInternalServerError creates a GetAlertNotifiersInternalServerError with default headers values

func (*GetAlertNotifiersInternalServerError) Error added in v1.10.0

func (*GetAlertNotifiersInternalServerError) GetPayload added in v1.10.0

type GetAlertNotifiersNotFound added in v1.10.0

type GetAlertNotifiersNotFound struct {
	Payload *models.ErrorBody
}
GetAlertNotifiersNotFound describes a response with status code 404, with default header values.

Not found

func NewGetAlertNotifiersNotFound added in v1.10.0

func NewGetAlertNotifiersNotFound() *GetAlertNotifiersNotFound

NewGetAlertNotifiersNotFound creates a GetAlertNotifiersNotFound with default headers values

func (*GetAlertNotifiersNotFound) Error added in v1.10.0

func (o *GetAlertNotifiersNotFound) Error() string

func (*GetAlertNotifiersNotFound) GetPayload added in v1.10.0

func (o *GetAlertNotifiersNotFound) GetPayload() *models.ErrorBody

type GetAlertNotifiersOK

type GetAlertNotifiersOK struct {
	Payload []*models.AlertNotifier
}
GetAlertNotifiersOK describes a response with status code 200, with default header values.

Ok

func NewGetAlertNotifiersOK

func NewGetAlertNotifiersOK() *GetAlertNotifiersOK

NewGetAlertNotifiersOK creates a GetAlertNotifiersOK with default headers values

func (*GetAlertNotifiersOK) Error

func (o *GetAlertNotifiersOK) Error() string

func (*GetAlertNotifiersOK) GetPayload

func (o *GetAlertNotifiersOK) GetPayload() []*models.AlertNotifier

type GetAlertNotifiersParams

type GetAlertNotifiersParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetAlertNotifiersRequestBody

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

GetAlertNotifiersParams contains all the parameters to send to the API endpoint

for the get alert notifiers operation.

Typically these are written to a http.Request.

func NewGetAlertNotifiersParams

func NewGetAlertNotifiersParams() *GetAlertNotifiersParams

NewGetAlertNotifiersParams creates a new GetAlertNotifiersParams 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 NewGetAlertNotifiersParamsWithContext

func NewGetAlertNotifiersParamsWithContext(ctx context.Context) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithContext creates a new GetAlertNotifiersParams object with the ability to set a context for a request.

func NewGetAlertNotifiersParamsWithHTTPClient

func NewGetAlertNotifiersParamsWithHTTPClient(client *http.Client) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithHTTPClient creates a new GetAlertNotifiersParams object with the ability to set a custom HTTPClient for a request.

func NewGetAlertNotifiersParamsWithTimeout

func NewGetAlertNotifiersParamsWithTimeout(timeout time.Duration) *GetAlertNotifiersParams

NewGetAlertNotifiersParamsWithTimeout creates a new GetAlertNotifiersParams object with the ability to set a timeout on a request.

func (*GetAlertNotifiersParams) SetContentLanguage

func (o *GetAlertNotifiersParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get alert notifiers params

func (*GetAlertNotifiersParams) SetContext

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

SetContext adds the context to the get alert notifiers params

func (*GetAlertNotifiersParams) SetDefaults

func (o *GetAlertNotifiersParams) SetDefaults()

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

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

func (*GetAlertNotifiersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get alert notifiers params

func (*GetAlertNotifiersParams) SetRequestBody

func (o *GetAlertNotifiersParams) SetRequestBody(requestBody *models.GetAlertNotifiersRequestBody)

SetRequestBody adds the requestBody to the get alert notifiers params

func (*GetAlertNotifiersParams) SetTimeout

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

SetTimeout adds the timeout to the get alert notifiers params

func (*GetAlertNotifiersParams) WithContentLanguage

func (o *GetAlertNotifiersParams) WithContentLanguage(contentLanguage *string) *GetAlertNotifiersParams

WithContentLanguage adds the contentLanguage to the get alert notifiers params

func (*GetAlertNotifiersParams) WithContext

WithContext adds the context to the get alert notifiers params

func (*GetAlertNotifiersParams) WithDefaults

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

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

func (*GetAlertNotifiersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get alert notifiers params

func (*GetAlertNotifiersParams) WithRequestBody

WithRequestBody adds the requestBody to the get alert notifiers params

func (*GetAlertNotifiersParams) WithTimeout

WithTimeout adds the timeout to the get alert notifiers params

func (*GetAlertNotifiersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAlertNotifiersReader

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

GetAlertNotifiersReader is a Reader for the GetAlertNotifiers structure.

func (*GetAlertNotifiersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAlertNotifierBadRequest added in v1.10.0

type UpdateAlertNotifierBadRequest struct {
	Payload *models.ErrorBody
}
UpdateAlertNotifierBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateAlertNotifierBadRequest added in v1.10.0

func NewUpdateAlertNotifierBadRequest() *UpdateAlertNotifierBadRequest

NewUpdateAlertNotifierBadRequest creates a UpdateAlertNotifierBadRequest with default headers values

func (*UpdateAlertNotifierBadRequest) Error added in v1.10.0

func (*UpdateAlertNotifierBadRequest) GetPayload added in v1.10.0

type UpdateAlertNotifierInternalServerError added in v1.10.0

type UpdateAlertNotifierInternalServerError struct {
	Payload *models.ErrorBody
}
UpdateAlertNotifierInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateAlertNotifierInternalServerError added in v1.10.0

func NewUpdateAlertNotifierInternalServerError() *UpdateAlertNotifierInternalServerError

NewUpdateAlertNotifierInternalServerError creates a UpdateAlertNotifierInternalServerError with default headers values

func (*UpdateAlertNotifierInternalServerError) Error added in v1.10.0

func (*UpdateAlertNotifierInternalServerError) GetPayload added in v1.10.0

type UpdateAlertNotifierNotFound added in v1.10.0

type UpdateAlertNotifierNotFound struct {
	Payload *models.ErrorBody
}
UpdateAlertNotifierNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateAlertNotifierNotFound added in v1.10.0

func NewUpdateAlertNotifierNotFound() *UpdateAlertNotifierNotFound

NewUpdateAlertNotifierNotFound creates a UpdateAlertNotifierNotFound with default headers values

func (*UpdateAlertNotifierNotFound) Error added in v1.10.0

func (*UpdateAlertNotifierNotFound) GetPayload added in v1.10.0

func (o *UpdateAlertNotifierNotFound) GetPayload() *models.ErrorBody

type UpdateAlertNotifierOK added in v1.10.0

type UpdateAlertNotifierOK struct {
	Payload *models.WithTaskAlertNotifier
}
UpdateAlertNotifierOK describes a response with status code 200, with default header values.

Ok

func NewUpdateAlertNotifierOK added in v1.10.0

func NewUpdateAlertNotifierOK() *UpdateAlertNotifierOK

NewUpdateAlertNotifierOK creates a UpdateAlertNotifierOK with default headers values

func (*UpdateAlertNotifierOK) Error added in v1.10.0

func (o *UpdateAlertNotifierOK) Error() string

func (*UpdateAlertNotifierOK) GetPayload added in v1.10.0

type UpdateAlertNotifierParams added in v1.10.0

type UpdateAlertNotifierParams struct {

	// RequestBody.
	RequestBody *models.AlertNotifierUpdationParams

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

UpdateAlertNotifierParams contains all the parameters to send to the API endpoint

for the update alert notifier operation.

Typically these are written to a http.Request.

func NewUpdateAlertNotifierParams added in v1.10.0

func NewUpdateAlertNotifierParams() *UpdateAlertNotifierParams

NewUpdateAlertNotifierParams creates a new UpdateAlertNotifierParams 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 NewUpdateAlertNotifierParamsWithContext added in v1.10.0

func NewUpdateAlertNotifierParamsWithContext(ctx context.Context) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithContext creates a new UpdateAlertNotifierParams object with the ability to set a context for a request.

func NewUpdateAlertNotifierParamsWithHTTPClient added in v1.10.0

func NewUpdateAlertNotifierParamsWithHTTPClient(client *http.Client) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithHTTPClient creates a new UpdateAlertNotifierParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAlertNotifierParamsWithTimeout added in v1.10.0

func NewUpdateAlertNotifierParamsWithTimeout(timeout time.Duration) *UpdateAlertNotifierParams

NewUpdateAlertNotifierParamsWithTimeout creates a new UpdateAlertNotifierParams object with the ability to set a timeout on a request.

func (*UpdateAlertNotifierParams) SetContext added in v1.10.0

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

SetContext adds the context to the update alert notifier params

func (*UpdateAlertNotifierParams) SetDefaults added in v1.10.0

func (o *UpdateAlertNotifierParams) SetDefaults()

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

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

func (*UpdateAlertNotifierParams) SetHTTPClient added in v1.10.0

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

SetHTTPClient adds the HTTPClient to the update alert notifier params

func (*UpdateAlertNotifierParams) SetRequestBody added in v1.10.0

func (o *UpdateAlertNotifierParams) SetRequestBody(requestBody *models.AlertNotifierUpdationParams)

SetRequestBody adds the requestBody to the update alert notifier params

func (*UpdateAlertNotifierParams) SetTimeout added in v1.10.0

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

SetTimeout adds the timeout to the update alert notifier params

func (*UpdateAlertNotifierParams) WithContext added in v1.10.0

WithContext adds the context to the update alert notifier params

func (*UpdateAlertNotifierParams) WithDefaults added in v1.10.0

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

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

func (*UpdateAlertNotifierParams) WithHTTPClient added in v1.10.0

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

WithHTTPClient adds the HTTPClient to the update alert notifier params

func (*UpdateAlertNotifierParams) WithRequestBody added in v1.10.0

WithRequestBody adds the requestBody to the update alert notifier params

func (*UpdateAlertNotifierParams) WithTimeout added in v1.10.0

WithTimeout adds the timeout to the update alert notifier params

func (*UpdateAlertNotifierParams) WriteToRequest added in v1.10.0

WriteToRequest writes these params to a swagger request

type UpdateAlertNotifierReader added in v1.10.0

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

UpdateAlertNotifierReader is a Reader for the UpdateAlertNotifier structure.

func (*UpdateAlertNotifierReader) ReadResponse added in v1.10.0

func (o *UpdateAlertNotifierReader) 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