custom_rules

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 custom rules API

func (*Client) CreateCustomRule

func (a *Client) CreateCustomRule(params *CreateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomRuleCreated, error)

CreateCustomRule creates a new custom rule

Create a new custom rule.

func (*Client) DeleteCustomRule

func (a *Client) DeleteCustomRule(params *DeleteCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCustomRuleNoContent, error)

DeleteCustomRule deletes a custom rule

Delete a specified custom rule.

func (*Client) GetCustomRule

func (a *Client) GetCustomRule(params *GetCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetCustomRuleOK, error)

GetCustomRule gets details on a single custom rule

Get details on a single custom rule.

func (*Client) ListCustomRules

func (a *Client) ListCustomRules(params *ListCustomRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCustomRulesOK, error)

ListCustomRules lists custom rules

Return a list of custom rules.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TestCustomRule added in v0.4.0

func (a *Client) TestCustomRule(params *TestCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleOK, error)

TestCustomRule tests a custom rule

Test a custom rule using state from an scan.

func (*Client) TestCustomRuleInput added in v0.4.0

func (a *Client) TestCustomRuleInput(params *TestCustomRuleInputParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleInputOK, error)

TestCustomRuleInput gets the input for a custom rule test

Get the input against which a custom rule would be tested.

func (*Client) UpdateCustomRule

func (a *Client) UpdateCustomRule(params *UpdateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCustomRuleOK, error)

UpdateCustomRule updates custom rule

Update configuration of a custom rule.

type ClientService added in v0.6.0

type ClientService interface {
	CreateCustomRule(params *CreateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomRuleCreated, error)

	DeleteCustomRule(params *DeleteCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCustomRuleNoContent, error)

	GetCustomRule(params *GetCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetCustomRuleOK, error)

	ListCustomRules(params *ListCustomRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCustomRulesOK, error)

	TestCustomRule(params *TestCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleOK, error)

	TestCustomRuleInput(params *TestCustomRuleInputParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleInputOK, error)

	UpdateCustomRule(params *UpdateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCustomRuleOK, 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 custom rules API client.

type CreateCustomRuleBadRequest added in v0.6.0

type CreateCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

CreateCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewCreateCustomRuleBadRequest added in v0.6.0

func NewCreateCustomRuleBadRequest() *CreateCustomRuleBadRequest

NewCreateCustomRuleBadRequest creates a CreateCustomRuleBadRequest with default headers values

func (*CreateCustomRuleBadRequest) Error added in v0.6.0

func (*CreateCustomRuleBadRequest) GetPayload added in v0.6.0

type CreateCustomRuleCreated

type CreateCustomRuleCreated struct {
	Payload *models.CustomRuleWithErrors
}

CreateCustomRuleCreated handles this case with default header values.

New custom rule details.

func NewCreateCustomRuleCreated

func NewCreateCustomRuleCreated() *CreateCustomRuleCreated

NewCreateCustomRuleCreated creates a CreateCustomRuleCreated with default headers values

func (*CreateCustomRuleCreated) Error

func (o *CreateCustomRuleCreated) Error() string

func (*CreateCustomRuleCreated) GetPayload added in v0.6.0

type CreateCustomRuleForbidden

type CreateCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

CreateCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewCreateCustomRuleForbidden

func NewCreateCustomRuleForbidden() *CreateCustomRuleForbidden

NewCreateCustomRuleForbidden creates a CreateCustomRuleForbidden with default headers values

func (*CreateCustomRuleForbidden) Error

func (o *CreateCustomRuleForbidden) Error() string

func (*CreateCustomRuleForbidden) GetPayload added in v0.6.0

type CreateCustomRuleInternalServerError

type CreateCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

CreateCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewCreateCustomRuleInternalServerError

func NewCreateCustomRuleInternalServerError() *CreateCustomRuleInternalServerError

NewCreateCustomRuleInternalServerError creates a CreateCustomRuleInternalServerError with default headers values

func (*CreateCustomRuleInternalServerError) Error

func (*CreateCustomRuleInternalServerError) GetPayload added in v0.6.0

type CreateCustomRuleParams

type CreateCustomRuleParams struct {

	/*Rule
	  Configuration options for the new custom rule.

	*/
	Rule *models.CreateCustomRuleInput

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

CreateCustomRuleParams contains all the parameters to send to the API endpoint for the create custom rule operation typically these are written to a http.Request

func NewCreateCustomRuleParams

func NewCreateCustomRuleParams() *CreateCustomRuleParams

NewCreateCustomRuleParams creates a new CreateCustomRuleParams object with the default values initialized.

func NewCreateCustomRuleParamsWithContext

func NewCreateCustomRuleParamsWithContext(ctx context.Context) *CreateCustomRuleParams

NewCreateCustomRuleParamsWithContext creates a new CreateCustomRuleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateCustomRuleParamsWithHTTPClient

func NewCreateCustomRuleParamsWithHTTPClient(client *http.Client) *CreateCustomRuleParams

NewCreateCustomRuleParamsWithHTTPClient creates a new CreateCustomRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateCustomRuleParamsWithTimeout

func NewCreateCustomRuleParamsWithTimeout(timeout time.Duration) *CreateCustomRuleParams

NewCreateCustomRuleParamsWithTimeout creates a new CreateCustomRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateCustomRuleParams) SetContext

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

SetContext adds the context to the create custom rule params

func (*CreateCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create custom rule params

func (*CreateCustomRuleParams) SetRule

SetRule adds the rule to the create custom rule params

func (*CreateCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create custom rule params

func (*CreateCustomRuleParams) WithContext

WithContext adds the context to the create custom rule params

func (*CreateCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create custom rule params

func (*CreateCustomRuleParams) WithRule

WithRule adds the rule to the create custom rule params

func (*CreateCustomRuleParams) WithTimeout

WithTimeout adds the timeout to the create custom rule params

func (*CreateCustomRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCustomRuleReader

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

CreateCustomRuleReader is a Reader for the CreateCustomRule structure.

func (*CreateCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCustomRuleUnauthorized

type CreateCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

CreateCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewCreateCustomRuleUnauthorized

func NewCreateCustomRuleUnauthorized() *CreateCustomRuleUnauthorized

NewCreateCustomRuleUnauthorized creates a CreateCustomRuleUnauthorized with default headers values

func (*CreateCustomRuleUnauthorized) Error

func (*CreateCustomRuleUnauthorized) GetPayload added in v0.6.0

type DeleteCustomRuleBadRequest added in v0.7.0

type DeleteCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

DeleteCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewDeleteCustomRuleBadRequest added in v0.7.0

func NewDeleteCustomRuleBadRequest() *DeleteCustomRuleBadRequest

NewDeleteCustomRuleBadRequest creates a DeleteCustomRuleBadRequest with default headers values

func (*DeleteCustomRuleBadRequest) Error added in v0.7.0

func (*DeleteCustomRuleBadRequest) GetPayload added in v0.7.0

type DeleteCustomRuleForbidden

type DeleteCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

DeleteCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewDeleteCustomRuleForbidden

func NewDeleteCustomRuleForbidden() *DeleteCustomRuleForbidden

NewDeleteCustomRuleForbidden creates a DeleteCustomRuleForbidden with default headers values

func (*DeleteCustomRuleForbidden) Error

func (o *DeleteCustomRuleForbidden) Error() string

func (*DeleteCustomRuleForbidden) GetPayload added in v0.6.0

type DeleteCustomRuleInternalServerError

type DeleteCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

DeleteCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewDeleteCustomRuleInternalServerError

func NewDeleteCustomRuleInternalServerError() *DeleteCustomRuleInternalServerError

NewDeleteCustomRuleInternalServerError creates a DeleteCustomRuleInternalServerError with default headers values

func (*DeleteCustomRuleInternalServerError) Error

func (*DeleteCustomRuleInternalServerError) GetPayload added in v0.6.0

type DeleteCustomRuleNoContent

type DeleteCustomRuleNoContent struct {
}

DeleteCustomRuleNoContent handles this case with default header values.

Custom rule deleted.

func NewDeleteCustomRuleNoContent

func NewDeleteCustomRuleNoContent() *DeleteCustomRuleNoContent

NewDeleteCustomRuleNoContent creates a DeleteCustomRuleNoContent with default headers values

func (*DeleteCustomRuleNoContent) Error

func (o *DeleteCustomRuleNoContent) Error() string

type DeleteCustomRuleParams

type DeleteCustomRuleParams struct {

	/*RuleID
	  The id of the rule to delete.

	*/
	RuleID string

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

DeleteCustomRuleParams contains all the parameters to send to the API endpoint for the delete custom rule operation typically these are written to a http.Request

func NewDeleteCustomRuleParams

func NewDeleteCustomRuleParams() *DeleteCustomRuleParams

NewDeleteCustomRuleParams creates a new DeleteCustomRuleParams object with the default values initialized.

func NewDeleteCustomRuleParamsWithContext

func NewDeleteCustomRuleParamsWithContext(ctx context.Context) *DeleteCustomRuleParams

NewDeleteCustomRuleParamsWithContext creates a new DeleteCustomRuleParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteCustomRuleParamsWithHTTPClient

func NewDeleteCustomRuleParamsWithHTTPClient(client *http.Client) *DeleteCustomRuleParams

NewDeleteCustomRuleParamsWithHTTPClient creates a new DeleteCustomRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteCustomRuleParamsWithTimeout

func NewDeleteCustomRuleParamsWithTimeout(timeout time.Duration) *DeleteCustomRuleParams

NewDeleteCustomRuleParamsWithTimeout creates a new DeleteCustomRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteCustomRuleParams) SetContext

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

SetContext adds the context to the delete custom rule params

func (*DeleteCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete custom rule params

func (*DeleteCustomRuleParams) SetRuleID

func (o *DeleteCustomRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the delete custom rule params

func (*DeleteCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete custom rule params

func (*DeleteCustomRuleParams) WithContext

WithContext adds the context to the delete custom rule params

func (*DeleteCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete custom rule params

func (*DeleteCustomRuleParams) WithRuleID

func (o *DeleteCustomRuleParams) WithRuleID(ruleID string) *DeleteCustomRuleParams

WithRuleID adds the ruleID to the delete custom rule params

func (*DeleteCustomRuleParams) WithTimeout

WithTimeout adds the timeout to the delete custom rule params

func (*DeleteCustomRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCustomRuleReader

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

DeleteCustomRuleReader is a Reader for the DeleteCustomRule structure.

func (*DeleteCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCustomRuleUnauthorized

type DeleteCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

DeleteCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewDeleteCustomRuleUnauthorized

func NewDeleteCustomRuleUnauthorized() *DeleteCustomRuleUnauthorized

NewDeleteCustomRuleUnauthorized creates a DeleteCustomRuleUnauthorized with default headers values

func (*DeleteCustomRuleUnauthorized) Error

func (*DeleteCustomRuleUnauthorized) GetPayload added in v0.6.0

type GetCustomRuleBadRequest added in v0.4.0

type GetCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

GetCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewGetCustomRuleBadRequest added in v0.4.0

func NewGetCustomRuleBadRequest() *GetCustomRuleBadRequest

NewGetCustomRuleBadRequest creates a GetCustomRuleBadRequest with default headers values

func (*GetCustomRuleBadRequest) Error added in v0.4.0

func (o *GetCustomRuleBadRequest) Error() string

func (*GetCustomRuleBadRequest) GetPayload added in v0.6.0

type GetCustomRuleForbidden

type GetCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

GetCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewGetCustomRuleForbidden

func NewGetCustomRuleForbidden() *GetCustomRuleForbidden

NewGetCustomRuleForbidden creates a GetCustomRuleForbidden with default headers values

func (*GetCustomRuleForbidden) Error

func (o *GetCustomRuleForbidden) Error() string

func (*GetCustomRuleForbidden) GetPayload added in v0.6.0

type GetCustomRuleInternalServerError

type GetCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

GetCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewGetCustomRuleInternalServerError

func NewGetCustomRuleInternalServerError() *GetCustomRuleInternalServerError

NewGetCustomRuleInternalServerError creates a GetCustomRuleInternalServerError with default headers values

func (*GetCustomRuleInternalServerError) Error

func (*GetCustomRuleInternalServerError) GetPayload added in v0.6.0

type GetCustomRuleNotFound added in v0.4.0

type GetCustomRuleNotFound struct {
	Payload *models.NotFoundError
}

GetCustomRuleNotFound handles this case with default header values.

NotFoundError

func NewGetCustomRuleNotFound added in v0.4.0

func NewGetCustomRuleNotFound() *GetCustomRuleNotFound

NewGetCustomRuleNotFound creates a GetCustomRuleNotFound with default headers values

func (*GetCustomRuleNotFound) Error added in v0.4.0

func (o *GetCustomRuleNotFound) Error() string

func (*GetCustomRuleNotFound) GetPayload added in v0.6.0

func (o *GetCustomRuleNotFound) GetPayload() *models.NotFoundError

type GetCustomRuleOK

type GetCustomRuleOK struct {
	Payload *models.CustomRule
}

GetCustomRuleOK handles this case with default header values.

Custom rule details.

func NewGetCustomRuleOK

func NewGetCustomRuleOK() *GetCustomRuleOK

NewGetCustomRuleOK creates a GetCustomRuleOK with default headers values

func (*GetCustomRuleOK) Error

func (o *GetCustomRuleOK) Error() string

func (*GetCustomRuleOK) GetPayload added in v0.6.0

func (o *GetCustomRuleOK) GetPayload() *models.CustomRule

type GetCustomRuleParams

type GetCustomRuleParams struct {

	/*RuleID
	  The ID of the Rule to get.

	*/
	RuleID string

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

GetCustomRuleParams contains all the parameters to send to the API endpoint for the get custom rule operation typically these are written to a http.Request

func NewGetCustomRuleParams

func NewGetCustomRuleParams() *GetCustomRuleParams

NewGetCustomRuleParams creates a new GetCustomRuleParams object with the default values initialized.

func NewGetCustomRuleParamsWithContext

func NewGetCustomRuleParamsWithContext(ctx context.Context) *GetCustomRuleParams

NewGetCustomRuleParamsWithContext creates a new GetCustomRuleParams object with the default values initialized, and the ability to set a context for a request

func NewGetCustomRuleParamsWithHTTPClient

func NewGetCustomRuleParamsWithHTTPClient(client *http.Client) *GetCustomRuleParams

NewGetCustomRuleParamsWithHTTPClient creates a new GetCustomRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetCustomRuleParamsWithTimeout

func NewGetCustomRuleParamsWithTimeout(timeout time.Duration) *GetCustomRuleParams

NewGetCustomRuleParamsWithTimeout creates a new GetCustomRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCustomRuleParams) SetContext

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

SetContext adds the context to the get custom rule params

func (*GetCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get custom rule params

func (*GetCustomRuleParams) SetRuleID

func (o *GetCustomRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the get custom rule params

func (*GetCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get custom rule params

func (*GetCustomRuleParams) WithContext

WithContext adds the context to the get custom rule params

func (*GetCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get custom rule params

func (*GetCustomRuleParams) WithRuleID

func (o *GetCustomRuleParams) WithRuleID(ruleID string) *GetCustomRuleParams

WithRuleID adds the ruleID to the get custom rule params

func (*GetCustomRuleParams) WithTimeout

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

WithTimeout adds the timeout to the get custom rule params

func (*GetCustomRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCustomRuleReader

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

GetCustomRuleReader is a Reader for the GetCustomRule structure.

func (*GetCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomRuleUnauthorized

type GetCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

GetCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewGetCustomRuleUnauthorized

func NewGetCustomRuleUnauthorized() *GetCustomRuleUnauthorized

NewGetCustomRuleUnauthorized creates a GetCustomRuleUnauthorized with default headers values

func (*GetCustomRuleUnauthorized) Error

func (o *GetCustomRuleUnauthorized) Error() string

func (*GetCustomRuleUnauthorized) GetPayload added in v0.6.0

type ListCustomRulesBadRequest added in v0.7.0

type ListCustomRulesBadRequest struct {
	Payload *models.BadRequestError
}

ListCustomRulesBadRequest handles this case with default header values.

BadRequestError

func NewListCustomRulesBadRequest added in v0.7.0

func NewListCustomRulesBadRequest() *ListCustomRulesBadRequest

NewListCustomRulesBadRequest creates a ListCustomRulesBadRequest with default headers values

func (*ListCustomRulesBadRequest) Error added in v0.7.0

func (o *ListCustomRulesBadRequest) Error() string

func (*ListCustomRulesBadRequest) GetPayload added in v0.7.0

type ListCustomRulesForbidden

type ListCustomRulesForbidden struct {
	Payload *models.AuthorizationError
}

ListCustomRulesForbidden handles this case with default header values.

AuthorizationError

func NewListCustomRulesForbidden

func NewListCustomRulesForbidden() *ListCustomRulesForbidden

NewListCustomRulesForbidden creates a ListCustomRulesForbidden with default headers values

func (*ListCustomRulesForbidden) Error

func (o *ListCustomRulesForbidden) Error() string

func (*ListCustomRulesForbidden) GetPayload added in v0.6.0

type ListCustomRulesInternalServerError

type ListCustomRulesInternalServerError struct {
	Payload *models.InternalServerError
}

ListCustomRulesInternalServerError handles this case with default header values.

InternalServerError

func NewListCustomRulesInternalServerError

func NewListCustomRulesInternalServerError() *ListCustomRulesInternalServerError

NewListCustomRulesInternalServerError creates a ListCustomRulesInternalServerError with default headers values

func (*ListCustomRulesInternalServerError) Error

func (*ListCustomRulesInternalServerError) GetPayload added in v0.6.0

type ListCustomRulesOK

type ListCustomRulesOK struct {
	Payload *models.CustomRules
}

ListCustomRulesOK handles this case with default header values.

List of custom rules.

func NewListCustomRulesOK

func NewListCustomRulesOK() *ListCustomRulesOK

NewListCustomRulesOK creates a ListCustomRulesOK with default headers values

func (*ListCustomRulesOK) Error

func (o *ListCustomRulesOK) Error() string

func (*ListCustomRulesOK) GetPayload added in v0.6.0

func (o *ListCustomRulesOK) GetPayload() *models.CustomRules

type ListCustomRulesParams

type ListCustomRulesParams struct {

	/*MaxItems
	  Maximum number of items to return.

	*/
	MaxItems *int64
	/*Offset
	  Number of items to skip before returning. This parameter is used when the number of items spans multiple pages.

	*/
	Offset *int64
	/*Query
	  A stringified JSON array of search parameters.

	*/
	Query *string
	/*Status
	  Filter on rule status.

	*/
	Status *string

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

ListCustomRulesParams contains all the parameters to send to the API endpoint for the list custom rules operation typically these are written to a http.Request

func NewListCustomRulesParams

func NewListCustomRulesParams() *ListCustomRulesParams

NewListCustomRulesParams creates a new ListCustomRulesParams object with the default values initialized.

func NewListCustomRulesParamsWithContext

func NewListCustomRulesParamsWithContext(ctx context.Context) *ListCustomRulesParams

NewListCustomRulesParamsWithContext creates a new ListCustomRulesParams object with the default values initialized, and the ability to set a context for a request

func NewListCustomRulesParamsWithHTTPClient

func NewListCustomRulesParamsWithHTTPClient(client *http.Client) *ListCustomRulesParams

NewListCustomRulesParamsWithHTTPClient creates a new ListCustomRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListCustomRulesParamsWithTimeout

func NewListCustomRulesParamsWithTimeout(timeout time.Duration) *ListCustomRulesParams

NewListCustomRulesParamsWithTimeout creates a new ListCustomRulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListCustomRulesParams) SetContext

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

SetContext adds the context to the list custom rules params

func (*ListCustomRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list custom rules params

func (*ListCustomRulesParams) SetMaxItems

func (o *ListCustomRulesParams) SetMaxItems(maxItems *int64)

SetMaxItems adds the maxItems to the list custom rules params

func (*ListCustomRulesParams) SetOffset

func (o *ListCustomRulesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list custom rules params

func (*ListCustomRulesParams) SetQuery added in v0.17.0

func (o *ListCustomRulesParams) SetQuery(query *string)

SetQuery adds the query to the list custom rules params

func (*ListCustomRulesParams) SetStatus added in v0.17.0

func (o *ListCustomRulesParams) SetStatus(status *string)

SetStatus adds the status to the list custom rules params

func (*ListCustomRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list custom rules params

func (*ListCustomRulesParams) WithContext

WithContext adds the context to the list custom rules params

func (*ListCustomRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list custom rules params

func (*ListCustomRulesParams) WithMaxItems

func (o *ListCustomRulesParams) WithMaxItems(maxItems *int64) *ListCustomRulesParams

WithMaxItems adds the maxItems to the list custom rules params

func (*ListCustomRulesParams) WithOffset

func (o *ListCustomRulesParams) WithOffset(offset *int64) *ListCustomRulesParams

WithOffset adds the offset to the list custom rules params

func (*ListCustomRulesParams) WithQuery added in v0.17.0

func (o *ListCustomRulesParams) WithQuery(query *string) *ListCustomRulesParams

WithQuery adds the query to the list custom rules params

func (*ListCustomRulesParams) WithStatus added in v0.17.0

func (o *ListCustomRulesParams) WithStatus(status *string) *ListCustomRulesParams

WithStatus adds the status to the list custom rules params

func (*ListCustomRulesParams) WithTimeout

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

WithTimeout adds the timeout to the list custom rules params

func (*ListCustomRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCustomRulesReader

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

ListCustomRulesReader is a Reader for the ListCustomRules structure.

func (*ListCustomRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCustomRulesUnauthorized

type ListCustomRulesUnauthorized struct {
	Payload *models.AuthenticationError
}

ListCustomRulesUnauthorized handles this case with default header values.

AuthenticationError

func NewListCustomRulesUnauthorized

func NewListCustomRulesUnauthorized() *ListCustomRulesUnauthorized

NewListCustomRulesUnauthorized creates a ListCustomRulesUnauthorized with default headers values

func (*ListCustomRulesUnauthorized) Error

func (*ListCustomRulesUnauthorized) GetPayload added in v0.6.0

type TestCustomRuleBadRequest added in v0.7.0

type TestCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

TestCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewTestCustomRuleBadRequest added in v0.7.0

func NewTestCustomRuleBadRequest() *TestCustomRuleBadRequest

NewTestCustomRuleBadRequest creates a TestCustomRuleBadRequest with default headers values

func (*TestCustomRuleBadRequest) Error added in v0.7.0

func (o *TestCustomRuleBadRequest) Error() string

func (*TestCustomRuleBadRequest) GetPayload added in v0.7.0

type TestCustomRuleForbidden added in v0.4.0

type TestCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

TestCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewTestCustomRuleForbidden added in v0.4.0

func NewTestCustomRuleForbidden() *TestCustomRuleForbidden

NewTestCustomRuleForbidden creates a TestCustomRuleForbidden with default headers values

func (*TestCustomRuleForbidden) Error added in v0.4.0

func (o *TestCustomRuleForbidden) Error() string

func (*TestCustomRuleForbidden) GetPayload added in v0.6.0

type TestCustomRuleInputBadRequest added in v0.7.0

type TestCustomRuleInputBadRequest struct {
	Payload *models.BadRequestError
}

TestCustomRuleInputBadRequest handles this case with default header values.

BadRequestError

func NewTestCustomRuleInputBadRequest added in v0.7.0

func NewTestCustomRuleInputBadRequest() *TestCustomRuleInputBadRequest

NewTestCustomRuleInputBadRequest creates a TestCustomRuleInputBadRequest with default headers values

func (*TestCustomRuleInputBadRequest) Error added in v0.7.0

func (*TestCustomRuleInputBadRequest) GetPayload added in v0.7.0

type TestCustomRuleInputForbidden added in v0.4.0

type TestCustomRuleInputForbidden struct {
	Payload *models.AuthorizationError
}

TestCustomRuleInputForbidden handles this case with default header values.

AuthorizationError

func NewTestCustomRuleInputForbidden added in v0.4.0

func NewTestCustomRuleInputForbidden() *TestCustomRuleInputForbidden

NewTestCustomRuleInputForbidden creates a TestCustomRuleInputForbidden with default headers values

func (*TestCustomRuleInputForbidden) Error added in v0.4.0

func (*TestCustomRuleInputForbidden) GetPayload added in v0.6.0

type TestCustomRuleInputInternalServerError added in v0.4.0

type TestCustomRuleInputInternalServerError struct {
	Payload *models.InternalServerError
}

TestCustomRuleInputInternalServerError handles this case with default header values.

InternalServerError

func NewTestCustomRuleInputInternalServerError added in v0.4.0

func NewTestCustomRuleInputInternalServerError() *TestCustomRuleInputInternalServerError

NewTestCustomRuleInputInternalServerError creates a TestCustomRuleInputInternalServerError with default headers values

func (*TestCustomRuleInputInternalServerError) Error added in v0.4.0

func (*TestCustomRuleInputInternalServerError) GetPayload added in v0.6.0

type TestCustomRuleInputOK added in v0.4.0

type TestCustomRuleInputOK struct {
	Payload *models.TestCustomRuleInputScan
}

TestCustomRuleInputOK handles this case with default header values.

Input used for the custom rule.

func NewTestCustomRuleInputOK added in v0.4.0

func NewTestCustomRuleInputOK() *TestCustomRuleInputOK

NewTestCustomRuleInputOK creates a TestCustomRuleInputOK with default headers values

func (*TestCustomRuleInputOK) Error added in v0.4.0

func (o *TestCustomRuleInputOK) Error() string

func (*TestCustomRuleInputOK) GetPayload added in v0.6.0

type TestCustomRuleInputParams added in v0.4.0

type TestCustomRuleInputParams struct {

	/*ScanID
	  Scan of which we should get the custom rule test input.

	*/
	ScanID string
	/*ViaDownload
	  Force output to be downloadable.

	*/
	ViaDownload *bool

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

TestCustomRuleInputParams contains all the parameters to send to the API endpoint for the test custom rule input operation typically these are written to a http.Request

func NewTestCustomRuleInputParams added in v0.4.0

func NewTestCustomRuleInputParams() *TestCustomRuleInputParams

NewTestCustomRuleInputParams creates a new TestCustomRuleInputParams object with the default values initialized.

func NewTestCustomRuleInputParamsWithContext added in v0.4.0

func NewTestCustomRuleInputParamsWithContext(ctx context.Context) *TestCustomRuleInputParams

NewTestCustomRuleInputParamsWithContext creates a new TestCustomRuleInputParams object with the default values initialized, and the ability to set a context for a request

func NewTestCustomRuleInputParamsWithHTTPClient added in v0.4.0

func NewTestCustomRuleInputParamsWithHTTPClient(client *http.Client) *TestCustomRuleInputParams

NewTestCustomRuleInputParamsWithHTTPClient creates a new TestCustomRuleInputParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTestCustomRuleInputParamsWithTimeout added in v0.4.0

func NewTestCustomRuleInputParamsWithTimeout(timeout time.Duration) *TestCustomRuleInputParams

NewTestCustomRuleInputParamsWithTimeout creates a new TestCustomRuleInputParams object with the default values initialized, and the ability to set a timeout on a request

func (*TestCustomRuleInputParams) SetContext added in v0.4.0

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

SetContext adds the context to the test custom rule input params

func (*TestCustomRuleInputParams) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the test custom rule input params

func (*TestCustomRuleInputParams) SetScanID added in v0.4.0

func (o *TestCustomRuleInputParams) SetScanID(scanID string)

SetScanID adds the scanId to the test custom rule input params

func (*TestCustomRuleInputParams) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the test custom rule input params

func (*TestCustomRuleInputParams) SetViaDownload added in v0.8.0

func (o *TestCustomRuleInputParams) SetViaDownload(viaDownload *bool)

SetViaDownload adds the viaDownload to the test custom rule input params

func (*TestCustomRuleInputParams) WithContext added in v0.4.0

WithContext adds the context to the test custom rule input params

func (*TestCustomRuleInputParams) WithHTTPClient added in v0.4.0

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

WithHTTPClient adds the HTTPClient to the test custom rule input params

func (*TestCustomRuleInputParams) WithScanID added in v0.4.0

WithScanID adds the scanID to the test custom rule input params

func (*TestCustomRuleInputParams) WithTimeout added in v0.4.0

WithTimeout adds the timeout to the test custom rule input params

func (*TestCustomRuleInputParams) WithViaDownload added in v0.8.0

func (o *TestCustomRuleInputParams) WithViaDownload(viaDownload *bool) *TestCustomRuleInputParams

WithViaDownload adds the viaDownload to the test custom rule input params

func (*TestCustomRuleInputParams) WriteToRequest added in v0.4.0

WriteToRequest writes these params to a swagger request

type TestCustomRuleInputReader added in v0.4.0

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

TestCustomRuleInputReader is a Reader for the TestCustomRuleInput structure.

func (*TestCustomRuleInputReader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type TestCustomRuleInputUnauthorized added in v0.4.0

type TestCustomRuleInputUnauthorized struct {
	Payload *models.AuthenticationError
}

TestCustomRuleInputUnauthorized handles this case with default header values.

AuthenticationError

func NewTestCustomRuleInputUnauthorized added in v0.4.0

func NewTestCustomRuleInputUnauthorized() *TestCustomRuleInputUnauthorized

NewTestCustomRuleInputUnauthorized creates a TestCustomRuleInputUnauthorized with default headers values

func (*TestCustomRuleInputUnauthorized) Error added in v0.4.0

func (*TestCustomRuleInputUnauthorized) GetPayload added in v0.6.0

type TestCustomRuleInternalServerError added in v0.4.0

type TestCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

TestCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewTestCustomRuleInternalServerError added in v0.4.0

func NewTestCustomRuleInternalServerError() *TestCustomRuleInternalServerError

NewTestCustomRuleInternalServerError creates a TestCustomRuleInternalServerError with default headers values

func (*TestCustomRuleInternalServerError) Error added in v0.4.0

func (*TestCustomRuleInternalServerError) GetPayload added in v0.6.0

type TestCustomRuleOK added in v0.4.0

type TestCustomRuleOK struct {
	Payload *models.TestCustomRuleOutput
}

TestCustomRuleOK handles this case with default header values.

Validation results for the custom rule.

func NewTestCustomRuleOK added in v0.4.0

func NewTestCustomRuleOK() *TestCustomRuleOK

NewTestCustomRuleOK creates a TestCustomRuleOK with default headers values

func (*TestCustomRuleOK) Error added in v0.4.0

func (o *TestCustomRuleOK) Error() string

func (*TestCustomRuleOK) GetPayload added in v0.6.0

func (o *TestCustomRuleOK) GetPayload() *models.TestCustomRuleOutput

type TestCustomRuleParams added in v0.4.0

type TestCustomRuleParams struct {

	/*Rule
	  Information about custom rule to be tested.

	*/
	Rule *models.TestCustomRuleInput
	/*ViaDownload
	  Force output to be downloadable.

	*/
	ViaDownload *bool

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

TestCustomRuleParams contains all the parameters to send to the API endpoint for the test custom rule operation typically these are written to a http.Request

func NewTestCustomRuleParams added in v0.4.0

func NewTestCustomRuleParams() *TestCustomRuleParams

NewTestCustomRuleParams creates a new TestCustomRuleParams object with the default values initialized.

func NewTestCustomRuleParamsWithContext added in v0.4.0

func NewTestCustomRuleParamsWithContext(ctx context.Context) *TestCustomRuleParams

NewTestCustomRuleParamsWithContext creates a new TestCustomRuleParams object with the default values initialized, and the ability to set a context for a request

func NewTestCustomRuleParamsWithHTTPClient added in v0.4.0

func NewTestCustomRuleParamsWithHTTPClient(client *http.Client) *TestCustomRuleParams

NewTestCustomRuleParamsWithHTTPClient creates a new TestCustomRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTestCustomRuleParamsWithTimeout added in v0.4.0

func NewTestCustomRuleParamsWithTimeout(timeout time.Duration) *TestCustomRuleParams

NewTestCustomRuleParamsWithTimeout creates a new TestCustomRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*TestCustomRuleParams) SetContext added in v0.4.0

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

SetContext adds the context to the test custom rule params

func (*TestCustomRuleParams) SetHTTPClient added in v0.4.0

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

SetHTTPClient adds the HTTPClient to the test custom rule params

func (*TestCustomRuleParams) SetRule added in v0.4.0

SetRule adds the rule to the test custom rule params

func (*TestCustomRuleParams) SetTimeout added in v0.4.0

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

SetTimeout adds the timeout to the test custom rule params

func (*TestCustomRuleParams) SetViaDownload added in v0.8.0

func (o *TestCustomRuleParams) SetViaDownload(viaDownload *bool)

SetViaDownload adds the viaDownload to the test custom rule params

func (*TestCustomRuleParams) WithContext added in v0.4.0

WithContext adds the context to the test custom rule params

func (*TestCustomRuleParams) WithHTTPClient added in v0.4.0

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

WithHTTPClient adds the HTTPClient to the test custom rule params

func (*TestCustomRuleParams) WithRule added in v0.4.0

WithRule adds the rule to the test custom rule params

func (*TestCustomRuleParams) WithTimeout added in v0.4.0

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

WithTimeout adds the timeout to the test custom rule params

func (*TestCustomRuleParams) WithViaDownload added in v0.8.0

func (o *TestCustomRuleParams) WithViaDownload(viaDownload *bool) *TestCustomRuleParams

WithViaDownload adds the viaDownload to the test custom rule params

func (*TestCustomRuleParams) WriteToRequest added in v0.4.0

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

WriteToRequest writes these params to a swagger request

type TestCustomRuleReader added in v0.4.0

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

TestCustomRuleReader is a Reader for the TestCustomRule structure.

func (*TestCustomRuleReader) ReadResponse added in v0.4.0

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

ReadResponse reads a server response into the received o.

type TestCustomRuleUnauthorized added in v0.4.0

type TestCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

TestCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewTestCustomRuleUnauthorized added in v0.4.0

func NewTestCustomRuleUnauthorized() *TestCustomRuleUnauthorized

NewTestCustomRuleUnauthorized creates a TestCustomRuleUnauthorized with default headers values

func (*TestCustomRuleUnauthorized) Error added in v0.4.0

func (*TestCustomRuleUnauthorized) GetPayload added in v0.6.0

type UpdateCustomRuleBadRequest added in v0.4.0

type UpdateCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

UpdateCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewUpdateCustomRuleBadRequest added in v0.4.0

func NewUpdateCustomRuleBadRequest() *UpdateCustomRuleBadRequest

NewUpdateCustomRuleBadRequest creates a UpdateCustomRuleBadRequest with default headers values

func (*UpdateCustomRuleBadRequest) Error added in v0.4.0

func (*UpdateCustomRuleBadRequest) GetPayload added in v0.6.0

type UpdateCustomRuleForbidden

type UpdateCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

UpdateCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewUpdateCustomRuleForbidden

func NewUpdateCustomRuleForbidden() *UpdateCustomRuleForbidden

NewUpdateCustomRuleForbidden creates a UpdateCustomRuleForbidden with default headers values

func (*UpdateCustomRuleForbidden) Error

func (o *UpdateCustomRuleForbidden) Error() string

func (*UpdateCustomRuleForbidden) GetPayload added in v0.6.0

type UpdateCustomRuleInternalServerError

type UpdateCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

UpdateCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewUpdateCustomRuleInternalServerError

func NewUpdateCustomRuleInternalServerError() *UpdateCustomRuleInternalServerError

NewUpdateCustomRuleInternalServerError creates a UpdateCustomRuleInternalServerError with default headers values

func (*UpdateCustomRuleInternalServerError) Error

func (*UpdateCustomRuleInternalServerError) GetPayload added in v0.6.0

type UpdateCustomRuleNotFound added in v0.4.0

type UpdateCustomRuleNotFound struct {
	Payload *models.NotFoundError
}

UpdateCustomRuleNotFound handles this case with default header values.

NotFoundError

func NewUpdateCustomRuleNotFound added in v0.4.0

func NewUpdateCustomRuleNotFound() *UpdateCustomRuleNotFound

NewUpdateCustomRuleNotFound creates a UpdateCustomRuleNotFound with default headers values

func (*UpdateCustomRuleNotFound) Error added in v0.4.0

func (o *UpdateCustomRuleNotFound) Error() string

func (*UpdateCustomRuleNotFound) GetPayload added in v0.6.0

type UpdateCustomRuleOK

type UpdateCustomRuleOK struct {
	Payload *models.CustomRuleWithErrors
}

UpdateCustomRuleOK handles this case with default header values.

New custom rule details.

func NewUpdateCustomRuleOK

func NewUpdateCustomRuleOK() *UpdateCustomRuleOK

NewUpdateCustomRuleOK creates a UpdateCustomRuleOK with default headers values

func (*UpdateCustomRuleOK) Error

func (o *UpdateCustomRuleOK) Error() string

func (*UpdateCustomRuleOK) GetPayload added in v0.6.0

type UpdateCustomRuleParams

type UpdateCustomRuleParams struct {

	/*Rule
	  New configuration options for the custom rule.

	*/
	Rule *models.UpdateCustomRuleInput
	/*RuleID
	  The id of the rule to update.

	*/
	RuleID string

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

UpdateCustomRuleParams contains all the parameters to send to the API endpoint for the update custom rule operation typically these are written to a http.Request

func NewUpdateCustomRuleParams

func NewUpdateCustomRuleParams() *UpdateCustomRuleParams

NewUpdateCustomRuleParams creates a new UpdateCustomRuleParams object with the default values initialized.

func NewUpdateCustomRuleParamsWithContext

func NewUpdateCustomRuleParamsWithContext(ctx context.Context) *UpdateCustomRuleParams

NewUpdateCustomRuleParamsWithContext creates a new UpdateCustomRuleParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateCustomRuleParamsWithHTTPClient

func NewUpdateCustomRuleParamsWithHTTPClient(client *http.Client) *UpdateCustomRuleParams

NewUpdateCustomRuleParamsWithHTTPClient creates a new UpdateCustomRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateCustomRuleParamsWithTimeout

func NewUpdateCustomRuleParamsWithTimeout(timeout time.Duration) *UpdateCustomRuleParams

NewUpdateCustomRuleParamsWithTimeout creates a new UpdateCustomRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateCustomRuleParams) SetContext

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

SetContext adds the context to the update custom rule params

func (*UpdateCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update custom rule params

func (*UpdateCustomRuleParams) SetRule

SetRule adds the rule to the update custom rule params

func (*UpdateCustomRuleParams) SetRuleID

func (o *UpdateCustomRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the update custom rule params

func (*UpdateCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update custom rule params

func (*UpdateCustomRuleParams) WithContext

WithContext adds the context to the update custom rule params

func (*UpdateCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update custom rule params

func (*UpdateCustomRuleParams) WithRule

WithRule adds the rule to the update custom rule params

func (*UpdateCustomRuleParams) WithRuleID

func (o *UpdateCustomRuleParams) WithRuleID(ruleID string) *UpdateCustomRuleParams

WithRuleID adds the ruleID to the update custom rule params

func (*UpdateCustomRuleParams) WithTimeout

WithTimeout adds the timeout to the update custom rule params

func (*UpdateCustomRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCustomRuleReader

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

UpdateCustomRuleReader is a Reader for the UpdateCustomRule structure.

func (*UpdateCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCustomRuleUnauthorized

type UpdateCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

UpdateCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewUpdateCustomRuleUnauthorized

func NewUpdateCustomRuleUnauthorized() *UpdateCustomRuleUnauthorized

NewUpdateCustomRuleUnauthorized creates a UpdateCustomRuleUnauthorized with default headers values

func (*UpdateCustomRuleUnauthorized) Error

func (*UpdateCustomRuleUnauthorized) GetPayload added in v0.6.0

Jump to

Keyboard shortcuts

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