recording_rule

package
v1.0.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 recording rule API

func (*Client) CreateRecordingRule

func (a *Client) CreateRecordingRule(params *CreateRecordingRuleParams, opts ...ClientOption) (*CreateRecordingRuleOK, error)

CreateRecordingRule create recording rule API

func (*Client) DeleteRecordingRule

func (a *Client) DeleteRecordingRule(params *DeleteRecordingRuleParams, opts ...ClientOption) (*DeleteRecordingRuleOK, error)

DeleteRecordingRule delete recording rule API

func (*Client) ListRecordingRules

func (a *Client) ListRecordingRules(params *ListRecordingRulesParams, opts ...ClientOption) (*ListRecordingRulesOK, error)

ListRecordingRules list recording rules API

func (*Client) ReadRecordingRule

func (a *Client) ReadRecordingRule(params *ReadRecordingRuleParams, opts ...ClientOption) (*ReadRecordingRuleOK, error)

ReadRecordingRule read recording rule API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRecordingRule

func (a *Client) UpdateRecordingRule(params *UpdateRecordingRuleParams, opts ...ClientOption) (*UpdateRecordingRuleOK, error)

UpdateRecordingRule update recording rule API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateRecordingRule(params *CreateRecordingRuleParams, opts ...ClientOption) (*CreateRecordingRuleOK, error)

	DeleteRecordingRule(params *DeleteRecordingRuleParams, opts ...ClientOption) (*DeleteRecordingRuleOK, error)

	ListRecordingRules(params *ListRecordingRulesParams, opts ...ClientOption) (*ListRecordingRulesOK, error)

	ReadRecordingRule(params *ReadRecordingRuleParams, opts ...ClientOption) (*ReadRecordingRuleOK, error)

	UpdateRecordingRule(params *UpdateRecordingRuleParams, opts ...ClientOption) (*UpdateRecordingRuleOK, 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 recording rule API client.

type CreateRecordingRuleBadRequest

type CreateRecordingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the RecordingRule because the request is invalid.

func NewCreateRecordingRuleBadRequest

func NewCreateRecordingRuleBadRequest() *CreateRecordingRuleBadRequest

NewCreateRecordingRuleBadRequest creates a CreateRecordingRuleBadRequest with default headers values

func (*CreateRecordingRuleBadRequest) Code

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

func (*CreateRecordingRuleBadRequest) Error

func (*CreateRecordingRuleBadRequest) GetPayload

func (*CreateRecordingRuleBadRequest) IsClientError

func (o *CreateRecordingRuleBadRequest) IsClientError() bool

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

func (*CreateRecordingRuleBadRequest) IsCode

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

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

func (*CreateRecordingRuleBadRequest) IsRedirect

func (o *CreateRecordingRuleBadRequest) IsRedirect() bool

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

func (*CreateRecordingRuleBadRequest) IsServerError

func (o *CreateRecordingRuleBadRequest) IsServerError() bool

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

func (*CreateRecordingRuleBadRequest) IsSuccess

func (o *CreateRecordingRuleBadRequest) IsSuccess() bool

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

func (*CreateRecordingRuleBadRequest) String

type CreateRecordingRuleConflict

type CreateRecordingRuleConflict struct {
	Payload *models.APIError
}

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

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

func NewCreateRecordingRuleConflict

func NewCreateRecordingRuleConflict() *CreateRecordingRuleConflict

NewCreateRecordingRuleConflict creates a CreateRecordingRuleConflict with default headers values

func (*CreateRecordingRuleConflict) Code

func (o *CreateRecordingRuleConflict) Code() int

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

func (*CreateRecordingRuleConflict) Error

func (*CreateRecordingRuleConflict) GetPayload

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

func (*CreateRecordingRuleConflict) IsClientError

func (o *CreateRecordingRuleConflict) IsClientError() bool

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

func (*CreateRecordingRuleConflict) IsCode

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

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

func (*CreateRecordingRuleConflict) IsRedirect

func (o *CreateRecordingRuleConflict) IsRedirect() bool

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

func (*CreateRecordingRuleConflict) IsServerError

func (o *CreateRecordingRuleConflict) IsServerError() bool

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

func (*CreateRecordingRuleConflict) IsSuccess

func (o *CreateRecordingRuleConflict) IsSuccess() bool

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

func (*CreateRecordingRuleConflict) String

func (o *CreateRecordingRuleConflict) String() string

type CreateRecordingRuleDefault

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

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

An undefined error response.

func NewCreateRecordingRuleDefault

func NewCreateRecordingRuleDefault(code int) *CreateRecordingRuleDefault

NewCreateRecordingRuleDefault creates a CreateRecordingRuleDefault with default headers values

func (*CreateRecordingRuleDefault) Code

func (o *CreateRecordingRuleDefault) Code() int

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

func (*CreateRecordingRuleDefault) Error

func (*CreateRecordingRuleDefault) GetPayload

func (*CreateRecordingRuleDefault) IsClientError

func (o *CreateRecordingRuleDefault) IsClientError() bool

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

func (*CreateRecordingRuleDefault) IsCode

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

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

func (*CreateRecordingRuleDefault) IsRedirect

func (o *CreateRecordingRuleDefault) IsRedirect() bool

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

func (*CreateRecordingRuleDefault) IsServerError

func (o *CreateRecordingRuleDefault) IsServerError() bool

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

func (*CreateRecordingRuleDefault) IsSuccess

func (o *CreateRecordingRuleDefault) IsSuccess() bool

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

func (*CreateRecordingRuleDefault) String

func (o *CreateRecordingRuleDefault) String() string

type CreateRecordingRuleInternalServerError

type CreateRecordingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateRecordingRuleInternalServerError

func NewCreateRecordingRuleInternalServerError() *CreateRecordingRuleInternalServerError

NewCreateRecordingRuleInternalServerError creates a CreateRecordingRuleInternalServerError with default headers values

func (*CreateRecordingRuleInternalServerError) Code

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

func (*CreateRecordingRuleInternalServerError) Error

func (*CreateRecordingRuleInternalServerError) GetPayload

func (*CreateRecordingRuleInternalServerError) IsClientError

func (o *CreateRecordingRuleInternalServerError) IsClientError() bool

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

func (*CreateRecordingRuleInternalServerError) IsCode

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

func (*CreateRecordingRuleInternalServerError) IsRedirect

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

func (*CreateRecordingRuleInternalServerError) IsServerError

func (o *CreateRecordingRuleInternalServerError) IsServerError() bool

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

func (*CreateRecordingRuleInternalServerError) IsSuccess

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

func (*CreateRecordingRuleInternalServerError) String

type CreateRecordingRuleOK

type CreateRecordingRuleOK struct {
	Payload *models.Configv1CreateRecordingRuleResponse
}

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

A successful response containing the created RecordingRule.

func NewCreateRecordingRuleOK

func NewCreateRecordingRuleOK() *CreateRecordingRuleOK

NewCreateRecordingRuleOK creates a CreateRecordingRuleOK with default headers values

func (*CreateRecordingRuleOK) Code

func (o *CreateRecordingRuleOK) Code() int

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

func (*CreateRecordingRuleOK) Error

func (o *CreateRecordingRuleOK) Error() string

func (*CreateRecordingRuleOK) GetPayload

func (*CreateRecordingRuleOK) IsClientError

func (o *CreateRecordingRuleOK) IsClientError() bool

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

func (*CreateRecordingRuleOK) IsCode

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

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

func (*CreateRecordingRuleOK) IsRedirect

func (o *CreateRecordingRuleOK) IsRedirect() bool

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

func (*CreateRecordingRuleOK) IsServerError

func (o *CreateRecordingRuleOK) IsServerError() bool

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

func (*CreateRecordingRuleOK) IsSuccess

func (o *CreateRecordingRuleOK) IsSuccess() bool

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

func (*CreateRecordingRuleOK) String

func (o *CreateRecordingRuleOK) String() string

type CreateRecordingRuleParams

type CreateRecordingRuleParams struct {

	// Body.
	Body *models.Configv1CreateRecordingRuleRequest

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

CreateRecordingRuleParams contains all the parameters to send to the API endpoint

for the create recording rule operation.

Typically these are written to a http.Request.

func NewCreateRecordingRuleParams

func NewCreateRecordingRuleParams() *CreateRecordingRuleParams

NewCreateRecordingRuleParams creates a new CreateRecordingRuleParams 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 NewCreateRecordingRuleParamsWithContext

func NewCreateRecordingRuleParamsWithContext(ctx context.Context) *CreateRecordingRuleParams

NewCreateRecordingRuleParamsWithContext creates a new CreateRecordingRuleParams object with the ability to set a context for a request.

func NewCreateRecordingRuleParamsWithHTTPClient

func NewCreateRecordingRuleParamsWithHTTPClient(client *http.Client) *CreateRecordingRuleParams

NewCreateRecordingRuleParamsWithHTTPClient creates a new CreateRecordingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRecordingRuleParamsWithTimeout

func NewCreateRecordingRuleParamsWithTimeout(timeout time.Duration) *CreateRecordingRuleParams

NewCreateRecordingRuleParamsWithTimeout creates a new CreateRecordingRuleParams object with the ability to set a timeout on a request.

func (*CreateRecordingRuleParams) SetBody

SetBody adds the body to the create recording rule params

func (*CreateRecordingRuleParams) SetContext

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

SetContext adds the context to the create recording rule params

func (*CreateRecordingRuleParams) SetDefaults

func (o *CreateRecordingRuleParams) SetDefaults()

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

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

func (*CreateRecordingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create recording rule params

func (*CreateRecordingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create recording rule params

func (*CreateRecordingRuleParams) WithBody

WithBody adds the body to the create recording rule params

func (*CreateRecordingRuleParams) WithContext

WithContext adds the context to the create recording rule params

func (*CreateRecordingRuleParams) WithDefaults

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

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

func (*CreateRecordingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create recording rule params

func (*CreateRecordingRuleParams) WithTimeout

WithTimeout adds the timeout to the create recording rule params

func (*CreateRecordingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateRecordingRuleReader

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

CreateRecordingRuleReader is a Reader for the CreateRecordingRule structure.

func (*CreateRecordingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRecordingRuleBadRequest

type DeleteRecordingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the RecordingRule because it is in use.

func NewDeleteRecordingRuleBadRequest

func NewDeleteRecordingRuleBadRequest() *DeleteRecordingRuleBadRequest

NewDeleteRecordingRuleBadRequest creates a DeleteRecordingRuleBadRequest with default headers values

func (*DeleteRecordingRuleBadRequest) Code

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

func (*DeleteRecordingRuleBadRequest) Error

func (*DeleteRecordingRuleBadRequest) GetPayload

func (*DeleteRecordingRuleBadRequest) IsClientError

func (o *DeleteRecordingRuleBadRequest) IsClientError() bool

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

func (*DeleteRecordingRuleBadRequest) IsCode

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

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

func (*DeleteRecordingRuleBadRequest) IsRedirect

func (o *DeleteRecordingRuleBadRequest) IsRedirect() bool

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

func (*DeleteRecordingRuleBadRequest) IsServerError

func (o *DeleteRecordingRuleBadRequest) IsServerError() bool

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

func (*DeleteRecordingRuleBadRequest) IsSuccess

func (o *DeleteRecordingRuleBadRequest) IsSuccess() bool

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

func (*DeleteRecordingRuleBadRequest) String

type DeleteRecordingRuleDefault

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

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

An undefined error response.

func NewDeleteRecordingRuleDefault

func NewDeleteRecordingRuleDefault(code int) *DeleteRecordingRuleDefault

NewDeleteRecordingRuleDefault creates a DeleteRecordingRuleDefault with default headers values

func (*DeleteRecordingRuleDefault) Code

func (o *DeleteRecordingRuleDefault) Code() int

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

func (*DeleteRecordingRuleDefault) Error

func (*DeleteRecordingRuleDefault) GetPayload

func (*DeleteRecordingRuleDefault) IsClientError

func (o *DeleteRecordingRuleDefault) IsClientError() bool

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

func (*DeleteRecordingRuleDefault) IsCode

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

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

func (*DeleteRecordingRuleDefault) IsRedirect

func (o *DeleteRecordingRuleDefault) IsRedirect() bool

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

func (*DeleteRecordingRuleDefault) IsServerError

func (o *DeleteRecordingRuleDefault) IsServerError() bool

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

func (*DeleteRecordingRuleDefault) IsSuccess

func (o *DeleteRecordingRuleDefault) IsSuccess() bool

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

func (*DeleteRecordingRuleDefault) String

func (o *DeleteRecordingRuleDefault) String() string

type DeleteRecordingRuleInternalServerError

type DeleteRecordingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteRecordingRuleInternalServerError

func NewDeleteRecordingRuleInternalServerError() *DeleteRecordingRuleInternalServerError

NewDeleteRecordingRuleInternalServerError creates a DeleteRecordingRuleInternalServerError with default headers values

func (*DeleteRecordingRuleInternalServerError) Code

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

func (*DeleteRecordingRuleInternalServerError) Error

func (*DeleteRecordingRuleInternalServerError) GetPayload

func (*DeleteRecordingRuleInternalServerError) IsClientError

func (o *DeleteRecordingRuleInternalServerError) IsClientError() bool

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

func (*DeleteRecordingRuleInternalServerError) IsCode

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

func (*DeleteRecordingRuleInternalServerError) IsRedirect

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

func (*DeleteRecordingRuleInternalServerError) IsServerError

func (o *DeleteRecordingRuleInternalServerError) IsServerError() bool

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

func (*DeleteRecordingRuleInternalServerError) IsSuccess

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

func (*DeleteRecordingRuleInternalServerError) String

type DeleteRecordingRuleNotFound

type DeleteRecordingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the RecordingRule because the slug does not exist.

func NewDeleteRecordingRuleNotFound

func NewDeleteRecordingRuleNotFound() *DeleteRecordingRuleNotFound

NewDeleteRecordingRuleNotFound creates a DeleteRecordingRuleNotFound with default headers values

func (*DeleteRecordingRuleNotFound) Code

func (o *DeleteRecordingRuleNotFound) Code() int

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

func (*DeleteRecordingRuleNotFound) Error

func (*DeleteRecordingRuleNotFound) GetPayload

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

func (*DeleteRecordingRuleNotFound) IsClientError

func (o *DeleteRecordingRuleNotFound) IsClientError() bool

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

func (*DeleteRecordingRuleNotFound) IsCode

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

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

func (*DeleteRecordingRuleNotFound) IsRedirect

func (o *DeleteRecordingRuleNotFound) IsRedirect() bool

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

func (*DeleteRecordingRuleNotFound) IsServerError

func (o *DeleteRecordingRuleNotFound) IsServerError() bool

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

func (*DeleteRecordingRuleNotFound) IsSuccess

func (o *DeleteRecordingRuleNotFound) IsSuccess() bool

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

func (*DeleteRecordingRuleNotFound) String

func (o *DeleteRecordingRuleNotFound) String() string

type DeleteRecordingRuleOK

type DeleteRecordingRuleOK struct {
	Payload models.Configv1DeleteRecordingRuleResponse
}

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

A successful response.

func NewDeleteRecordingRuleOK

func NewDeleteRecordingRuleOK() *DeleteRecordingRuleOK

NewDeleteRecordingRuleOK creates a DeleteRecordingRuleOK with default headers values

func (*DeleteRecordingRuleOK) Code

func (o *DeleteRecordingRuleOK) Code() int

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

func (*DeleteRecordingRuleOK) Error

func (o *DeleteRecordingRuleOK) Error() string

func (*DeleteRecordingRuleOK) GetPayload

func (*DeleteRecordingRuleOK) IsClientError

func (o *DeleteRecordingRuleOK) IsClientError() bool

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

func (*DeleteRecordingRuleOK) IsCode

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

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

func (*DeleteRecordingRuleOK) IsRedirect

func (o *DeleteRecordingRuleOK) IsRedirect() bool

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

func (*DeleteRecordingRuleOK) IsServerError

func (o *DeleteRecordingRuleOK) IsServerError() bool

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

func (*DeleteRecordingRuleOK) IsSuccess

func (o *DeleteRecordingRuleOK) IsSuccess() bool

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

func (*DeleteRecordingRuleOK) String

func (o *DeleteRecordingRuleOK) String() string

type DeleteRecordingRuleParams

type DeleteRecordingRuleParams struct {

	// Slug.
	Slug string

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

DeleteRecordingRuleParams contains all the parameters to send to the API endpoint

for the delete recording rule operation.

Typically these are written to a http.Request.

func NewDeleteRecordingRuleParams

func NewDeleteRecordingRuleParams() *DeleteRecordingRuleParams

NewDeleteRecordingRuleParams creates a new DeleteRecordingRuleParams 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 NewDeleteRecordingRuleParamsWithContext

func NewDeleteRecordingRuleParamsWithContext(ctx context.Context) *DeleteRecordingRuleParams

NewDeleteRecordingRuleParamsWithContext creates a new DeleteRecordingRuleParams object with the ability to set a context for a request.

func NewDeleteRecordingRuleParamsWithHTTPClient

func NewDeleteRecordingRuleParamsWithHTTPClient(client *http.Client) *DeleteRecordingRuleParams

NewDeleteRecordingRuleParamsWithHTTPClient creates a new DeleteRecordingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRecordingRuleParamsWithTimeout

func NewDeleteRecordingRuleParamsWithTimeout(timeout time.Duration) *DeleteRecordingRuleParams

NewDeleteRecordingRuleParamsWithTimeout creates a new DeleteRecordingRuleParams object with the ability to set a timeout on a request.

func (*DeleteRecordingRuleParams) SetContext

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

SetContext adds the context to the delete recording rule params

func (*DeleteRecordingRuleParams) SetDefaults

func (o *DeleteRecordingRuleParams) SetDefaults()

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

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

func (*DeleteRecordingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete recording rule params

func (*DeleteRecordingRuleParams) SetSlug

func (o *DeleteRecordingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the delete recording rule params

func (*DeleteRecordingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete recording rule params

func (*DeleteRecordingRuleParams) WithContext

WithContext adds the context to the delete recording rule params

func (*DeleteRecordingRuleParams) WithDefaults

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

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

func (*DeleteRecordingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete recording rule params

func (*DeleteRecordingRuleParams) WithSlug

WithSlug adds the slug to the delete recording rule params

func (*DeleteRecordingRuleParams) WithTimeout

WithTimeout adds the timeout to the delete recording rule params

func (*DeleteRecordingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRecordingRuleReader

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

DeleteRecordingRuleReader is a Reader for the DeleteRecordingRule structure.

func (*DeleteRecordingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRecordingRulesDefault

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

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

An undefined error response.

func NewListRecordingRulesDefault

func NewListRecordingRulesDefault(code int) *ListRecordingRulesDefault

NewListRecordingRulesDefault creates a ListRecordingRulesDefault with default headers values

func (*ListRecordingRulesDefault) Code

func (o *ListRecordingRulesDefault) Code() int

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

func (*ListRecordingRulesDefault) Error

func (o *ListRecordingRulesDefault) Error() string

func (*ListRecordingRulesDefault) GetPayload

func (*ListRecordingRulesDefault) IsClientError

func (o *ListRecordingRulesDefault) IsClientError() bool

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

func (*ListRecordingRulesDefault) IsCode

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

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

func (*ListRecordingRulesDefault) IsRedirect

func (o *ListRecordingRulesDefault) IsRedirect() bool

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

func (*ListRecordingRulesDefault) IsServerError

func (o *ListRecordingRulesDefault) IsServerError() bool

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

func (*ListRecordingRulesDefault) IsSuccess

func (o *ListRecordingRulesDefault) IsSuccess() bool

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

func (*ListRecordingRulesDefault) String

func (o *ListRecordingRulesDefault) String() string

type ListRecordingRulesInternalServerError

type ListRecordingRulesInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListRecordingRulesInternalServerError

func NewListRecordingRulesInternalServerError() *ListRecordingRulesInternalServerError

NewListRecordingRulesInternalServerError creates a ListRecordingRulesInternalServerError with default headers values

func (*ListRecordingRulesInternalServerError) Code

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

func (*ListRecordingRulesInternalServerError) Error

func (*ListRecordingRulesInternalServerError) GetPayload

func (*ListRecordingRulesInternalServerError) IsClientError

func (o *ListRecordingRulesInternalServerError) IsClientError() bool

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

func (*ListRecordingRulesInternalServerError) IsCode

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

func (*ListRecordingRulesInternalServerError) IsRedirect

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

func (*ListRecordingRulesInternalServerError) IsServerError

func (o *ListRecordingRulesInternalServerError) IsServerError() bool

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

func (*ListRecordingRulesInternalServerError) IsSuccess

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

func (*ListRecordingRulesInternalServerError) String

type ListRecordingRulesOK

type ListRecordingRulesOK struct {
	Payload *models.Configv1ListRecordingRulesResponse
}

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

A successful response.

func NewListRecordingRulesOK

func NewListRecordingRulesOK() *ListRecordingRulesOK

NewListRecordingRulesOK creates a ListRecordingRulesOK with default headers values

func (*ListRecordingRulesOK) Code

func (o *ListRecordingRulesOK) Code() int

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

func (*ListRecordingRulesOK) Error

func (o *ListRecordingRulesOK) Error() string

func (*ListRecordingRulesOK) GetPayload

func (*ListRecordingRulesOK) IsClientError

func (o *ListRecordingRulesOK) IsClientError() bool

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

func (*ListRecordingRulesOK) IsCode

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

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

func (*ListRecordingRulesOK) IsRedirect

func (o *ListRecordingRulesOK) IsRedirect() bool

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

func (*ListRecordingRulesOK) IsServerError

func (o *ListRecordingRulesOK) IsServerError() bool

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

func (*ListRecordingRulesOK) IsSuccess

func (o *ListRecordingRulesOK) IsSuccess() bool

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

func (*ListRecordingRulesOK) String

func (o *ListRecordingRulesOK) String() string

type ListRecordingRulesParams

type ListRecordingRulesParams struct {

	/* BucketSlugs.

	   The execution_groups filter cannot be used when a bucket_slug filter is provided.
	*/
	BucketSlugs []string

	/* ExecutionGroups.

	   The bucket_slugs filter cannot be used when an execution_group filter is provided.
	*/
	ExecutionGroups []string

	/* Names.

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

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

ListRecordingRulesParams contains all the parameters to send to the API endpoint

for the list recording rules operation.

Typically these are written to a http.Request.

func NewListRecordingRulesParams

func NewListRecordingRulesParams() *ListRecordingRulesParams

NewListRecordingRulesParams creates a new ListRecordingRulesParams 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 NewListRecordingRulesParamsWithContext

func NewListRecordingRulesParamsWithContext(ctx context.Context) *ListRecordingRulesParams

NewListRecordingRulesParamsWithContext creates a new ListRecordingRulesParams object with the ability to set a context for a request.

func NewListRecordingRulesParamsWithHTTPClient

func NewListRecordingRulesParamsWithHTTPClient(client *http.Client) *ListRecordingRulesParams

NewListRecordingRulesParamsWithHTTPClient creates a new ListRecordingRulesParams object with the ability to set a custom HTTPClient for a request.

func NewListRecordingRulesParamsWithTimeout

func NewListRecordingRulesParamsWithTimeout(timeout time.Duration) *ListRecordingRulesParams

NewListRecordingRulesParamsWithTimeout creates a new ListRecordingRulesParams object with the ability to set a timeout on a request.

func (*ListRecordingRulesParams) SetBucketSlugs

func (o *ListRecordingRulesParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list recording rules params

func (*ListRecordingRulesParams) SetContext

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

SetContext adds the context to the list recording rules params

func (*ListRecordingRulesParams) SetDefaults

func (o *ListRecordingRulesParams) SetDefaults()

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

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

func (*ListRecordingRulesParams) SetExecutionGroups

func (o *ListRecordingRulesParams) SetExecutionGroups(executionGroups []string)

SetExecutionGroups adds the executionGroups to the list recording rules params

func (*ListRecordingRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list recording rules params

func (*ListRecordingRulesParams) SetNames

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

SetNames adds the names to the list recording rules params

func (*ListRecordingRulesParams) SetPageMaxSize

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

SetPageMaxSize adds the pageMaxSize to the list recording rules params

func (*ListRecordingRulesParams) SetPageToken

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

SetPageToken adds the pageToken to the list recording rules params

func (*ListRecordingRulesParams) SetSlugs

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

SetSlugs adds the slugs to the list recording rules params

func (*ListRecordingRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list recording rules params

func (*ListRecordingRulesParams) WithBucketSlugs

func (o *ListRecordingRulesParams) WithBucketSlugs(bucketSlugs []string) *ListRecordingRulesParams

WithBucketSlugs adds the bucketSlugs to the list recording rules params

func (*ListRecordingRulesParams) WithContext

WithContext adds the context to the list recording rules params

func (*ListRecordingRulesParams) WithDefaults

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

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

func (*ListRecordingRulesParams) WithExecutionGroups

func (o *ListRecordingRulesParams) WithExecutionGroups(executionGroups []string) *ListRecordingRulesParams

WithExecutionGroups adds the executionGroups to the list recording rules params

func (*ListRecordingRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list recording rules params

func (*ListRecordingRulesParams) WithNames

WithNames adds the names to the list recording rules params

func (*ListRecordingRulesParams) WithPageMaxSize

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

WithPageMaxSize adds the pageMaxSize to the list recording rules params

func (*ListRecordingRulesParams) WithPageToken

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

WithPageToken adds the pageToken to the list recording rules params

func (*ListRecordingRulesParams) WithSlugs

WithSlugs adds the slugs to the list recording rules params

func (*ListRecordingRulesParams) WithTimeout

WithTimeout adds the timeout to the list recording rules params

func (*ListRecordingRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListRecordingRulesReader

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

ListRecordingRulesReader is a Reader for the ListRecordingRules structure.

func (*ListRecordingRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadRecordingRuleDefault

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

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

An undefined error response.

func NewReadRecordingRuleDefault

func NewReadRecordingRuleDefault(code int) *ReadRecordingRuleDefault

NewReadRecordingRuleDefault creates a ReadRecordingRuleDefault with default headers values

func (*ReadRecordingRuleDefault) Code

func (o *ReadRecordingRuleDefault) Code() int

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

func (*ReadRecordingRuleDefault) Error

func (o *ReadRecordingRuleDefault) Error() string

func (*ReadRecordingRuleDefault) GetPayload

func (*ReadRecordingRuleDefault) IsClientError

func (o *ReadRecordingRuleDefault) IsClientError() bool

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

func (*ReadRecordingRuleDefault) IsCode

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

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

func (*ReadRecordingRuleDefault) IsRedirect

func (o *ReadRecordingRuleDefault) IsRedirect() bool

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

func (*ReadRecordingRuleDefault) IsServerError

func (o *ReadRecordingRuleDefault) IsServerError() bool

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

func (*ReadRecordingRuleDefault) IsSuccess

func (o *ReadRecordingRuleDefault) IsSuccess() bool

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

func (*ReadRecordingRuleDefault) String

func (o *ReadRecordingRuleDefault) String() string

type ReadRecordingRuleInternalServerError

type ReadRecordingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadRecordingRuleInternalServerError

func NewReadRecordingRuleInternalServerError() *ReadRecordingRuleInternalServerError

NewReadRecordingRuleInternalServerError creates a ReadRecordingRuleInternalServerError with default headers values

func (*ReadRecordingRuleInternalServerError) Code

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

func (*ReadRecordingRuleInternalServerError) Error

func (*ReadRecordingRuleInternalServerError) GetPayload

func (*ReadRecordingRuleInternalServerError) IsClientError

func (o *ReadRecordingRuleInternalServerError) IsClientError() bool

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

func (*ReadRecordingRuleInternalServerError) IsCode

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

func (*ReadRecordingRuleInternalServerError) IsRedirect

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

func (*ReadRecordingRuleInternalServerError) IsServerError

func (o *ReadRecordingRuleInternalServerError) IsServerError() bool

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

func (*ReadRecordingRuleInternalServerError) IsSuccess

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

func (*ReadRecordingRuleInternalServerError) String

type ReadRecordingRuleNotFound

type ReadRecordingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot read the RecordingRule because the slug does not exist.

func NewReadRecordingRuleNotFound

func NewReadRecordingRuleNotFound() *ReadRecordingRuleNotFound

NewReadRecordingRuleNotFound creates a ReadRecordingRuleNotFound with default headers values

func (*ReadRecordingRuleNotFound) Code

func (o *ReadRecordingRuleNotFound) Code() int

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

func (*ReadRecordingRuleNotFound) Error

func (o *ReadRecordingRuleNotFound) Error() string

func (*ReadRecordingRuleNotFound) GetPayload

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

func (*ReadRecordingRuleNotFound) IsClientError

func (o *ReadRecordingRuleNotFound) IsClientError() bool

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

func (*ReadRecordingRuleNotFound) IsCode

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

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

func (*ReadRecordingRuleNotFound) IsRedirect

func (o *ReadRecordingRuleNotFound) IsRedirect() bool

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

func (*ReadRecordingRuleNotFound) IsServerError

func (o *ReadRecordingRuleNotFound) IsServerError() bool

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

func (*ReadRecordingRuleNotFound) IsSuccess

func (o *ReadRecordingRuleNotFound) IsSuccess() bool

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

func (*ReadRecordingRuleNotFound) String

func (o *ReadRecordingRuleNotFound) String() string

type ReadRecordingRuleOK

type ReadRecordingRuleOK struct {
	Payload *models.Configv1ReadRecordingRuleResponse
}

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

A successful response.

func NewReadRecordingRuleOK

func NewReadRecordingRuleOK() *ReadRecordingRuleOK

NewReadRecordingRuleOK creates a ReadRecordingRuleOK with default headers values

func (*ReadRecordingRuleOK) Code

func (o *ReadRecordingRuleOK) Code() int

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

func (*ReadRecordingRuleOK) Error

func (o *ReadRecordingRuleOK) Error() string

func (*ReadRecordingRuleOK) GetPayload

func (*ReadRecordingRuleOK) IsClientError

func (o *ReadRecordingRuleOK) IsClientError() bool

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

func (*ReadRecordingRuleOK) IsCode

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

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

func (*ReadRecordingRuleOK) IsRedirect

func (o *ReadRecordingRuleOK) IsRedirect() bool

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

func (*ReadRecordingRuleOK) IsServerError

func (o *ReadRecordingRuleOK) IsServerError() bool

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

func (*ReadRecordingRuleOK) IsSuccess

func (o *ReadRecordingRuleOK) IsSuccess() bool

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

func (*ReadRecordingRuleOK) String

func (o *ReadRecordingRuleOK) String() string

type ReadRecordingRuleParams

type ReadRecordingRuleParams struct {

	// Slug.
	Slug string

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

ReadRecordingRuleParams contains all the parameters to send to the API endpoint

for the read recording rule operation.

Typically these are written to a http.Request.

func NewReadRecordingRuleParams

func NewReadRecordingRuleParams() *ReadRecordingRuleParams

NewReadRecordingRuleParams creates a new ReadRecordingRuleParams 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 NewReadRecordingRuleParamsWithContext

func NewReadRecordingRuleParamsWithContext(ctx context.Context) *ReadRecordingRuleParams

NewReadRecordingRuleParamsWithContext creates a new ReadRecordingRuleParams object with the ability to set a context for a request.

func NewReadRecordingRuleParamsWithHTTPClient

func NewReadRecordingRuleParamsWithHTTPClient(client *http.Client) *ReadRecordingRuleParams

NewReadRecordingRuleParamsWithHTTPClient creates a new ReadRecordingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReadRecordingRuleParamsWithTimeout

func NewReadRecordingRuleParamsWithTimeout(timeout time.Duration) *ReadRecordingRuleParams

NewReadRecordingRuleParamsWithTimeout creates a new ReadRecordingRuleParams object with the ability to set a timeout on a request.

func (*ReadRecordingRuleParams) SetContext

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

SetContext adds the context to the read recording rule params

func (*ReadRecordingRuleParams) SetDefaults

func (o *ReadRecordingRuleParams) SetDefaults()

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

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

func (*ReadRecordingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read recording rule params

func (*ReadRecordingRuleParams) SetSlug

func (o *ReadRecordingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the read recording rule params

func (*ReadRecordingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the read recording rule params

func (*ReadRecordingRuleParams) WithContext

WithContext adds the context to the read recording rule params

func (*ReadRecordingRuleParams) WithDefaults

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

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

func (*ReadRecordingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read recording rule params

func (*ReadRecordingRuleParams) WithSlug

WithSlug adds the slug to the read recording rule params

func (*ReadRecordingRuleParams) WithTimeout

WithTimeout adds the timeout to the read recording rule params

func (*ReadRecordingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadRecordingRuleReader

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

ReadRecordingRuleReader is a Reader for the ReadRecordingRule structure.

func (*ReadRecordingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRecordingRuleBadRequest

type UpdateRecordingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the RecordingRule because the request is invalid.

func NewUpdateRecordingRuleBadRequest

func NewUpdateRecordingRuleBadRequest() *UpdateRecordingRuleBadRequest

NewUpdateRecordingRuleBadRequest creates a UpdateRecordingRuleBadRequest with default headers values

func (*UpdateRecordingRuleBadRequest) Code

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

func (*UpdateRecordingRuleBadRequest) Error

func (*UpdateRecordingRuleBadRequest) GetPayload

func (*UpdateRecordingRuleBadRequest) IsClientError

func (o *UpdateRecordingRuleBadRequest) IsClientError() bool

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

func (*UpdateRecordingRuleBadRequest) IsCode

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

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

func (*UpdateRecordingRuleBadRequest) IsRedirect

func (o *UpdateRecordingRuleBadRequest) IsRedirect() bool

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

func (*UpdateRecordingRuleBadRequest) IsServerError

func (o *UpdateRecordingRuleBadRequest) IsServerError() bool

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

func (*UpdateRecordingRuleBadRequest) IsSuccess

func (o *UpdateRecordingRuleBadRequest) IsSuccess() bool

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

func (*UpdateRecordingRuleBadRequest) String

type UpdateRecordingRuleBody

type UpdateRecordingRuleBody struct {

	// If true, the RecordingRule will be created if it does not already exist, identified by slug. If false, an error will be returned if the RecordingRule does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the RecordingRule will not be created nor updated, and no response RecordingRule will be returned. The response will return an error if the given RecordingRule is invalid.
	DryRun bool `json:"dry_run,omitempty"`

	// recording rule
	RecordingRule *models.Configv1RecordingRule `json:"recording_rule,omitempty"`
}

UpdateRecordingRuleBody update recording rule body swagger:model UpdateRecordingRuleBody

func (*UpdateRecordingRuleBody) ContextValidate

func (o *UpdateRecordingRuleBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update recording rule body based on the context it is used

func (*UpdateRecordingRuleBody) MarshalBinary

func (o *UpdateRecordingRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateRecordingRuleBody) UnmarshalBinary

func (o *UpdateRecordingRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateRecordingRuleBody) Validate

func (o *UpdateRecordingRuleBody) Validate(formats strfmt.Registry) error

Validate validates this update recording rule body

type UpdateRecordingRuleConflict

type UpdateRecordingRuleConflict struct {
	Payload *models.APIError
}

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

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

func NewUpdateRecordingRuleConflict

func NewUpdateRecordingRuleConflict() *UpdateRecordingRuleConflict

NewUpdateRecordingRuleConflict creates a UpdateRecordingRuleConflict with default headers values

func (*UpdateRecordingRuleConflict) Code

func (o *UpdateRecordingRuleConflict) Code() int

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

func (*UpdateRecordingRuleConflict) Error

func (*UpdateRecordingRuleConflict) GetPayload

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

func (*UpdateRecordingRuleConflict) IsClientError

func (o *UpdateRecordingRuleConflict) IsClientError() bool

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

func (*UpdateRecordingRuleConflict) IsCode

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

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

func (*UpdateRecordingRuleConflict) IsRedirect

func (o *UpdateRecordingRuleConflict) IsRedirect() bool

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

func (*UpdateRecordingRuleConflict) IsServerError

func (o *UpdateRecordingRuleConflict) IsServerError() bool

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

func (*UpdateRecordingRuleConflict) IsSuccess

func (o *UpdateRecordingRuleConflict) IsSuccess() bool

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

func (*UpdateRecordingRuleConflict) String

func (o *UpdateRecordingRuleConflict) String() string

type UpdateRecordingRuleDefault

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

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

An undefined error response.

func NewUpdateRecordingRuleDefault

func NewUpdateRecordingRuleDefault(code int) *UpdateRecordingRuleDefault

NewUpdateRecordingRuleDefault creates a UpdateRecordingRuleDefault with default headers values

func (*UpdateRecordingRuleDefault) Code

func (o *UpdateRecordingRuleDefault) Code() int

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

func (*UpdateRecordingRuleDefault) Error

func (*UpdateRecordingRuleDefault) GetPayload

func (*UpdateRecordingRuleDefault) IsClientError

func (o *UpdateRecordingRuleDefault) IsClientError() bool

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

func (*UpdateRecordingRuleDefault) IsCode

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

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

func (*UpdateRecordingRuleDefault) IsRedirect

func (o *UpdateRecordingRuleDefault) IsRedirect() bool

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

func (*UpdateRecordingRuleDefault) IsServerError

func (o *UpdateRecordingRuleDefault) IsServerError() bool

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

func (*UpdateRecordingRuleDefault) IsSuccess

func (o *UpdateRecordingRuleDefault) IsSuccess() bool

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

func (*UpdateRecordingRuleDefault) String

func (o *UpdateRecordingRuleDefault) String() string

type UpdateRecordingRuleInternalServerError

type UpdateRecordingRuleInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateRecordingRuleInternalServerError

func NewUpdateRecordingRuleInternalServerError() *UpdateRecordingRuleInternalServerError

NewUpdateRecordingRuleInternalServerError creates a UpdateRecordingRuleInternalServerError with default headers values

func (*UpdateRecordingRuleInternalServerError) Code

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

func (*UpdateRecordingRuleInternalServerError) Error

func (*UpdateRecordingRuleInternalServerError) GetPayload

func (*UpdateRecordingRuleInternalServerError) IsClientError

func (o *UpdateRecordingRuleInternalServerError) IsClientError() bool

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

func (*UpdateRecordingRuleInternalServerError) IsCode

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

func (*UpdateRecordingRuleInternalServerError) IsRedirect

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

func (*UpdateRecordingRuleInternalServerError) IsServerError

func (o *UpdateRecordingRuleInternalServerError) IsServerError() bool

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

func (*UpdateRecordingRuleInternalServerError) IsSuccess

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

func (*UpdateRecordingRuleInternalServerError) String

type UpdateRecordingRuleNotFound

type UpdateRecordingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot update the RecordingRule because the slug does not exist.

func NewUpdateRecordingRuleNotFound

func NewUpdateRecordingRuleNotFound() *UpdateRecordingRuleNotFound

NewUpdateRecordingRuleNotFound creates a UpdateRecordingRuleNotFound with default headers values

func (*UpdateRecordingRuleNotFound) Code

func (o *UpdateRecordingRuleNotFound) Code() int

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

func (*UpdateRecordingRuleNotFound) Error

func (*UpdateRecordingRuleNotFound) GetPayload

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

func (*UpdateRecordingRuleNotFound) IsClientError

func (o *UpdateRecordingRuleNotFound) IsClientError() bool

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

func (*UpdateRecordingRuleNotFound) IsCode

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

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

func (*UpdateRecordingRuleNotFound) IsRedirect

func (o *UpdateRecordingRuleNotFound) IsRedirect() bool

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

func (*UpdateRecordingRuleNotFound) IsServerError

func (o *UpdateRecordingRuleNotFound) IsServerError() bool

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

func (*UpdateRecordingRuleNotFound) IsSuccess

func (o *UpdateRecordingRuleNotFound) IsSuccess() bool

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

func (*UpdateRecordingRuleNotFound) String

func (o *UpdateRecordingRuleNotFound) String() string

type UpdateRecordingRuleOK

type UpdateRecordingRuleOK struct {
	Payload *models.Configv1UpdateRecordingRuleResponse
}

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

A successful response containing the updated RecordingRule.

func NewUpdateRecordingRuleOK

func NewUpdateRecordingRuleOK() *UpdateRecordingRuleOK

NewUpdateRecordingRuleOK creates a UpdateRecordingRuleOK with default headers values

func (*UpdateRecordingRuleOK) Code

func (o *UpdateRecordingRuleOK) Code() int

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

func (*UpdateRecordingRuleOK) Error

func (o *UpdateRecordingRuleOK) Error() string

func (*UpdateRecordingRuleOK) GetPayload

func (*UpdateRecordingRuleOK) IsClientError

func (o *UpdateRecordingRuleOK) IsClientError() bool

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

func (*UpdateRecordingRuleOK) IsCode

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

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

func (*UpdateRecordingRuleOK) IsRedirect

func (o *UpdateRecordingRuleOK) IsRedirect() bool

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

func (*UpdateRecordingRuleOK) IsServerError

func (o *UpdateRecordingRuleOK) IsServerError() bool

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

func (*UpdateRecordingRuleOK) IsSuccess

func (o *UpdateRecordingRuleOK) IsSuccess() bool

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

func (*UpdateRecordingRuleOK) String

func (o *UpdateRecordingRuleOK) String() string

type UpdateRecordingRuleParams

type UpdateRecordingRuleParams struct {

	// Body.
	Body UpdateRecordingRuleBody

	// Slug.
	Slug string

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

UpdateRecordingRuleParams contains all the parameters to send to the API endpoint

for the update recording rule operation.

Typically these are written to a http.Request.

func NewUpdateRecordingRuleParams

func NewUpdateRecordingRuleParams() *UpdateRecordingRuleParams

NewUpdateRecordingRuleParams creates a new UpdateRecordingRuleParams 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 NewUpdateRecordingRuleParamsWithContext

func NewUpdateRecordingRuleParamsWithContext(ctx context.Context) *UpdateRecordingRuleParams

NewUpdateRecordingRuleParamsWithContext creates a new UpdateRecordingRuleParams object with the ability to set a context for a request.

func NewUpdateRecordingRuleParamsWithHTTPClient

func NewUpdateRecordingRuleParamsWithHTTPClient(client *http.Client) *UpdateRecordingRuleParams

NewUpdateRecordingRuleParamsWithHTTPClient creates a new UpdateRecordingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRecordingRuleParamsWithTimeout

func NewUpdateRecordingRuleParamsWithTimeout(timeout time.Duration) *UpdateRecordingRuleParams

NewUpdateRecordingRuleParamsWithTimeout creates a new UpdateRecordingRuleParams object with the ability to set a timeout on a request.

func (*UpdateRecordingRuleParams) SetBody

SetBody adds the body to the update recording rule params

func (*UpdateRecordingRuleParams) SetContext

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

SetContext adds the context to the update recording rule params

func (*UpdateRecordingRuleParams) SetDefaults

func (o *UpdateRecordingRuleParams) SetDefaults()

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

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

func (*UpdateRecordingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update recording rule params

func (*UpdateRecordingRuleParams) SetSlug

func (o *UpdateRecordingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the update recording rule params

func (*UpdateRecordingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update recording rule params

func (*UpdateRecordingRuleParams) WithBody

WithBody adds the body to the update recording rule params

func (*UpdateRecordingRuleParams) WithContext

WithContext adds the context to the update recording rule params

func (*UpdateRecordingRuleParams) WithDefaults

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

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

func (*UpdateRecordingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update recording rule params

func (*UpdateRecordingRuleParams) WithSlug

WithSlug adds the slug to the update recording rule params

func (*UpdateRecordingRuleParams) WithTimeout

WithTimeout adds the timeout to the update recording rule params

func (*UpdateRecordingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRecordingRuleReader

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

UpdateRecordingRuleReader is a Reader for the UpdateRecordingRule structure.

func (*UpdateRecordingRuleReader) ReadResponse

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