custom_rules

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 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 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

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

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

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

type CreateCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

CreateCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewCreateCustomRuleBadRequest

func NewCreateCustomRuleBadRequest() *CreateCustomRuleBadRequest

NewCreateCustomRuleBadRequest creates a CreateCustomRuleBadRequest with default headers values

func (*CreateCustomRuleBadRequest) Error

func (*CreateCustomRuleBadRequest) GetPayload

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

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

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

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

type DeleteCustomRuleBadRequest

type DeleteCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

DeleteCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewDeleteCustomRuleBadRequest

func NewDeleteCustomRuleBadRequest() *DeleteCustomRuleBadRequest

NewDeleteCustomRuleBadRequest creates a DeleteCustomRuleBadRequest with default headers values

func (*DeleteCustomRuleBadRequest) Error

func (*DeleteCustomRuleBadRequest) GetPayload

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

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

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

type GetCustomRuleBadRequest

type GetCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

GetCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewGetCustomRuleBadRequest

func NewGetCustomRuleBadRequest() *GetCustomRuleBadRequest

NewGetCustomRuleBadRequest creates a GetCustomRuleBadRequest with default headers values

func (*GetCustomRuleBadRequest) Error

func (o *GetCustomRuleBadRequest) Error() string

func (*GetCustomRuleBadRequest) GetPayload

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

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

type GetCustomRuleNotFound

type GetCustomRuleNotFound struct {
	Payload *models.NotFoundError
}

GetCustomRuleNotFound handles this case with default header values.

NotFoundError

func NewGetCustomRuleNotFound

func NewGetCustomRuleNotFound() *GetCustomRuleNotFound

NewGetCustomRuleNotFound creates a GetCustomRuleNotFound with default headers values

func (*GetCustomRuleNotFound) Error

func (o *GetCustomRuleNotFound) Error() string

func (*GetCustomRuleNotFound) GetPayload

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

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

type ListCustomRulesBadRequest

type ListCustomRulesBadRequest struct {
	Payload *models.BadRequestError
}

ListCustomRulesBadRequest handles this case with default header values.

BadRequestError

func NewListCustomRulesBadRequest

func NewListCustomRulesBadRequest() *ListCustomRulesBadRequest

NewListCustomRulesBadRequest creates a ListCustomRulesBadRequest with default headers values

func (*ListCustomRulesBadRequest) Error

func (o *ListCustomRulesBadRequest) Error() string

func (*ListCustomRulesBadRequest) GetPayload

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

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

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

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

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

SetQuery adds the query to the list custom rules params

func (*ListCustomRulesParams) SetStatus

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

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

WithQuery adds the query to the list custom rules params

func (*ListCustomRulesParams) WithStatus

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

type TestCustomRuleBadRequest

type TestCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

TestCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewTestCustomRuleBadRequest

func NewTestCustomRuleBadRequest() *TestCustomRuleBadRequest

NewTestCustomRuleBadRequest creates a TestCustomRuleBadRequest with default headers values

func (*TestCustomRuleBadRequest) Error

func (o *TestCustomRuleBadRequest) Error() string

func (*TestCustomRuleBadRequest) GetPayload

type TestCustomRuleForbidden

type TestCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

TestCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewTestCustomRuleForbidden

func NewTestCustomRuleForbidden() *TestCustomRuleForbidden

NewTestCustomRuleForbidden creates a TestCustomRuleForbidden with default headers values

func (*TestCustomRuleForbidden) Error

func (o *TestCustomRuleForbidden) Error() string

func (*TestCustomRuleForbidden) GetPayload

type TestCustomRuleInputBadRequest

type TestCustomRuleInputBadRequest struct {
	Payload *models.BadRequestError
}

TestCustomRuleInputBadRequest handles this case with default header values.

BadRequestError

func NewTestCustomRuleInputBadRequest

func NewTestCustomRuleInputBadRequest() *TestCustomRuleInputBadRequest

NewTestCustomRuleInputBadRequest creates a TestCustomRuleInputBadRequest with default headers values

func (*TestCustomRuleInputBadRequest) Error

func (*TestCustomRuleInputBadRequest) GetPayload

type TestCustomRuleInputForbidden

type TestCustomRuleInputForbidden struct {
	Payload *models.AuthorizationError
}

TestCustomRuleInputForbidden handles this case with default header values.

AuthorizationError

func NewTestCustomRuleInputForbidden

func NewTestCustomRuleInputForbidden() *TestCustomRuleInputForbidden

NewTestCustomRuleInputForbidden creates a TestCustomRuleInputForbidden with default headers values

func (*TestCustomRuleInputForbidden) Error

func (*TestCustomRuleInputForbidden) GetPayload

type TestCustomRuleInputInternalServerError

type TestCustomRuleInputInternalServerError struct {
	Payload *models.InternalServerError
}

TestCustomRuleInputInternalServerError handles this case with default header values.

InternalServerError

func NewTestCustomRuleInputInternalServerError

func NewTestCustomRuleInputInternalServerError() *TestCustomRuleInputInternalServerError

NewTestCustomRuleInputInternalServerError creates a TestCustomRuleInputInternalServerError with default headers values

func (*TestCustomRuleInputInternalServerError) Error

func (*TestCustomRuleInputInternalServerError) GetPayload

type TestCustomRuleInputOK

type TestCustomRuleInputOK struct {
	Payload *models.TestCustomRuleInputScan
}

TestCustomRuleInputOK handles this case with default header values.

Input used for the custom rule.

func NewTestCustomRuleInputOK

func NewTestCustomRuleInputOK() *TestCustomRuleInputOK

NewTestCustomRuleInputOK creates a TestCustomRuleInputOK with default headers values

func (*TestCustomRuleInputOK) Error

func (o *TestCustomRuleInputOK) Error() string

func (*TestCustomRuleInputOK) GetPayload

type TestCustomRuleInputParams

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

func NewTestCustomRuleInputParams() *TestCustomRuleInputParams

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

func NewTestCustomRuleInputParamsWithContext

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

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

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

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

SetContext adds the context to the test custom rule input params

func (*TestCustomRuleInputParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the test custom rule input params

func (*TestCustomRuleInputParams) SetScanID

func (o *TestCustomRuleInputParams) SetScanID(scanID string)

SetScanID adds the scanId to the test custom rule input params

func (*TestCustomRuleInputParams) SetTimeout

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

SetTimeout adds the timeout to the test custom rule input params

func (*TestCustomRuleInputParams) SetViaDownload

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

SetViaDownload adds the viaDownload to the test custom rule input params

func (*TestCustomRuleInputParams) WithContext

WithContext adds the context to the test custom rule input params

func (*TestCustomRuleInputParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the test custom rule input params

func (*TestCustomRuleInputParams) WithScanID

WithScanID adds the scanID to the test custom rule input params

func (*TestCustomRuleInputParams) WithTimeout

WithTimeout adds the timeout to the test custom rule input params

func (*TestCustomRuleInputParams) WithViaDownload

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

WithViaDownload adds the viaDownload to the test custom rule input params

func (*TestCustomRuleInputParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TestCustomRuleInputReader

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

TestCustomRuleInputReader is a Reader for the TestCustomRuleInput structure.

func (*TestCustomRuleInputReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TestCustomRuleInputUnauthorized

type TestCustomRuleInputUnauthorized struct {
	Payload *models.AuthenticationError
}

TestCustomRuleInputUnauthorized handles this case with default header values.

AuthenticationError

func NewTestCustomRuleInputUnauthorized

func NewTestCustomRuleInputUnauthorized() *TestCustomRuleInputUnauthorized

NewTestCustomRuleInputUnauthorized creates a TestCustomRuleInputUnauthorized with default headers values

func (*TestCustomRuleInputUnauthorized) Error

func (*TestCustomRuleInputUnauthorized) GetPayload

type TestCustomRuleInternalServerError

type TestCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

TestCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewTestCustomRuleInternalServerError

func NewTestCustomRuleInternalServerError() *TestCustomRuleInternalServerError

NewTestCustomRuleInternalServerError creates a TestCustomRuleInternalServerError with default headers values

func (*TestCustomRuleInternalServerError) Error

func (*TestCustomRuleInternalServerError) GetPayload

type TestCustomRuleOK

type TestCustomRuleOK struct {
	Payload *models.TestCustomRuleOutput
}

TestCustomRuleOK handles this case with default header values.

Validation results for the custom rule.

func NewTestCustomRuleOK

func NewTestCustomRuleOK() *TestCustomRuleOK

NewTestCustomRuleOK creates a TestCustomRuleOK with default headers values

func (*TestCustomRuleOK) Error

func (o *TestCustomRuleOK) Error() string

func (*TestCustomRuleOK) GetPayload

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

type TestCustomRuleParams

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

func NewTestCustomRuleParams() *TestCustomRuleParams

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

func NewTestCustomRuleParamsWithContext

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

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

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

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

SetContext adds the context to the test custom rule params

func (*TestCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the test custom rule params

func (*TestCustomRuleParams) SetRule

SetRule adds the rule to the test custom rule params

func (*TestCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the test custom rule params

func (*TestCustomRuleParams) SetViaDownload

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

SetViaDownload adds the viaDownload to the test custom rule params

func (*TestCustomRuleParams) WithContext

WithContext adds the context to the test custom rule params

func (*TestCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the test custom rule params

func (*TestCustomRuleParams) WithRule

WithRule adds the rule to the test custom rule params

func (*TestCustomRuleParams) WithTimeout

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

WithTimeout adds the timeout to the test custom rule params

func (*TestCustomRuleParams) WithViaDownload

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

WithViaDownload adds the viaDownload to the test custom rule params

func (*TestCustomRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TestCustomRuleReader

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

TestCustomRuleReader is a Reader for the TestCustomRule structure.

func (*TestCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TestCustomRuleUnauthorized

type TestCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

TestCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewTestCustomRuleUnauthorized

func NewTestCustomRuleUnauthorized() *TestCustomRuleUnauthorized

NewTestCustomRuleUnauthorized creates a TestCustomRuleUnauthorized with default headers values

func (*TestCustomRuleUnauthorized) Error

func (*TestCustomRuleUnauthorized) GetPayload

type UpdateCustomRuleBadRequest

type UpdateCustomRuleBadRequest struct {
	Payload *models.BadRequestError
}

UpdateCustomRuleBadRequest handles this case with default header values.

BadRequestError

func NewUpdateCustomRuleBadRequest

func NewUpdateCustomRuleBadRequest() *UpdateCustomRuleBadRequest

NewUpdateCustomRuleBadRequest creates a UpdateCustomRuleBadRequest with default headers values

func (*UpdateCustomRuleBadRequest) Error

func (*UpdateCustomRuleBadRequest) GetPayload

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

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

type UpdateCustomRuleNotFound

type UpdateCustomRuleNotFound struct {
	Payload *models.NotFoundError
}

UpdateCustomRuleNotFound handles this case with default header values.

NotFoundError

func NewUpdateCustomRuleNotFound

func NewUpdateCustomRuleNotFound() *UpdateCustomRuleNotFound

NewUpdateCustomRuleNotFound creates a UpdateCustomRuleNotFound with default headers values

func (*UpdateCustomRuleNotFound) Error

func (o *UpdateCustomRuleNotFound) Error() string

func (*UpdateCustomRuleNotFound) GetPayload

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

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

Jump to

Keyboard shortcuts

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