muting_rule

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 muting rule API

func (*Client) CreateMutingRule

func (a *Client) CreateMutingRule(params *CreateMutingRuleParams, opts ...ClientOption) (*CreateMutingRuleOK, error)

CreateMutingRule create muting rule API

func (*Client) DeleteMutingRule

func (a *Client) DeleteMutingRule(params *DeleteMutingRuleParams, opts ...ClientOption) (*DeleteMutingRuleOK, error)

DeleteMutingRule delete muting rule API

func (*Client) ListMutingRules

func (a *Client) ListMutingRules(params *ListMutingRulesParams, opts ...ClientOption) (*ListMutingRulesOK, error)

ListMutingRules list muting rules API

func (*Client) ReadMutingRule

func (a *Client) ReadMutingRule(params *ReadMutingRuleParams, opts ...ClientOption) (*ReadMutingRuleOK, error)

ReadMutingRule read muting rule API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateMutingRule

func (a *Client) UpdateMutingRule(params *UpdateMutingRuleParams, opts ...ClientOption) (*UpdateMutingRuleOK, error)

UpdateMutingRule update muting rule API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateMutingRule(params *CreateMutingRuleParams, opts ...ClientOption) (*CreateMutingRuleOK, error)

	DeleteMutingRule(params *DeleteMutingRuleParams, opts ...ClientOption) (*DeleteMutingRuleOK, error)

	ListMutingRules(params *ListMutingRulesParams, opts ...ClientOption) (*ListMutingRulesOK, error)

	ReadMutingRule(params *ReadMutingRuleParams, opts ...ClientOption) (*ReadMutingRuleOK, error)

	UpdateMutingRule(params *UpdateMutingRuleParams, opts ...ClientOption) (*UpdateMutingRuleOK, 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 muting rule API client.

type CreateMutingRuleBadRequest

type CreateMutingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the MutingRule because the request is invalid.

func NewCreateMutingRuleBadRequest

func NewCreateMutingRuleBadRequest() *CreateMutingRuleBadRequest

NewCreateMutingRuleBadRequest creates a CreateMutingRuleBadRequest with default headers values

func (*CreateMutingRuleBadRequest) Code

func (o *CreateMutingRuleBadRequest) Code() int

Code gets the status code for the create muting rule bad request response

func (*CreateMutingRuleBadRequest) Error

func (*CreateMutingRuleBadRequest) GetPayload

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

func (*CreateMutingRuleBadRequest) IsClientError

func (o *CreateMutingRuleBadRequest) IsClientError() bool

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

func (*CreateMutingRuleBadRequest) IsCode

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

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

func (*CreateMutingRuleBadRequest) IsRedirect

func (o *CreateMutingRuleBadRequest) IsRedirect() bool

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

func (*CreateMutingRuleBadRequest) IsServerError

func (o *CreateMutingRuleBadRequest) IsServerError() bool

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

func (*CreateMutingRuleBadRequest) IsSuccess

func (o *CreateMutingRuleBadRequest) IsSuccess() bool

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

func (*CreateMutingRuleBadRequest) String

func (o *CreateMutingRuleBadRequest) String() string

type CreateMutingRuleConflict

type CreateMutingRuleConflict struct {
	Payload *models.APIError
}

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

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

func NewCreateMutingRuleConflict

func NewCreateMutingRuleConflict() *CreateMutingRuleConflict

NewCreateMutingRuleConflict creates a CreateMutingRuleConflict with default headers values

func (*CreateMutingRuleConflict) Code

func (o *CreateMutingRuleConflict) Code() int

Code gets the status code for the create muting rule conflict response

func (*CreateMutingRuleConflict) Error

func (o *CreateMutingRuleConflict) Error() string

func (*CreateMutingRuleConflict) GetPayload

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

func (*CreateMutingRuleConflict) IsClientError

func (o *CreateMutingRuleConflict) IsClientError() bool

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

func (*CreateMutingRuleConflict) IsCode

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

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

func (*CreateMutingRuleConflict) IsRedirect

func (o *CreateMutingRuleConflict) IsRedirect() bool

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

func (*CreateMutingRuleConflict) IsServerError

func (o *CreateMutingRuleConflict) IsServerError() bool

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

func (*CreateMutingRuleConflict) IsSuccess

func (o *CreateMutingRuleConflict) IsSuccess() bool

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

func (*CreateMutingRuleConflict) String

func (o *CreateMutingRuleConflict) String() string

type CreateMutingRuleDefault

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

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

An undefined error response.

func NewCreateMutingRuleDefault

func NewCreateMutingRuleDefault(code int) *CreateMutingRuleDefault

NewCreateMutingRuleDefault creates a CreateMutingRuleDefault with default headers values

func (*CreateMutingRuleDefault) Code

func (o *CreateMutingRuleDefault) Code() int

Code gets the status code for the create muting rule default response

func (*CreateMutingRuleDefault) Error

func (o *CreateMutingRuleDefault) Error() string

func (*CreateMutingRuleDefault) GetPayload

func (*CreateMutingRuleDefault) IsClientError

func (o *CreateMutingRuleDefault) IsClientError() bool

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

func (*CreateMutingRuleDefault) IsCode

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

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

func (*CreateMutingRuleDefault) IsRedirect

func (o *CreateMutingRuleDefault) IsRedirect() bool

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

func (*CreateMutingRuleDefault) IsServerError

func (o *CreateMutingRuleDefault) IsServerError() bool

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

func (*CreateMutingRuleDefault) IsSuccess

func (o *CreateMutingRuleDefault) IsSuccess() bool

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

func (*CreateMutingRuleDefault) String

func (o *CreateMutingRuleDefault) String() string

type CreateMutingRuleInternalServerError

type CreateMutingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateMutingRuleInternalServerError

func NewCreateMutingRuleInternalServerError() *CreateMutingRuleInternalServerError

NewCreateMutingRuleInternalServerError creates a CreateMutingRuleInternalServerError with default headers values

func (*CreateMutingRuleInternalServerError) Code

Code gets the status code for the create muting rule internal server error response

func (*CreateMutingRuleInternalServerError) Error

func (*CreateMutingRuleInternalServerError) GetPayload

func (*CreateMutingRuleInternalServerError) IsClientError

func (o *CreateMutingRuleInternalServerError) IsClientError() bool

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

func (*CreateMutingRuleInternalServerError) IsCode

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

func (*CreateMutingRuleInternalServerError) IsRedirect

func (o *CreateMutingRuleInternalServerError) IsRedirect() bool

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

func (*CreateMutingRuleInternalServerError) IsServerError

func (o *CreateMutingRuleInternalServerError) IsServerError() bool

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

func (*CreateMutingRuleInternalServerError) IsSuccess

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

func (*CreateMutingRuleInternalServerError) String

type CreateMutingRuleOK

type CreateMutingRuleOK struct {
	Payload *models.Configv1CreateMutingRuleResponse
}

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

A successful response containing the created MutingRule.

func NewCreateMutingRuleOK

func NewCreateMutingRuleOK() *CreateMutingRuleOK

NewCreateMutingRuleOK creates a CreateMutingRuleOK with default headers values

func (*CreateMutingRuleOK) Code

func (o *CreateMutingRuleOK) Code() int

Code gets the status code for the create muting rule o k response

func (*CreateMutingRuleOK) Error

func (o *CreateMutingRuleOK) Error() string

func (*CreateMutingRuleOK) GetPayload

func (*CreateMutingRuleOK) IsClientError

func (o *CreateMutingRuleOK) IsClientError() bool

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

func (*CreateMutingRuleOK) IsCode

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

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

func (*CreateMutingRuleOK) IsRedirect

func (o *CreateMutingRuleOK) IsRedirect() bool

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

func (*CreateMutingRuleOK) IsServerError

func (o *CreateMutingRuleOK) IsServerError() bool

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

func (*CreateMutingRuleOK) IsSuccess

func (o *CreateMutingRuleOK) IsSuccess() bool

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

func (*CreateMutingRuleOK) String

func (o *CreateMutingRuleOK) String() string

type CreateMutingRuleParams

type CreateMutingRuleParams struct {

	// Body.
	Body *models.Configv1CreateMutingRuleRequest

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

CreateMutingRuleParams contains all the parameters to send to the API endpoint

for the create muting rule operation.

Typically these are written to a http.Request.

func NewCreateMutingRuleParams

func NewCreateMutingRuleParams() *CreateMutingRuleParams

NewCreateMutingRuleParams creates a new CreateMutingRuleParams 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 NewCreateMutingRuleParamsWithContext

func NewCreateMutingRuleParamsWithContext(ctx context.Context) *CreateMutingRuleParams

NewCreateMutingRuleParamsWithContext creates a new CreateMutingRuleParams object with the ability to set a context for a request.

func NewCreateMutingRuleParamsWithHTTPClient

func NewCreateMutingRuleParamsWithHTTPClient(client *http.Client) *CreateMutingRuleParams

NewCreateMutingRuleParamsWithHTTPClient creates a new CreateMutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMutingRuleParamsWithTimeout

func NewCreateMutingRuleParamsWithTimeout(timeout time.Duration) *CreateMutingRuleParams

NewCreateMutingRuleParamsWithTimeout creates a new CreateMutingRuleParams object with the ability to set a timeout on a request.

func (*CreateMutingRuleParams) SetBody

SetBody adds the body to the create muting rule params

func (*CreateMutingRuleParams) SetContext

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

SetContext adds the context to the create muting rule params

func (*CreateMutingRuleParams) SetDefaults

func (o *CreateMutingRuleParams) SetDefaults()

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

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

func (*CreateMutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create muting rule params

func (*CreateMutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create muting rule params

func (*CreateMutingRuleParams) WithBody

WithBody adds the body to the create muting rule params

func (*CreateMutingRuleParams) WithContext

WithContext adds the context to the create muting rule params

func (*CreateMutingRuleParams) WithDefaults

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

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

func (*CreateMutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create muting rule params

func (*CreateMutingRuleParams) WithTimeout

WithTimeout adds the timeout to the create muting rule params

func (*CreateMutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMutingRuleReader

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

CreateMutingRuleReader is a Reader for the CreateMutingRule structure.

func (*CreateMutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMutingRuleBadRequest

type DeleteMutingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the MutingRule because it is in use.

func NewDeleteMutingRuleBadRequest

func NewDeleteMutingRuleBadRequest() *DeleteMutingRuleBadRequest

NewDeleteMutingRuleBadRequest creates a DeleteMutingRuleBadRequest with default headers values

func (*DeleteMutingRuleBadRequest) Code

func (o *DeleteMutingRuleBadRequest) Code() int

Code gets the status code for the delete muting rule bad request response

func (*DeleteMutingRuleBadRequest) Error

func (*DeleteMutingRuleBadRequest) GetPayload

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

func (*DeleteMutingRuleBadRequest) IsClientError

func (o *DeleteMutingRuleBadRequest) IsClientError() bool

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

func (*DeleteMutingRuleBadRequest) IsCode

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

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

func (*DeleteMutingRuleBadRequest) IsRedirect

func (o *DeleteMutingRuleBadRequest) IsRedirect() bool

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

func (*DeleteMutingRuleBadRequest) IsServerError

func (o *DeleteMutingRuleBadRequest) IsServerError() bool

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

func (*DeleteMutingRuleBadRequest) IsSuccess

func (o *DeleteMutingRuleBadRequest) IsSuccess() bool

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

func (*DeleteMutingRuleBadRequest) String

func (o *DeleteMutingRuleBadRequest) String() string

type DeleteMutingRuleDefault

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

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

An undefined error response.

func NewDeleteMutingRuleDefault

func NewDeleteMutingRuleDefault(code int) *DeleteMutingRuleDefault

NewDeleteMutingRuleDefault creates a DeleteMutingRuleDefault with default headers values

func (*DeleteMutingRuleDefault) Code

func (o *DeleteMutingRuleDefault) Code() int

Code gets the status code for the delete muting rule default response

func (*DeleteMutingRuleDefault) Error

func (o *DeleteMutingRuleDefault) Error() string

func (*DeleteMutingRuleDefault) GetPayload

func (*DeleteMutingRuleDefault) IsClientError

func (o *DeleteMutingRuleDefault) IsClientError() bool

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

func (*DeleteMutingRuleDefault) IsCode

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

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

func (*DeleteMutingRuleDefault) IsRedirect

func (o *DeleteMutingRuleDefault) IsRedirect() bool

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

func (*DeleteMutingRuleDefault) IsServerError

func (o *DeleteMutingRuleDefault) IsServerError() bool

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

func (*DeleteMutingRuleDefault) IsSuccess

func (o *DeleteMutingRuleDefault) IsSuccess() bool

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

func (*DeleteMutingRuleDefault) String

func (o *DeleteMutingRuleDefault) String() string

type DeleteMutingRuleInternalServerError

type DeleteMutingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteMutingRuleInternalServerError

func NewDeleteMutingRuleInternalServerError() *DeleteMutingRuleInternalServerError

NewDeleteMutingRuleInternalServerError creates a DeleteMutingRuleInternalServerError with default headers values

func (*DeleteMutingRuleInternalServerError) Code

Code gets the status code for the delete muting rule internal server error response

func (*DeleteMutingRuleInternalServerError) Error

func (*DeleteMutingRuleInternalServerError) GetPayload

func (*DeleteMutingRuleInternalServerError) IsClientError

func (o *DeleteMutingRuleInternalServerError) IsClientError() bool

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

func (*DeleteMutingRuleInternalServerError) IsCode

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

func (*DeleteMutingRuleInternalServerError) IsRedirect

func (o *DeleteMutingRuleInternalServerError) IsRedirect() bool

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

func (*DeleteMutingRuleInternalServerError) IsServerError

func (o *DeleteMutingRuleInternalServerError) IsServerError() bool

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

func (*DeleteMutingRuleInternalServerError) IsSuccess

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

func (*DeleteMutingRuleInternalServerError) String

type DeleteMutingRuleNotFound

type DeleteMutingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the MutingRule because the slug does not exist.

func NewDeleteMutingRuleNotFound

func NewDeleteMutingRuleNotFound() *DeleteMutingRuleNotFound

NewDeleteMutingRuleNotFound creates a DeleteMutingRuleNotFound with default headers values

func (*DeleteMutingRuleNotFound) Code

func (o *DeleteMutingRuleNotFound) Code() int

Code gets the status code for the delete muting rule not found response

func (*DeleteMutingRuleNotFound) Error

func (o *DeleteMutingRuleNotFound) Error() string

func (*DeleteMutingRuleNotFound) GetPayload

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

func (*DeleteMutingRuleNotFound) IsClientError

func (o *DeleteMutingRuleNotFound) IsClientError() bool

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

func (*DeleteMutingRuleNotFound) IsCode

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

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

func (*DeleteMutingRuleNotFound) IsRedirect

func (o *DeleteMutingRuleNotFound) IsRedirect() bool

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

func (*DeleteMutingRuleNotFound) IsServerError

func (o *DeleteMutingRuleNotFound) IsServerError() bool

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

func (*DeleteMutingRuleNotFound) IsSuccess

func (o *DeleteMutingRuleNotFound) IsSuccess() bool

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

func (*DeleteMutingRuleNotFound) String

func (o *DeleteMutingRuleNotFound) String() string

type DeleteMutingRuleOK

type DeleteMutingRuleOK struct {
	Payload models.Configv1DeleteMutingRuleResponse
}

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

A successful response.

func NewDeleteMutingRuleOK

func NewDeleteMutingRuleOK() *DeleteMutingRuleOK

NewDeleteMutingRuleOK creates a DeleteMutingRuleOK with default headers values

func (*DeleteMutingRuleOK) Code

func (o *DeleteMutingRuleOK) Code() int

Code gets the status code for the delete muting rule o k response

func (*DeleteMutingRuleOK) Error

func (o *DeleteMutingRuleOK) Error() string

func (*DeleteMutingRuleOK) GetPayload

func (*DeleteMutingRuleOK) IsClientError

func (o *DeleteMutingRuleOK) IsClientError() bool

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

func (*DeleteMutingRuleOK) IsCode

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

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

func (*DeleteMutingRuleOK) IsRedirect

func (o *DeleteMutingRuleOK) IsRedirect() bool

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

func (*DeleteMutingRuleOK) IsServerError

func (o *DeleteMutingRuleOK) IsServerError() bool

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

func (*DeleteMutingRuleOK) IsSuccess

func (o *DeleteMutingRuleOK) IsSuccess() bool

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

func (*DeleteMutingRuleOK) String

func (o *DeleteMutingRuleOK) String() string

type DeleteMutingRuleParams

type DeleteMutingRuleParams struct {

	// Slug.
	Slug string

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

DeleteMutingRuleParams contains all the parameters to send to the API endpoint

for the delete muting rule operation.

Typically these are written to a http.Request.

func NewDeleteMutingRuleParams

func NewDeleteMutingRuleParams() *DeleteMutingRuleParams

NewDeleteMutingRuleParams creates a new DeleteMutingRuleParams 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 NewDeleteMutingRuleParamsWithContext

func NewDeleteMutingRuleParamsWithContext(ctx context.Context) *DeleteMutingRuleParams

NewDeleteMutingRuleParamsWithContext creates a new DeleteMutingRuleParams object with the ability to set a context for a request.

func NewDeleteMutingRuleParamsWithHTTPClient

func NewDeleteMutingRuleParamsWithHTTPClient(client *http.Client) *DeleteMutingRuleParams

NewDeleteMutingRuleParamsWithHTTPClient creates a new DeleteMutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMutingRuleParamsWithTimeout

func NewDeleteMutingRuleParamsWithTimeout(timeout time.Duration) *DeleteMutingRuleParams

NewDeleteMutingRuleParamsWithTimeout creates a new DeleteMutingRuleParams object with the ability to set a timeout on a request.

func (*DeleteMutingRuleParams) SetContext

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

SetContext adds the context to the delete muting rule params

func (*DeleteMutingRuleParams) SetDefaults

func (o *DeleteMutingRuleParams) SetDefaults()

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

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

func (*DeleteMutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete muting rule params

func (*DeleteMutingRuleParams) SetSlug

func (o *DeleteMutingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the delete muting rule params

func (*DeleteMutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete muting rule params

func (*DeleteMutingRuleParams) WithContext

WithContext adds the context to the delete muting rule params

func (*DeleteMutingRuleParams) WithDefaults

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

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

func (*DeleteMutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete muting rule params

func (*DeleteMutingRuleParams) WithSlug

WithSlug adds the slug to the delete muting rule params

func (*DeleteMutingRuleParams) WithTimeout

WithTimeout adds the timeout to the delete muting rule params

func (*DeleteMutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMutingRuleReader

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

DeleteMutingRuleReader is a Reader for the DeleteMutingRule structure.

func (*DeleteMutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMutingRulesDefault

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

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

An undefined error response.

func NewListMutingRulesDefault

func NewListMutingRulesDefault(code int) *ListMutingRulesDefault

NewListMutingRulesDefault creates a ListMutingRulesDefault with default headers values

func (*ListMutingRulesDefault) Code

func (o *ListMutingRulesDefault) Code() int

Code gets the status code for the list muting rules default response

func (*ListMutingRulesDefault) Error

func (o *ListMutingRulesDefault) Error() string

func (*ListMutingRulesDefault) GetPayload

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

func (*ListMutingRulesDefault) IsClientError

func (o *ListMutingRulesDefault) IsClientError() bool

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

func (*ListMutingRulesDefault) IsCode

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

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

func (*ListMutingRulesDefault) IsRedirect

func (o *ListMutingRulesDefault) IsRedirect() bool

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

func (*ListMutingRulesDefault) IsServerError

func (o *ListMutingRulesDefault) IsServerError() bool

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

func (*ListMutingRulesDefault) IsSuccess

func (o *ListMutingRulesDefault) IsSuccess() bool

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

func (*ListMutingRulesDefault) String

func (o *ListMutingRulesDefault) String() string

type ListMutingRulesInternalServerError

type ListMutingRulesInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListMutingRulesInternalServerError

func NewListMutingRulesInternalServerError() *ListMutingRulesInternalServerError

NewListMutingRulesInternalServerError creates a ListMutingRulesInternalServerError with default headers values

func (*ListMutingRulesInternalServerError) Code

Code gets the status code for the list muting rules internal server error response

func (*ListMutingRulesInternalServerError) Error

func (*ListMutingRulesInternalServerError) GetPayload

func (*ListMutingRulesInternalServerError) IsClientError

func (o *ListMutingRulesInternalServerError) IsClientError() bool

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

func (*ListMutingRulesInternalServerError) IsCode

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

func (*ListMutingRulesInternalServerError) IsRedirect

func (o *ListMutingRulesInternalServerError) IsRedirect() bool

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

func (*ListMutingRulesInternalServerError) IsServerError

func (o *ListMutingRulesInternalServerError) IsServerError() bool

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

func (*ListMutingRulesInternalServerError) IsSuccess

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

func (*ListMutingRulesInternalServerError) String

type ListMutingRulesOK

type ListMutingRulesOK struct {
	Payload *models.Configv1ListMutingRulesResponse
}

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

A successful response.

func NewListMutingRulesOK

func NewListMutingRulesOK() *ListMutingRulesOK

NewListMutingRulesOK creates a ListMutingRulesOK with default headers values

func (*ListMutingRulesOK) Code

func (o *ListMutingRulesOK) Code() int

Code gets the status code for the list muting rules o k response

func (*ListMutingRulesOK) Error

func (o *ListMutingRulesOK) Error() string

func (*ListMutingRulesOK) GetPayload

func (*ListMutingRulesOK) IsClientError

func (o *ListMutingRulesOK) IsClientError() bool

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

func (*ListMutingRulesOK) IsCode

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

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

func (*ListMutingRulesOK) IsRedirect

func (o *ListMutingRulesOK) IsRedirect() bool

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

func (*ListMutingRulesOK) IsServerError

func (o *ListMutingRulesOK) IsServerError() bool

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

func (*ListMutingRulesOK) IsSuccess

func (o *ListMutingRulesOK) IsSuccess() bool

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

func (*ListMutingRulesOK) String

func (o *ListMutingRulesOK) String() string

type ListMutingRulesParams

type ListMutingRulesParams struct {

	/* Names.

	   Filters results by name, where any MutingRule 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 MutingRule with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* States.

	     Lists muting rules filtered by the states.
	If empty, all muting rules are included.
	*/
	States []string

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

ListMutingRulesParams contains all the parameters to send to the API endpoint

for the list muting rules operation.

Typically these are written to a http.Request.

func NewListMutingRulesParams

func NewListMutingRulesParams() *ListMutingRulesParams

NewListMutingRulesParams creates a new ListMutingRulesParams 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 NewListMutingRulesParamsWithContext

func NewListMutingRulesParamsWithContext(ctx context.Context) *ListMutingRulesParams

NewListMutingRulesParamsWithContext creates a new ListMutingRulesParams object with the ability to set a context for a request.

func NewListMutingRulesParamsWithHTTPClient

func NewListMutingRulesParamsWithHTTPClient(client *http.Client) *ListMutingRulesParams

NewListMutingRulesParamsWithHTTPClient creates a new ListMutingRulesParams object with the ability to set a custom HTTPClient for a request.

func NewListMutingRulesParamsWithTimeout

func NewListMutingRulesParamsWithTimeout(timeout time.Duration) *ListMutingRulesParams

NewListMutingRulesParamsWithTimeout creates a new ListMutingRulesParams object with the ability to set a timeout on a request.

func (*ListMutingRulesParams) SetContext

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

SetContext adds the context to the list muting rules params

func (*ListMutingRulesParams) SetDefaults

func (o *ListMutingRulesParams) SetDefaults()

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

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

func (*ListMutingRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list muting rules params

func (*ListMutingRulesParams) SetNames

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

SetNames adds the names to the list muting rules params

func (*ListMutingRulesParams) SetPageMaxSize

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

SetPageMaxSize adds the pageMaxSize to the list muting rules params

func (*ListMutingRulesParams) SetPageToken

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

SetPageToken adds the pageToken to the list muting rules params

func (*ListMutingRulesParams) SetSlugs

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

SetSlugs adds the slugs to the list muting rules params

func (*ListMutingRulesParams) SetStates

func (o *ListMutingRulesParams) SetStates(states []string)

SetStates adds the states to the list muting rules params

func (*ListMutingRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list muting rules params

func (*ListMutingRulesParams) WithContext

WithContext adds the context to the list muting rules params

func (*ListMutingRulesParams) WithDefaults

func (o *ListMutingRulesParams) WithDefaults() *ListMutingRulesParams

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

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

func (*ListMutingRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list muting rules params

func (*ListMutingRulesParams) WithNames

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

WithNames adds the names to the list muting rules params

func (*ListMutingRulesParams) WithPageMaxSize

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

WithPageMaxSize adds the pageMaxSize to the list muting rules params

func (*ListMutingRulesParams) WithPageToken

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

WithPageToken adds the pageToken to the list muting rules params

func (*ListMutingRulesParams) WithSlugs

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

WithSlugs adds the slugs to the list muting rules params

func (*ListMutingRulesParams) WithStates

func (o *ListMutingRulesParams) WithStates(states []string) *ListMutingRulesParams

WithStates adds the states to the list muting rules params

func (*ListMutingRulesParams) WithTimeout

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

WithTimeout adds the timeout to the list muting rules params

func (*ListMutingRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListMutingRulesReader

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

ListMutingRulesReader is a Reader for the ListMutingRules structure.

func (*ListMutingRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadMutingRuleDefault

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

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

An undefined error response.

func NewReadMutingRuleDefault

func NewReadMutingRuleDefault(code int) *ReadMutingRuleDefault

NewReadMutingRuleDefault creates a ReadMutingRuleDefault with default headers values

func (*ReadMutingRuleDefault) Code

func (o *ReadMutingRuleDefault) Code() int

Code gets the status code for the read muting rule default response

func (*ReadMutingRuleDefault) Error

func (o *ReadMutingRuleDefault) Error() string

func (*ReadMutingRuleDefault) GetPayload

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

func (*ReadMutingRuleDefault) IsClientError

func (o *ReadMutingRuleDefault) IsClientError() bool

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

func (*ReadMutingRuleDefault) IsCode

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

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

func (*ReadMutingRuleDefault) IsRedirect

func (o *ReadMutingRuleDefault) IsRedirect() bool

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

func (*ReadMutingRuleDefault) IsServerError

func (o *ReadMutingRuleDefault) IsServerError() bool

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

func (*ReadMutingRuleDefault) IsSuccess

func (o *ReadMutingRuleDefault) IsSuccess() bool

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

func (*ReadMutingRuleDefault) String

func (o *ReadMutingRuleDefault) String() string

type ReadMutingRuleInternalServerError

type ReadMutingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadMutingRuleInternalServerError

func NewReadMutingRuleInternalServerError() *ReadMutingRuleInternalServerError

NewReadMutingRuleInternalServerError creates a ReadMutingRuleInternalServerError with default headers values

func (*ReadMutingRuleInternalServerError) Code

Code gets the status code for the read muting rule internal server error response

func (*ReadMutingRuleInternalServerError) Error

func (*ReadMutingRuleInternalServerError) GetPayload

func (*ReadMutingRuleInternalServerError) IsClientError

func (o *ReadMutingRuleInternalServerError) IsClientError() bool

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

func (*ReadMutingRuleInternalServerError) IsCode

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

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

func (*ReadMutingRuleInternalServerError) IsRedirect

func (o *ReadMutingRuleInternalServerError) IsRedirect() bool

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

func (*ReadMutingRuleInternalServerError) IsServerError

func (o *ReadMutingRuleInternalServerError) IsServerError() bool

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

func (*ReadMutingRuleInternalServerError) IsSuccess

func (o *ReadMutingRuleInternalServerError) IsSuccess() bool

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

func (*ReadMutingRuleInternalServerError) String

type ReadMutingRuleNotFound

type ReadMutingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot read the MutingRule because the slug does not exist.

func NewReadMutingRuleNotFound

func NewReadMutingRuleNotFound() *ReadMutingRuleNotFound

NewReadMutingRuleNotFound creates a ReadMutingRuleNotFound with default headers values

func (*ReadMutingRuleNotFound) Code

func (o *ReadMutingRuleNotFound) Code() int

Code gets the status code for the read muting rule not found response

func (*ReadMutingRuleNotFound) Error

func (o *ReadMutingRuleNotFound) Error() string

func (*ReadMutingRuleNotFound) GetPayload

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

func (*ReadMutingRuleNotFound) IsClientError

func (o *ReadMutingRuleNotFound) IsClientError() bool

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

func (*ReadMutingRuleNotFound) IsCode

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

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

func (*ReadMutingRuleNotFound) IsRedirect

func (o *ReadMutingRuleNotFound) IsRedirect() bool

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

func (*ReadMutingRuleNotFound) IsServerError

func (o *ReadMutingRuleNotFound) IsServerError() bool

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

func (*ReadMutingRuleNotFound) IsSuccess

func (o *ReadMutingRuleNotFound) IsSuccess() bool

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

func (*ReadMutingRuleNotFound) String

func (o *ReadMutingRuleNotFound) String() string

type ReadMutingRuleOK

type ReadMutingRuleOK struct {
	Payload *models.Configv1ReadMutingRuleResponse
}

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

A successful response.

func NewReadMutingRuleOK

func NewReadMutingRuleOK() *ReadMutingRuleOK

NewReadMutingRuleOK creates a ReadMutingRuleOK with default headers values

func (*ReadMutingRuleOK) Code

func (o *ReadMutingRuleOK) Code() int

Code gets the status code for the read muting rule o k response

func (*ReadMutingRuleOK) Error

func (o *ReadMutingRuleOK) Error() string

func (*ReadMutingRuleOK) GetPayload

func (*ReadMutingRuleOK) IsClientError

func (o *ReadMutingRuleOK) IsClientError() bool

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

func (*ReadMutingRuleOK) IsCode

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

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

func (*ReadMutingRuleOK) IsRedirect

func (o *ReadMutingRuleOK) IsRedirect() bool

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

func (*ReadMutingRuleOK) IsServerError

func (o *ReadMutingRuleOK) IsServerError() bool

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

func (*ReadMutingRuleOK) IsSuccess

func (o *ReadMutingRuleOK) IsSuccess() bool

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

func (*ReadMutingRuleOK) String

func (o *ReadMutingRuleOK) String() string

type ReadMutingRuleParams

type ReadMutingRuleParams struct {

	// Slug.
	Slug string

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

ReadMutingRuleParams contains all the parameters to send to the API endpoint

for the read muting rule operation.

Typically these are written to a http.Request.

func NewReadMutingRuleParams

func NewReadMutingRuleParams() *ReadMutingRuleParams

NewReadMutingRuleParams creates a new ReadMutingRuleParams 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 NewReadMutingRuleParamsWithContext

func NewReadMutingRuleParamsWithContext(ctx context.Context) *ReadMutingRuleParams

NewReadMutingRuleParamsWithContext creates a new ReadMutingRuleParams object with the ability to set a context for a request.

func NewReadMutingRuleParamsWithHTTPClient

func NewReadMutingRuleParamsWithHTTPClient(client *http.Client) *ReadMutingRuleParams

NewReadMutingRuleParamsWithHTTPClient creates a new ReadMutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReadMutingRuleParamsWithTimeout

func NewReadMutingRuleParamsWithTimeout(timeout time.Duration) *ReadMutingRuleParams

NewReadMutingRuleParamsWithTimeout creates a new ReadMutingRuleParams object with the ability to set a timeout on a request.

func (*ReadMutingRuleParams) SetContext

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

SetContext adds the context to the read muting rule params

func (*ReadMutingRuleParams) SetDefaults

func (o *ReadMutingRuleParams) SetDefaults()

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

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

func (*ReadMutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read muting rule params

func (*ReadMutingRuleParams) SetSlug

func (o *ReadMutingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the read muting rule params

func (*ReadMutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the read muting rule params

func (*ReadMutingRuleParams) WithContext

WithContext adds the context to the read muting rule params

func (*ReadMutingRuleParams) WithDefaults

func (o *ReadMutingRuleParams) WithDefaults() *ReadMutingRuleParams

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

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

func (*ReadMutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read muting rule params

func (*ReadMutingRuleParams) WithSlug

WithSlug adds the slug to the read muting rule params

func (*ReadMutingRuleParams) WithTimeout

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

WithTimeout adds the timeout to the read muting rule params

func (*ReadMutingRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadMutingRuleReader

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

ReadMutingRuleReader is a Reader for the ReadMutingRule structure.

func (*ReadMutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateMutingRuleBadRequest

type UpdateMutingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the MutingRule because the request is invalid.

func NewUpdateMutingRuleBadRequest

func NewUpdateMutingRuleBadRequest() *UpdateMutingRuleBadRequest

NewUpdateMutingRuleBadRequest creates a UpdateMutingRuleBadRequest with default headers values

func (*UpdateMutingRuleBadRequest) Code

func (o *UpdateMutingRuleBadRequest) Code() int

Code gets the status code for the update muting rule bad request response

func (*UpdateMutingRuleBadRequest) Error

func (*UpdateMutingRuleBadRequest) GetPayload

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

func (*UpdateMutingRuleBadRequest) IsClientError

func (o *UpdateMutingRuleBadRequest) IsClientError() bool

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

func (*UpdateMutingRuleBadRequest) IsCode

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

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

func (*UpdateMutingRuleBadRequest) IsRedirect

func (o *UpdateMutingRuleBadRequest) IsRedirect() bool

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

func (*UpdateMutingRuleBadRequest) IsServerError

func (o *UpdateMutingRuleBadRequest) IsServerError() bool

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

func (*UpdateMutingRuleBadRequest) IsSuccess

func (o *UpdateMutingRuleBadRequest) IsSuccess() bool

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

func (*UpdateMutingRuleBadRequest) String

func (o *UpdateMutingRuleBadRequest) String() string

type UpdateMutingRuleConflict

type UpdateMutingRuleConflict struct {
	Payload *models.APIError
}

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

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

func NewUpdateMutingRuleConflict

func NewUpdateMutingRuleConflict() *UpdateMutingRuleConflict

NewUpdateMutingRuleConflict creates a UpdateMutingRuleConflict with default headers values

func (*UpdateMutingRuleConflict) Code

func (o *UpdateMutingRuleConflict) Code() int

Code gets the status code for the update muting rule conflict response

func (*UpdateMutingRuleConflict) Error

func (o *UpdateMutingRuleConflict) Error() string

func (*UpdateMutingRuleConflict) GetPayload

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

func (*UpdateMutingRuleConflict) IsClientError

func (o *UpdateMutingRuleConflict) IsClientError() bool

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

func (*UpdateMutingRuleConflict) IsCode

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

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

func (*UpdateMutingRuleConflict) IsRedirect

func (o *UpdateMutingRuleConflict) IsRedirect() bool

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

func (*UpdateMutingRuleConflict) IsServerError

func (o *UpdateMutingRuleConflict) IsServerError() bool

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

func (*UpdateMutingRuleConflict) IsSuccess

func (o *UpdateMutingRuleConflict) IsSuccess() bool

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

func (*UpdateMutingRuleConflict) String

func (o *UpdateMutingRuleConflict) String() string

type UpdateMutingRuleDefault

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

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

An undefined error response.

func NewUpdateMutingRuleDefault

func NewUpdateMutingRuleDefault(code int) *UpdateMutingRuleDefault

NewUpdateMutingRuleDefault creates a UpdateMutingRuleDefault with default headers values

func (*UpdateMutingRuleDefault) Code

func (o *UpdateMutingRuleDefault) Code() int

Code gets the status code for the update muting rule default response

func (*UpdateMutingRuleDefault) Error

func (o *UpdateMutingRuleDefault) Error() string

func (*UpdateMutingRuleDefault) GetPayload

func (*UpdateMutingRuleDefault) IsClientError

func (o *UpdateMutingRuleDefault) IsClientError() bool

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

func (*UpdateMutingRuleDefault) IsCode

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

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

func (*UpdateMutingRuleDefault) IsRedirect

func (o *UpdateMutingRuleDefault) IsRedirect() bool

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

func (*UpdateMutingRuleDefault) IsServerError

func (o *UpdateMutingRuleDefault) IsServerError() bool

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

func (*UpdateMutingRuleDefault) IsSuccess

func (o *UpdateMutingRuleDefault) IsSuccess() bool

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

func (*UpdateMutingRuleDefault) String

func (o *UpdateMutingRuleDefault) String() string

type UpdateMutingRuleInternalServerError

type UpdateMutingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateMutingRuleInternalServerError

func NewUpdateMutingRuleInternalServerError() *UpdateMutingRuleInternalServerError

NewUpdateMutingRuleInternalServerError creates a UpdateMutingRuleInternalServerError with default headers values

func (*UpdateMutingRuleInternalServerError) Code

Code gets the status code for the update muting rule internal server error response

func (*UpdateMutingRuleInternalServerError) Error

func (*UpdateMutingRuleInternalServerError) GetPayload

func (*UpdateMutingRuleInternalServerError) IsClientError

func (o *UpdateMutingRuleInternalServerError) IsClientError() bool

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

func (*UpdateMutingRuleInternalServerError) IsCode

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

func (*UpdateMutingRuleInternalServerError) IsRedirect

func (o *UpdateMutingRuleInternalServerError) IsRedirect() bool

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

func (*UpdateMutingRuleInternalServerError) IsServerError

func (o *UpdateMutingRuleInternalServerError) IsServerError() bool

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

func (*UpdateMutingRuleInternalServerError) IsSuccess

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

func (*UpdateMutingRuleInternalServerError) String

type UpdateMutingRuleNotFound

type UpdateMutingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot update the MutingRule because the slug does not exist.

func NewUpdateMutingRuleNotFound

func NewUpdateMutingRuleNotFound() *UpdateMutingRuleNotFound

NewUpdateMutingRuleNotFound creates a UpdateMutingRuleNotFound with default headers values

func (*UpdateMutingRuleNotFound) Code

func (o *UpdateMutingRuleNotFound) Code() int

Code gets the status code for the update muting rule not found response

func (*UpdateMutingRuleNotFound) Error

func (o *UpdateMutingRuleNotFound) Error() string

func (*UpdateMutingRuleNotFound) GetPayload

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

func (*UpdateMutingRuleNotFound) IsClientError

func (o *UpdateMutingRuleNotFound) IsClientError() bool

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

func (*UpdateMutingRuleNotFound) IsCode

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

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

func (*UpdateMutingRuleNotFound) IsRedirect

func (o *UpdateMutingRuleNotFound) IsRedirect() bool

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

func (*UpdateMutingRuleNotFound) IsServerError

func (o *UpdateMutingRuleNotFound) IsServerError() bool

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

func (*UpdateMutingRuleNotFound) IsSuccess

func (o *UpdateMutingRuleNotFound) IsSuccess() bool

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

func (*UpdateMutingRuleNotFound) String

func (o *UpdateMutingRuleNotFound) String() string

type UpdateMutingRuleOK

type UpdateMutingRuleOK struct {
	Payload *models.Configv1UpdateMutingRuleResponse
}

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

A successful response containing the updated MutingRule.

func NewUpdateMutingRuleOK

func NewUpdateMutingRuleOK() *UpdateMutingRuleOK

NewUpdateMutingRuleOK creates a UpdateMutingRuleOK with default headers values

func (*UpdateMutingRuleOK) Code

func (o *UpdateMutingRuleOK) Code() int

Code gets the status code for the update muting rule o k response

func (*UpdateMutingRuleOK) Error

func (o *UpdateMutingRuleOK) Error() string

func (*UpdateMutingRuleOK) GetPayload

func (*UpdateMutingRuleOK) IsClientError

func (o *UpdateMutingRuleOK) IsClientError() bool

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

func (*UpdateMutingRuleOK) IsCode

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

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

func (*UpdateMutingRuleOK) IsRedirect

func (o *UpdateMutingRuleOK) IsRedirect() bool

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

func (*UpdateMutingRuleOK) IsServerError

func (o *UpdateMutingRuleOK) IsServerError() bool

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

func (*UpdateMutingRuleOK) IsSuccess

func (o *UpdateMutingRuleOK) IsSuccess() bool

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

func (*UpdateMutingRuleOK) String

func (o *UpdateMutingRuleOK) String() string

type UpdateMutingRuleParams

type UpdateMutingRuleParams struct {

	// Body.
	Body *models.ConfigV1UpdateMutingRuleBody

	// Slug.
	Slug string

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

UpdateMutingRuleParams contains all the parameters to send to the API endpoint

for the update muting rule operation.

Typically these are written to a http.Request.

func NewUpdateMutingRuleParams

func NewUpdateMutingRuleParams() *UpdateMutingRuleParams

NewUpdateMutingRuleParams creates a new UpdateMutingRuleParams 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 NewUpdateMutingRuleParamsWithContext

func NewUpdateMutingRuleParamsWithContext(ctx context.Context) *UpdateMutingRuleParams

NewUpdateMutingRuleParamsWithContext creates a new UpdateMutingRuleParams object with the ability to set a context for a request.

func NewUpdateMutingRuleParamsWithHTTPClient

func NewUpdateMutingRuleParamsWithHTTPClient(client *http.Client) *UpdateMutingRuleParams

NewUpdateMutingRuleParamsWithHTTPClient creates a new UpdateMutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMutingRuleParamsWithTimeout

func NewUpdateMutingRuleParamsWithTimeout(timeout time.Duration) *UpdateMutingRuleParams

NewUpdateMutingRuleParamsWithTimeout creates a new UpdateMutingRuleParams object with the ability to set a timeout on a request.

func (*UpdateMutingRuleParams) SetBody

SetBody adds the body to the update muting rule params

func (*UpdateMutingRuleParams) SetContext

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

SetContext adds the context to the update muting rule params

func (*UpdateMutingRuleParams) SetDefaults

func (o *UpdateMutingRuleParams) SetDefaults()

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

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

func (*UpdateMutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update muting rule params

func (*UpdateMutingRuleParams) SetSlug

func (o *UpdateMutingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the update muting rule params

func (*UpdateMutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update muting rule params

func (*UpdateMutingRuleParams) WithBody

WithBody adds the body to the update muting rule params

func (*UpdateMutingRuleParams) WithContext

WithContext adds the context to the update muting rule params

func (*UpdateMutingRuleParams) WithDefaults

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

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

func (*UpdateMutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update muting rule params

func (*UpdateMutingRuleParams) WithSlug

WithSlug adds the slug to the update muting rule params

func (*UpdateMutingRuleParams) WithTimeout

WithTimeout adds the timeout to the update muting rule params

func (*UpdateMutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateMutingRuleReader

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

UpdateMutingRuleReader is a Reader for the UpdateMutingRule structure.

func (*UpdateMutingRuleReader) ReadResponse

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