Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateMutingRule(params *CreateMutingRuleParams, opts ...ClientOption) (*CreateMutingRuleOK, error)
- func (a *Client) DeleteMutingRule(params *DeleteMutingRuleParams, opts ...ClientOption) (*DeleteMutingRuleOK, error)
- func (a *Client) ListMutingRules(params *ListMutingRulesParams, opts ...ClientOption) (*ListMutingRulesOK, error)
- func (a *Client) ReadMutingRule(params *ReadMutingRuleParams, opts ...ClientOption) (*ReadMutingRuleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateMutingRule(params *UpdateMutingRuleParams, opts ...ClientOption) (*UpdateMutingRuleOK, error)
- type ClientOption
- type ClientService
- type CreateMutingRuleBadRequest
- func (o *CreateMutingRuleBadRequest) Code() int
- func (o *CreateMutingRuleBadRequest) Error() string
- func (o *CreateMutingRuleBadRequest) GetPayload() *models.APIError
- func (o *CreateMutingRuleBadRequest) IsClientError() bool
- func (o *CreateMutingRuleBadRequest) IsCode(code int) bool
- func (o *CreateMutingRuleBadRequest) IsRedirect() bool
- func (o *CreateMutingRuleBadRequest) IsServerError() bool
- func (o *CreateMutingRuleBadRequest) IsSuccess() bool
- func (o *CreateMutingRuleBadRequest) String() string
- type CreateMutingRuleConflict
- func (o *CreateMutingRuleConflict) Code() int
- func (o *CreateMutingRuleConflict) Error() string
- func (o *CreateMutingRuleConflict) GetPayload() *models.APIError
- func (o *CreateMutingRuleConflict) IsClientError() bool
- func (o *CreateMutingRuleConflict) IsCode(code int) bool
- func (o *CreateMutingRuleConflict) IsRedirect() bool
- func (o *CreateMutingRuleConflict) IsServerError() bool
- func (o *CreateMutingRuleConflict) IsSuccess() bool
- func (o *CreateMutingRuleConflict) String() string
- type CreateMutingRuleDefault
- func (o *CreateMutingRuleDefault) Code() int
- func (o *CreateMutingRuleDefault) Error() string
- func (o *CreateMutingRuleDefault) GetPayload() models.GenericError
- func (o *CreateMutingRuleDefault) IsClientError() bool
- func (o *CreateMutingRuleDefault) IsCode(code int) bool
- func (o *CreateMutingRuleDefault) IsRedirect() bool
- func (o *CreateMutingRuleDefault) IsServerError() bool
- func (o *CreateMutingRuleDefault) IsSuccess() bool
- func (o *CreateMutingRuleDefault) String() string
- type CreateMutingRuleInternalServerError
- func (o *CreateMutingRuleInternalServerError) Code() int
- func (o *CreateMutingRuleInternalServerError) Error() string
- func (o *CreateMutingRuleInternalServerError) GetPayload() *models.APIError
- func (o *CreateMutingRuleInternalServerError) IsClientError() bool
- func (o *CreateMutingRuleInternalServerError) IsCode(code int) bool
- func (o *CreateMutingRuleInternalServerError) IsRedirect() bool
- func (o *CreateMutingRuleInternalServerError) IsServerError() bool
- func (o *CreateMutingRuleInternalServerError) IsSuccess() bool
- func (o *CreateMutingRuleInternalServerError) String() string
- type CreateMutingRuleOK
- func (o *CreateMutingRuleOK) Code() int
- func (o *CreateMutingRuleOK) Error() string
- func (o *CreateMutingRuleOK) GetPayload() *models.Configv1CreateMutingRuleResponse
- func (o *CreateMutingRuleOK) IsClientError() bool
- func (o *CreateMutingRuleOK) IsCode(code int) bool
- func (o *CreateMutingRuleOK) IsRedirect() bool
- func (o *CreateMutingRuleOK) IsServerError() bool
- func (o *CreateMutingRuleOK) IsSuccess() bool
- func (o *CreateMutingRuleOK) String() string
- type CreateMutingRuleParams
- func NewCreateMutingRuleParams() *CreateMutingRuleParams
- func NewCreateMutingRuleParamsWithContext(ctx context.Context) *CreateMutingRuleParams
- func NewCreateMutingRuleParamsWithHTTPClient(client *http.Client) *CreateMutingRuleParams
- func NewCreateMutingRuleParamsWithTimeout(timeout time.Duration) *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) SetBody(body *models.Configv1CreateMutingRuleRequest)
- func (o *CreateMutingRuleParams) SetContext(ctx context.Context)
- func (o *CreateMutingRuleParams) SetDefaults()
- func (o *CreateMutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateMutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateMutingRuleParams) WithBody(body *models.Configv1CreateMutingRuleRequest) *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) WithContext(ctx context.Context) *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) WithDefaults() *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) WithHTTPClient(client *http.Client) *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) WithTimeout(timeout time.Duration) *CreateMutingRuleParams
- func (o *CreateMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMutingRuleReader
- type DeleteMutingRuleBadRequest
- func (o *DeleteMutingRuleBadRequest) Code() int
- func (o *DeleteMutingRuleBadRequest) Error() string
- func (o *DeleteMutingRuleBadRequest) GetPayload() *models.APIError
- func (o *DeleteMutingRuleBadRequest) IsClientError() bool
- func (o *DeleteMutingRuleBadRequest) IsCode(code int) bool
- func (o *DeleteMutingRuleBadRequest) IsRedirect() bool
- func (o *DeleteMutingRuleBadRequest) IsServerError() bool
- func (o *DeleteMutingRuleBadRequest) IsSuccess() bool
- func (o *DeleteMutingRuleBadRequest) String() string
- type DeleteMutingRuleDefault
- func (o *DeleteMutingRuleDefault) Code() int
- func (o *DeleteMutingRuleDefault) Error() string
- func (o *DeleteMutingRuleDefault) GetPayload() models.GenericError
- func (o *DeleteMutingRuleDefault) IsClientError() bool
- func (o *DeleteMutingRuleDefault) IsCode(code int) bool
- func (o *DeleteMutingRuleDefault) IsRedirect() bool
- func (o *DeleteMutingRuleDefault) IsServerError() bool
- func (o *DeleteMutingRuleDefault) IsSuccess() bool
- func (o *DeleteMutingRuleDefault) String() string
- type DeleteMutingRuleInternalServerError
- func (o *DeleteMutingRuleInternalServerError) Code() int
- func (o *DeleteMutingRuleInternalServerError) Error() string
- func (o *DeleteMutingRuleInternalServerError) GetPayload() *models.APIError
- func (o *DeleteMutingRuleInternalServerError) IsClientError() bool
- func (o *DeleteMutingRuleInternalServerError) IsCode(code int) bool
- func (o *DeleteMutingRuleInternalServerError) IsRedirect() bool
- func (o *DeleteMutingRuleInternalServerError) IsServerError() bool
- func (o *DeleteMutingRuleInternalServerError) IsSuccess() bool
- func (o *DeleteMutingRuleInternalServerError) String() string
- type DeleteMutingRuleNotFound
- func (o *DeleteMutingRuleNotFound) Code() int
- func (o *DeleteMutingRuleNotFound) Error() string
- func (o *DeleteMutingRuleNotFound) GetPayload() *models.APIError
- func (o *DeleteMutingRuleNotFound) IsClientError() bool
- func (o *DeleteMutingRuleNotFound) IsCode(code int) bool
- func (o *DeleteMutingRuleNotFound) IsRedirect() bool
- func (o *DeleteMutingRuleNotFound) IsServerError() bool
- func (o *DeleteMutingRuleNotFound) IsSuccess() bool
- func (o *DeleteMutingRuleNotFound) String() string
- type DeleteMutingRuleOK
- func (o *DeleteMutingRuleOK) Code() int
- func (o *DeleteMutingRuleOK) Error() string
- func (o *DeleteMutingRuleOK) GetPayload() models.Configv1DeleteMutingRuleResponse
- func (o *DeleteMutingRuleOK) IsClientError() bool
- func (o *DeleteMutingRuleOK) IsCode(code int) bool
- func (o *DeleteMutingRuleOK) IsRedirect() bool
- func (o *DeleteMutingRuleOK) IsServerError() bool
- func (o *DeleteMutingRuleOK) IsSuccess() bool
- func (o *DeleteMutingRuleOK) String() string
- type DeleteMutingRuleParams
- func NewDeleteMutingRuleParams() *DeleteMutingRuleParams
- func NewDeleteMutingRuleParamsWithContext(ctx context.Context) *DeleteMutingRuleParams
- func NewDeleteMutingRuleParamsWithHTTPClient(client *http.Client) *DeleteMutingRuleParams
- func NewDeleteMutingRuleParamsWithTimeout(timeout time.Duration) *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) SetContext(ctx context.Context)
- func (o *DeleteMutingRuleParams) SetDefaults()
- func (o *DeleteMutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMutingRuleParams) SetSlug(slug string)
- func (o *DeleteMutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMutingRuleParams) WithContext(ctx context.Context) *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) WithDefaults() *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) WithHTTPClient(client *http.Client) *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) WithSlug(slug string) *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) WithTimeout(timeout time.Duration) *DeleteMutingRuleParams
- func (o *DeleteMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMutingRuleReader
- type ListMutingRulesDefault
- func (o *ListMutingRulesDefault) Code() int
- func (o *ListMutingRulesDefault) Error() string
- func (o *ListMutingRulesDefault) GetPayload() models.GenericError
- func (o *ListMutingRulesDefault) IsClientError() bool
- func (o *ListMutingRulesDefault) IsCode(code int) bool
- func (o *ListMutingRulesDefault) IsRedirect() bool
- func (o *ListMutingRulesDefault) IsServerError() bool
- func (o *ListMutingRulesDefault) IsSuccess() bool
- func (o *ListMutingRulesDefault) String() string
- type ListMutingRulesInternalServerError
- func (o *ListMutingRulesInternalServerError) Code() int
- func (o *ListMutingRulesInternalServerError) Error() string
- func (o *ListMutingRulesInternalServerError) GetPayload() *models.APIError
- func (o *ListMutingRulesInternalServerError) IsClientError() bool
- func (o *ListMutingRulesInternalServerError) IsCode(code int) bool
- func (o *ListMutingRulesInternalServerError) IsRedirect() bool
- func (o *ListMutingRulesInternalServerError) IsServerError() bool
- func (o *ListMutingRulesInternalServerError) IsSuccess() bool
- func (o *ListMutingRulesInternalServerError) String() string
- type ListMutingRulesOK
- func (o *ListMutingRulesOK) Code() int
- func (o *ListMutingRulesOK) Error() string
- func (o *ListMutingRulesOK) GetPayload() *models.Configv1ListMutingRulesResponse
- func (o *ListMutingRulesOK) IsClientError() bool
- func (o *ListMutingRulesOK) IsCode(code int) bool
- func (o *ListMutingRulesOK) IsRedirect() bool
- func (o *ListMutingRulesOK) IsServerError() bool
- func (o *ListMutingRulesOK) IsSuccess() bool
- func (o *ListMutingRulesOK) String() string
- type ListMutingRulesParams
- func NewListMutingRulesParams() *ListMutingRulesParams
- func NewListMutingRulesParamsWithContext(ctx context.Context) *ListMutingRulesParams
- func NewListMutingRulesParamsWithHTTPClient(client *http.Client) *ListMutingRulesParams
- func NewListMutingRulesParamsWithTimeout(timeout time.Duration) *ListMutingRulesParams
- func (o *ListMutingRulesParams) SetContext(ctx context.Context)
- func (o *ListMutingRulesParams) SetDefaults()
- func (o *ListMutingRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListMutingRulesParams) SetNames(names []string)
- func (o *ListMutingRulesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListMutingRulesParams) SetPageToken(pageToken *string)
- func (o *ListMutingRulesParams) SetSlugs(slugs []string)
- func (o *ListMutingRulesParams) SetStates(states []string)
- func (o *ListMutingRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListMutingRulesParams) WithContext(ctx context.Context) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithDefaults() *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithHTTPClient(client *http.Client) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithNames(names []string) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithPageToken(pageToken *string) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithSlugs(slugs []string) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithStates(states []string) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WithTimeout(timeout time.Duration) *ListMutingRulesParams
- func (o *ListMutingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMutingRulesReader
- type ReadMutingRuleDefault
- func (o *ReadMutingRuleDefault) Code() int
- func (o *ReadMutingRuleDefault) Error() string
- func (o *ReadMutingRuleDefault) GetPayload() models.GenericError
- func (o *ReadMutingRuleDefault) IsClientError() bool
- func (o *ReadMutingRuleDefault) IsCode(code int) bool
- func (o *ReadMutingRuleDefault) IsRedirect() bool
- func (o *ReadMutingRuleDefault) IsServerError() bool
- func (o *ReadMutingRuleDefault) IsSuccess() bool
- func (o *ReadMutingRuleDefault) String() string
- type ReadMutingRuleInternalServerError
- func (o *ReadMutingRuleInternalServerError) Code() int
- func (o *ReadMutingRuleInternalServerError) Error() string
- func (o *ReadMutingRuleInternalServerError) GetPayload() *models.APIError
- func (o *ReadMutingRuleInternalServerError) IsClientError() bool
- func (o *ReadMutingRuleInternalServerError) IsCode(code int) bool
- func (o *ReadMutingRuleInternalServerError) IsRedirect() bool
- func (o *ReadMutingRuleInternalServerError) IsServerError() bool
- func (o *ReadMutingRuleInternalServerError) IsSuccess() bool
- func (o *ReadMutingRuleInternalServerError) String() string
- type ReadMutingRuleNotFound
- func (o *ReadMutingRuleNotFound) Code() int
- func (o *ReadMutingRuleNotFound) Error() string
- func (o *ReadMutingRuleNotFound) GetPayload() *models.APIError
- func (o *ReadMutingRuleNotFound) IsClientError() bool
- func (o *ReadMutingRuleNotFound) IsCode(code int) bool
- func (o *ReadMutingRuleNotFound) IsRedirect() bool
- func (o *ReadMutingRuleNotFound) IsServerError() bool
- func (o *ReadMutingRuleNotFound) IsSuccess() bool
- func (o *ReadMutingRuleNotFound) String() string
- type ReadMutingRuleOK
- func (o *ReadMutingRuleOK) Code() int
- func (o *ReadMutingRuleOK) Error() string
- func (o *ReadMutingRuleOK) GetPayload() *models.Configv1ReadMutingRuleResponse
- func (o *ReadMutingRuleOK) IsClientError() bool
- func (o *ReadMutingRuleOK) IsCode(code int) bool
- func (o *ReadMutingRuleOK) IsRedirect() bool
- func (o *ReadMutingRuleOK) IsServerError() bool
- func (o *ReadMutingRuleOK) IsSuccess() bool
- func (o *ReadMutingRuleOK) String() string
- type ReadMutingRuleParams
- func NewReadMutingRuleParams() *ReadMutingRuleParams
- func NewReadMutingRuleParamsWithContext(ctx context.Context) *ReadMutingRuleParams
- func NewReadMutingRuleParamsWithHTTPClient(client *http.Client) *ReadMutingRuleParams
- func NewReadMutingRuleParamsWithTimeout(timeout time.Duration) *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) SetContext(ctx context.Context)
- func (o *ReadMutingRuleParams) SetDefaults()
- func (o *ReadMutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReadMutingRuleParams) SetSlug(slug string)
- func (o *ReadMutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReadMutingRuleParams) WithContext(ctx context.Context) *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) WithDefaults() *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) WithHTTPClient(client *http.Client) *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) WithSlug(slug string) *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) WithTimeout(timeout time.Duration) *ReadMutingRuleParams
- func (o *ReadMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadMutingRuleReader
- type UpdateMutingRuleBadRequest
- func (o *UpdateMutingRuleBadRequest) Code() int
- func (o *UpdateMutingRuleBadRequest) Error() string
- func (o *UpdateMutingRuleBadRequest) GetPayload() *models.APIError
- func (o *UpdateMutingRuleBadRequest) IsClientError() bool
- func (o *UpdateMutingRuleBadRequest) IsCode(code int) bool
- func (o *UpdateMutingRuleBadRequest) IsRedirect() bool
- func (o *UpdateMutingRuleBadRequest) IsServerError() bool
- func (o *UpdateMutingRuleBadRequest) IsSuccess() bool
- func (o *UpdateMutingRuleBadRequest) String() string
- type UpdateMutingRuleConflict
- func (o *UpdateMutingRuleConflict) Code() int
- func (o *UpdateMutingRuleConflict) Error() string
- func (o *UpdateMutingRuleConflict) GetPayload() *models.APIError
- func (o *UpdateMutingRuleConflict) IsClientError() bool
- func (o *UpdateMutingRuleConflict) IsCode(code int) bool
- func (o *UpdateMutingRuleConflict) IsRedirect() bool
- func (o *UpdateMutingRuleConflict) IsServerError() bool
- func (o *UpdateMutingRuleConflict) IsSuccess() bool
- func (o *UpdateMutingRuleConflict) String() string
- type UpdateMutingRuleDefault
- func (o *UpdateMutingRuleDefault) Code() int
- func (o *UpdateMutingRuleDefault) Error() string
- func (o *UpdateMutingRuleDefault) GetPayload() models.GenericError
- func (o *UpdateMutingRuleDefault) IsClientError() bool
- func (o *UpdateMutingRuleDefault) IsCode(code int) bool
- func (o *UpdateMutingRuleDefault) IsRedirect() bool
- func (o *UpdateMutingRuleDefault) IsServerError() bool
- func (o *UpdateMutingRuleDefault) IsSuccess() bool
- func (o *UpdateMutingRuleDefault) String() string
- type UpdateMutingRuleInternalServerError
- func (o *UpdateMutingRuleInternalServerError) Code() int
- func (o *UpdateMutingRuleInternalServerError) Error() string
- func (o *UpdateMutingRuleInternalServerError) GetPayload() *models.APIError
- func (o *UpdateMutingRuleInternalServerError) IsClientError() bool
- func (o *UpdateMutingRuleInternalServerError) IsCode(code int) bool
- func (o *UpdateMutingRuleInternalServerError) IsRedirect() bool
- func (o *UpdateMutingRuleInternalServerError) IsServerError() bool
- func (o *UpdateMutingRuleInternalServerError) IsSuccess() bool
- func (o *UpdateMutingRuleInternalServerError) String() string
- type UpdateMutingRuleNotFound
- func (o *UpdateMutingRuleNotFound) Code() int
- func (o *UpdateMutingRuleNotFound) Error() string
- func (o *UpdateMutingRuleNotFound) GetPayload() *models.APIError
- func (o *UpdateMutingRuleNotFound) IsClientError() bool
- func (o *UpdateMutingRuleNotFound) IsCode(code int) bool
- func (o *UpdateMutingRuleNotFound) IsRedirect() bool
- func (o *UpdateMutingRuleNotFound) IsServerError() bool
- func (o *UpdateMutingRuleNotFound) IsSuccess() bool
- func (o *UpdateMutingRuleNotFound) String() string
- type UpdateMutingRuleOK
- func (o *UpdateMutingRuleOK) Code() int
- func (o *UpdateMutingRuleOK) Error() string
- func (o *UpdateMutingRuleOK) GetPayload() *models.Configv1UpdateMutingRuleResponse
- func (o *UpdateMutingRuleOK) IsClientError() bool
- func (o *UpdateMutingRuleOK) IsCode(code int) bool
- func (o *UpdateMutingRuleOK) IsRedirect() bool
- func (o *UpdateMutingRuleOK) IsServerError() bool
- func (o *UpdateMutingRuleOK) IsSuccess() bool
- func (o *UpdateMutingRuleOK) String() string
- type UpdateMutingRuleParams
- func NewUpdateMutingRuleParams() *UpdateMutingRuleParams
- func NewUpdateMutingRuleParamsWithContext(ctx context.Context) *UpdateMutingRuleParams
- func NewUpdateMutingRuleParamsWithHTTPClient(client *http.Client) *UpdateMutingRuleParams
- func NewUpdateMutingRuleParamsWithTimeout(timeout time.Duration) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) SetBody(body *models.ConfigV1UpdateMutingRuleBody)
- func (o *UpdateMutingRuleParams) SetContext(ctx context.Context)
- func (o *UpdateMutingRuleParams) SetDefaults()
- func (o *UpdateMutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMutingRuleParams) SetSlug(slug string)
- func (o *UpdateMutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMutingRuleParams) WithBody(body *models.ConfigV1UpdateMutingRuleBody) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WithContext(ctx context.Context) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WithDefaults() *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WithHTTPClient(client *http.Client) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WithSlug(slug string) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WithTimeout(timeout time.Duration) *UpdateMutingRuleParams
- func (o *UpdateMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMutingRuleReader
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 ¶
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 (o *CreateMutingRuleBadRequest) Error() string
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 ¶
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 (o *CreateMutingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *CreateMutingRuleInternalServerError) Code() int
Code gets the status code for the create muting rule internal server error response
func (*CreateMutingRuleInternalServerError) Error ¶
func (o *CreateMutingRuleInternalServerError) Error() string
func (*CreateMutingRuleInternalServerError) GetPayload ¶
func (o *CreateMutingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *CreateMutingRuleInternalServerError) IsCode(code int) bool
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 ¶
func (o *CreateMutingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this create muting rule internal server error response has a 2xx status code
func (*CreateMutingRuleInternalServerError) String ¶
func (o *CreateMutingRuleInternalServerError) String() 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 (o *CreateMutingRuleOK) GetPayload() *models.Configv1CreateMutingRuleResponse
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 ¶
func (o *CreateMutingRuleParams) SetBody(body *models.Configv1CreateMutingRuleRequest)
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 ¶
func (o *CreateMutingRuleParams) WithBody(body *models.Configv1CreateMutingRuleRequest) *CreateMutingRuleParams
WithBody adds the body to the create muting rule params
func (*CreateMutingRuleParams) WithContext ¶
func (o *CreateMutingRuleParams) WithContext(ctx context.Context) *CreateMutingRuleParams
WithContext adds the context to the create muting rule params
func (*CreateMutingRuleParams) WithDefaults ¶
func (o *CreateMutingRuleParams) WithDefaults() *CreateMutingRuleParams
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 ¶
func (o *CreateMutingRuleParams) WithTimeout(timeout time.Duration) *CreateMutingRuleParams
WithTimeout adds the timeout to the create muting rule params
func (*CreateMutingRuleParams) WriteToRequest ¶
func (o *CreateMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *DeleteMutingRuleBadRequest) Error() string
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 (o *DeleteMutingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *DeleteMutingRuleInternalServerError) Code() int
Code gets the status code for the delete muting rule internal server error response
func (*DeleteMutingRuleInternalServerError) Error ¶
func (o *DeleteMutingRuleInternalServerError) Error() string
func (*DeleteMutingRuleInternalServerError) GetPayload ¶
func (o *DeleteMutingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *DeleteMutingRuleInternalServerError) IsCode(code int) bool
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 ¶
func (o *DeleteMutingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete muting rule internal server error response has a 2xx status code
func (*DeleteMutingRuleInternalServerError) String ¶
func (o *DeleteMutingRuleInternalServerError) String() string
type DeleteMutingRuleNotFound ¶
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 (o *DeleteMutingRuleOK) GetPayload() models.Configv1DeleteMutingRuleResponse
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 ¶
func (o *DeleteMutingRuleParams) WithContext(ctx context.Context) *DeleteMutingRuleParams
WithContext adds the context to the delete muting rule params
func (*DeleteMutingRuleParams) WithDefaults ¶
func (o *DeleteMutingRuleParams) WithDefaults() *DeleteMutingRuleParams
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 ¶
func (o *DeleteMutingRuleParams) WithSlug(slug string) *DeleteMutingRuleParams
WithSlug adds the slug to the delete muting rule params
func (*DeleteMutingRuleParams) WithTimeout ¶
func (o *DeleteMutingRuleParams) WithTimeout(timeout time.Duration) *DeleteMutingRuleParams
WithTimeout adds the timeout to the delete muting rule params
func (*DeleteMutingRuleParams) WriteToRequest ¶
func (o *DeleteMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *ListMutingRulesInternalServerError) Code() int
Code gets the status code for the list muting rules internal server error response
func (*ListMutingRulesInternalServerError) Error ¶
func (o *ListMutingRulesInternalServerError) Error() string
func (*ListMutingRulesInternalServerError) GetPayload ¶
func (o *ListMutingRulesInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ListMutingRulesInternalServerError) IsCode(code int) bool
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 ¶
func (o *ListMutingRulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list muting rules internal server error response has a 2xx status code
func (*ListMutingRulesInternalServerError) String ¶
func (o *ListMutingRulesInternalServerError) String() 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 (o *ListMutingRulesOK) GetPayload() *models.Configv1ListMutingRulesResponse
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 ¶
func (o *ListMutingRulesParams) WithContext(ctx context.Context) *ListMutingRulesParams
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 ¶
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 ¶
func (o *ReadMutingRuleInternalServerError) Code() int
Code gets the status code for the read muting rule internal server error response
func (*ReadMutingRuleInternalServerError) Error ¶
func (o *ReadMutingRuleInternalServerError) Error() string
func (*ReadMutingRuleInternalServerError) GetPayload ¶
func (o *ReadMutingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadMutingRuleInternalServerError) String() string
type ReadMutingRuleNotFound ¶
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 (o *ReadMutingRuleOK) GetPayload() *models.Configv1ReadMutingRuleResponse
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 ¶
func (o *ReadMutingRuleParams) WithContext(ctx context.Context) *ReadMutingRuleParams
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 ¶
func (o *ReadMutingRuleParams) WithSlug(slug string) *ReadMutingRuleParams
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 ¶
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 (o *UpdateMutingRuleBadRequest) Error() string
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 ¶
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 (o *UpdateMutingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *UpdateMutingRuleInternalServerError) Code() int
Code gets the status code for the update muting rule internal server error response
func (*UpdateMutingRuleInternalServerError) Error ¶
func (o *UpdateMutingRuleInternalServerError) Error() string
func (*UpdateMutingRuleInternalServerError) GetPayload ¶
func (o *UpdateMutingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *UpdateMutingRuleInternalServerError) IsCode(code int) bool
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 ¶
func (o *UpdateMutingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this update muting rule internal server error response has a 2xx status code
func (*UpdateMutingRuleInternalServerError) String ¶
func (o *UpdateMutingRuleInternalServerError) String() string
type UpdateMutingRuleNotFound ¶
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 (o *UpdateMutingRuleOK) GetPayload() *models.Configv1UpdateMutingRuleResponse
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 ¶
func (o *UpdateMutingRuleParams) SetBody(body *models.ConfigV1UpdateMutingRuleBody)
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 ¶
func (o *UpdateMutingRuleParams) WithBody(body *models.ConfigV1UpdateMutingRuleBody) *UpdateMutingRuleParams
WithBody adds the body to the update muting rule params
func (*UpdateMutingRuleParams) WithContext ¶
func (o *UpdateMutingRuleParams) WithContext(ctx context.Context) *UpdateMutingRuleParams
WithContext adds the context to the update muting rule params
func (*UpdateMutingRuleParams) WithDefaults ¶
func (o *UpdateMutingRuleParams) WithDefaults() *UpdateMutingRuleParams
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 ¶
func (o *UpdateMutingRuleParams) WithSlug(slug string) *UpdateMutingRuleParams
WithSlug adds the slug to the update muting rule params
func (*UpdateMutingRuleParams) WithTimeout ¶
func (o *UpdateMutingRuleParams) WithTimeout(timeout time.Duration) *UpdateMutingRuleParams
WithTimeout adds the timeout to the update muting rule params
func (*UpdateMutingRuleParams) WriteToRequest ¶
func (o *UpdateMutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_muting_rule_parameters.go
- create_muting_rule_responses.go
- delete_muting_rule_parameters.go
- delete_muting_rule_responses.go
- list_muting_rules_parameters.go
- list_muting_rules_responses.go
- muting_rule_client.go
- read_muting_rule_parameters.go
- read_muting_rule_responses.go
- update_muting_rule_parameters.go
- update_muting_rule_responses.go