Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateCustomRule(params *CreateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomRuleCreated, error)
- func (a *Client) DeleteCustomRule(params *DeleteCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCustomRuleNoContent, error)
- func (a *Client) GetCustomRule(params *GetCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetCustomRuleOK, error)
- func (a *Client) ListCustomRules(params *ListCustomRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCustomRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TestCustomRule(params *TestCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleOK, error)
- func (a *Client) TestCustomRuleInput(params *TestCustomRuleInputParams, authInfo runtime.ClientAuthInfoWriter) (*TestCustomRuleInputOK, error)
- func (a *Client) UpdateCustomRule(params *UpdateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCustomRuleOK, error)
- type ClientService
- type CreateCustomRuleBadRequest
- type CreateCustomRuleCreated
- type CreateCustomRuleForbidden
- type CreateCustomRuleInternalServerError
- type CreateCustomRuleParams
- func NewCreateCustomRuleParams() *CreateCustomRuleParams
- func NewCreateCustomRuleParamsWithContext(ctx context.Context) *CreateCustomRuleParams
- func NewCreateCustomRuleParamsWithHTTPClient(client *http.Client) *CreateCustomRuleParams
- func NewCreateCustomRuleParamsWithTimeout(timeout time.Duration) *CreateCustomRuleParams
- func (o *CreateCustomRuleParams) SetContext(ctx context.Context)
- func (o *CreateCustomRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomRuleParams) SetRule(rule *models.CreateCustomRuleInput)
- func (o *CreateCustomRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomRuleParams) WithContext(ctx context.Context) *CreateCustomRuleParams
- func (o *CreateCustomRuleParams) WithHTTPClient(client *http.Client) *CreateCustomRuleParams
- func (o *CreateCustomRuleParams) WithRule(rule *models.CreateCustomRuleInput) *CreateCustomRuleParams
- func (o *CreateCustomRuleParams) WithTimeout(timeout time.Duration) *CreateCustomRuleParams
- func (o *CreateCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomRuleReader
- type CreateCustomRuleUnauthorized
- type DeleteCustomRuleBadRequest
- type DeleteCustomRuleForbidden
- type DeleteCustomRuleInternalServerError
- type DeleteCustomRuleNoContent
- type DeleteCustomRuleParams
- func NewDeleteCustomRuleParams() *DeleteCustomRuleParams
- func NewDeleteCustomRuleParamsWithContext(ctx context.Context) *DeleteCustomRuleParams
- func NewDeleteCustomRuleParamsWithHTTPClient(client *http.Client) *DeleteCustomRuleParams
- func NewDeleteCustomRuleParamsWithTimeout(timeout time.Duration) *DeleteCustomRuleParams
- func (o *DeleteCustomRuleParams) SetContext(ctx context.Context)
- func (o *DeleteCustomRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomRuleParams) SetRuleID(ruleID string)
- func (o *DeleteCustomRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomRuleParams) WithContext(ctx context.Context) *DeleteCustomRuleParams
- func (o *DeleteCustomRuleParams) WithHTTPClient(client *http.Client) *DeleteCustomRuleParams
- func (o *DeleteCustomRuleParams) WithRuleID(ruleID string) *DeleteCustomRuleParams
- func (o *DeleteCustomRuleParams) WithTimeout(timeout time.Duration) *DeleteCustomRuleParams
- func (o *DeleteCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomRuleReader
- type DeleteCustomRuleUnauthorized
- type GetCustomRuleBadRequest
- type GetCustomRuleForbidden
- type GetCustomRuleInternalServerError
- type GetCustomRuleNotFound
- type GetCustomRuleOK
- type GetCustomRuleParams
- func (o *GetCustomRuleParams) SetContext(ctx context.Context)
- func (o *GetCustomRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetCustomRuleParams) SetRuleID(ruleID string)
- func (o *GetCustomRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetCustomRuleParams) WithContext(ctx context.Context) *GetCustomRuleParams
- func (o *GetCustomRuleParams) WithHTTPClient(client *http.Client) *GetCustomRuleParams
- func (o *GetCustomRuleParams) WithRuleID(ruleID string) *GetCustomRuleParams
- func (o *GetCustomRuleParams) WithTimeout(timeout time.Duration) *GetCustomRuleParams
- func (o *GetCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCustomRuleReader
- type GetCustomRuleUnauthorized
- type ListCustomRulesBadRequest
- type ListCustomRulesForbidden
- type ListCustomRulesInternalServerError
- type ListCustomRulesOK
- type ListCustomRulesParams
- func NewListCustomRulesParams() *ListCustomRulesParams
- func NewListCustomRulesParamsWithContext(ctx context.Context) *ListCustomRulesParams
- func NewListCustomRulesParamsWithHTTPClient(client *http.Client) *ListCustomRulesParams
- func NewListCustomRulesParamsWithTimeout(timeout time.Duration) *ListCustomRulesParams
- func (o *ListCustomRulesParams) SetContext(ctx context.Context)
- func (o *ListCustomRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListCustomRulesParams) SetMaxItems(maxItems *int64)
- func (o *ListCustomRulesParams) SetOffset(offset *int64)
- func (o *ListCustomRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListCustomRulesParams) WithContext(ctx context.Context) *ListCustomRulesParams
- func (o *ListCustomRulesParams) WithHTTPClient(client *http.Client) *ListCustomRulesParams
- func (o *ListCustomRulesParams) WithMaxItems(maxItems *int64) *ListCustomRulesParams
- func (o *ListCustomRulesParams) WithOffset(offset *int64) *ListCustomRulesParams
- func (o *ListCustomRulesParams) WithTimeout(timeout time.Duration) *ListCustomRulesParams
- func (o *ListCustomRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCustomRulesReader
- type ListCustomRulesUnauthorized
- type TestCustomRuleBadRequest
- type TestCustomRuleForbidden
- type TestCustomRuleInputBadRequest
- type TestCustomRuleInputForbidden
- type TestCustomRuleInputInternalServerError
- type TestCustomRuleInputOK
- type TestCustomRuleInputParams
- func NewTestCustomRuleInputParams() *TestCustomRuleInputParams
- func NewTestCustomRuleInputParamsWithContext(ctx context.Context) *TestCustomRuleInputParams
- func NewTestCustomRuleInputParamsWithHTTPClient(client *http.Client) *TestCustomRuleInputParams
- func NewTestCustomRuleInputParamsWithTimeout(timeout time.Duration) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) SetContext(ctx context.Context)
- func (o *TestCustomRuleInputParams) SetHTTPClient(client *http.Client)
- func (o *TestCustomRuleInputParams) SetScanID(scanID string)
- func (o *TestCustomRuleInputParams) SetTimeout(timeout time.Duration)
- func (o *TestCustomRuleInputParams) SetViaDownload(viaDownload *bool)
- func (o *TestCustomRuleInputParams) WithContext(ctx context.Context) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) WithHTTPClient(client *http.Client) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) WithScanID(scanID string) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) WithTimeout(timeout time.Duration) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) WithViaDownload(viaDownload *bool) *TestCustomRuleInputParams
- func (o *TestCustomRuleInputParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestCustomRuleInputReader
- type TestCustomRuleInputUnauthorized
- type TestCustomRuleInternalServerError
- type TestCustomRuleOK
- type TestCustomRuleParams
- func NewTestCustomRuleParams() *TestCustomRuleParams
- func NewTestCustomRuleParamsWithContext(ctx context.Context) *TestCustomRuleParams
- func NewTestCustomRuleParamsWithHTTPClient(client *http.Client) *TestCustomRuleParams
- func NewTestCustomRuleParamsWithTimeout(timeout time.Duration) *TestCustomRuleParams
- func (o *TestCustomRuleParams) SetContext(ctx context.Context)
- func (o *TestCustomRuleParams) SetHTTPClient(client *http.Client)
- func (o *TestCustomRuleParams) SetRule(rule *models.TestCustomRuleInput)
- func (o *TestCustomRuleParams) SetTimeout(timeout time.Duration)
- func (o *TestCustomRuleParams) SetViaDownload(viaDownload *bool)
- func (o *TestCustomRuleParams) WithContext(ctx context.Context) *TestCustomRuleParams
- func (o *TestCustomRuleParams) WithHTTPClient(client *http.Client) *TestCustomRuleParams
- func (o *TestCustomRuleParams) WithRule(rule *models.TestCustomRuleInput) *TestCustomRuleParams
- func (o *TestCustomRuleParams) WithTimeout(timeout time.Duration) *TestCustomRuleParams
- func (o *TestCustomRuleParams) WithViaDownload(viaDownload *bool) *TestCustomRuleParams
- func (o *TestCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestCustomRuleReader
- type TestCustomRuleUnauthorized
- type UpdateCustomRuleBadRequest
- type UpdateCustomRuleForbidden
- type UpdateCustomRuleInternalServerError
- type UpdateCustomRuleNotFound
- type UpdateCustomRuleOK
- type UpdateCustomRuleParams
- func NewUpdateCustomRuleParams() *UpdateCustomRuleParams
- func NewUpdateCustomRuleParamsWithContext(ctx context.Context) *UpdateCustomRuleParams
- func NewUpdateCustomRuleParamsWithHTTPClient(client *http.Client) *UpdateCustomRuleParams
- func NewUpdateCustomRuleParamsWithTimeout(timeout time.Duration) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) SetContext(ctx context.Context)
- func (o *UpdateCustomRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomRuleParams) SetRule(rule *models.UpdateCustomRuleInput)
- func (o *UpdateCustomRuleParams) SetRuleID(ruleID string)
- func (o *UpdateCustomRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomRuleParams) WithContext(ctx context.Context) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) WithHTTPClient(client *http.Client) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) WithRule(rule *models.UpdateCustomRuleInput) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) WithRuleID(ruleID string) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) WithTimeout(timeout time.Duration) *UpdateCustomRuleParams
- func (o *UpdateCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomRuleReader
- type UpdateCustomRuleUnauthorized
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 (o *CreateCustomRuleBadRequest) Error() string
func (*CreateCustomRuleBadRequest) GetPayload ¶ added in v0.6.0
func (o *CreateCustomRuleBadRequest) GetPayload() *models.BadRequestError
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
func (o *CreateCustomRuleCreated) GetPayload() *models.CustomRuleWithErrors
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
func (o *CreateCustomRuleForbidden) GetPayload() *models.AuthorizationError
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 (o *CreateCustomRuleInternalServerError) Error() string
func (*CreateCustomRuleInternalServerError) GetPayload ¶ added in v0.6.0
func (o *CreateCustomRuleInternalServerError) GetPayload() *models.InternalServerError
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 ¶
func (o *CreateCustomRuleParams) SetRule(rule *models.CreateCustomRuleInput)
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 ¶
func (o *CreateCustomRuleParams) WithContext(ctx context.Context) *CreateCustomRuleParams
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 ¶
func (o *CreateCustomRuleParams) WithRule(rule *models.CreateCustomRuleInput) *CreateCustomRuleParams
WithRule adds the rule to the create custom rule params
func (*CreateCustomRuleParams) WithTimeout ¶
func (o *CreateCustomRuleParams) WithTimeout(timeout time.Duration) *CreateCustomRuleParams
WithTimeout adds the timeout to the create custom rule params
func (*CreateCustomRuleParams) WriteToRequest ¶
func (o *CreateCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *CreateCustomRuleUnauthorized) Error() string
func (*CreateCustomRuleUnauthorized) GetPayload ¶ added in v0.6.0
func (o *CreateCustomRuleUnauthorized) GetPayload() *models.AuthenticationError
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 (o *DeleteCustomRuleBadRequest) Error() string
func (*DeleteCustomRuleBadRequest) GetPayload ¶ added in v0.7.0
func (o *DeleteCustomRuleBadRequest) GetPayload() *models.BadRequestError
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
func (o *DeleteCustomRuleForbidden) GetPayload() *models.AuthorizationError
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 (o *DeleteCustomRuleInternalServerError) Error() string
func (*DeleteCustomRuleInternalServerError) GetPayload ¶ added in v0.6.0
func (o *DeleteCustomRuleInternalServerError) GetPayload() *models.InternalServerError
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 ¶
func (o *DeleteCustomRuleParams) WithContext(ctx context.Context) *DeleteCustomRuleParams
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 ¶
func (o *DeleteCustomRuleParams) WithTimeout(timeout time.Duration) *DeleteCustomRuleParams
WithTimeout adds the timeout to the delete custom rule params
func (*DeleteCustomRuleParams) WriteToRequest ¶
func (o *DeleteCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *DeleteCustomRuleUnauthorized) Error() string
func (*DeleteCustomRuleUnauthorized) GetPayload ¶ added in v0.6.0
func (o *DeleteCustomRuleUnauthorized) GetPayload() *models.AuthenticationError
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
func (o *GetCustomRuleBadRequest) GetPayload() *models.BadRequestError
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
func (o *GetCustomRuleForbidden) GetPayload() *models.AuthorizationError
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 (o *GetCustomRuleInternalServerError) Error() string
func (*GetCustomRuleInternalServerError) GetPayload ¶ added in v0.6.0
func (o *GetCustomRuleInternalServerError) GetPayload() *models.InternalServerError
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 ¶
func (o *GetCustomRuleParams) WithContext(ctx context.Context) *GetCustomRuleParams
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 {
}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
func (o *GetCustomRuleUnauthorized) GetPayload() *models.AuthenticationError
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
func (o *ListCustomRulesBadRequest) GetPayload() *models.BadRequestError
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
func (o *ListCustomRulesForbidden) GetPayload() *models.AuthorizationError
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 (o *ListCustomRulesInternalServerError) Error() string
func (*ListCustomRulesInternalServerError) GetPayload ¶ added in v0.6.0
func (o *ListCustomRulesInternalServerError) GetPayload() *models.InternalServerError
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 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) SetTimeout ¶
func (o *ListCustomRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list custom rules params
func (*ListCustomRulesParams) WithContext ¶
func (o *ListCustomRulesParams) WithContext(ctx context.Context) *ListCustomRulesParams
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) 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 {
}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 (o *ListCustomRulesUnauthorized) Error() string
func (*ListCustomRulesUnauthorized) GetPayload ¶ added in v0.6.0
func (o *ListCustomRulesUnauthorized) GetPayload() *models.AuthenticationError
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
func (o *TestCustomRuleBadRequest) GetPayload() *models.BadRequestError
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
func (o *TestCustomRuleForbidden) GetPayload() *models.AuthorizationError
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 (o *TestCustomRuleInputBadRequest) Error() string
func (*TestCustomRuleInputBadRequest) GetPayload ¶ added in v0.7.0
func (o *TestCustomRuleInputBadRequest) GetPayload() *models.BadRequestError
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 (o *TestCustomRuleInputForbidden) Error() string
func (*TestCustomRuleInputForbidden) GetPayload ¶ added in v0.6.0
func (o *TestCustomRuleInputForbidden) GetPayload() *models.AuthorizationError
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 (o *TestCustomRuleInputInternalServerError) Error() string
func (*TestCustomRuleInputInternalServerError) GetPayload ¶ added in v0.6.0
func (o *TestCustomRuleInputInternalServerError) GetPayload() *models.InternalServerError
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
func (o *TestCustomRuleInputOK) GetPayload() *models.TestCustomRuleInputScan
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
func (o *TestCustomRuleInputParams) WithContext(ctx context.Context) *TestCustomRuleInputParams
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
func (o *TestCustomRuleInputParams) WithScanID(scanID string) *TestCustomRuleInputParams
WithScanID adds the scanID to the test custom rule input params
func (*TestCustomRuleInputParams) WithTimeout ¶ added in v0.4.0
func (o *TestCustomRuleInputParams) WithTimeout(timeout time.Duration) *TestCustomRuleInputParams
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
func (o *TestCustomRuleInputParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *TestCustomRuleInputUnauthorized) Error() string
func (*TestCustomRuleInputUnauthorized) GetPayload ¶ added in v0.6.0
func (o *TestCustomRuleInputUnauthorized) GetPayload() *models.AuthenticationError
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 (o *TestCustomRuleInternalServerError) Error() string
func (*TestCustomRuleInternalServerError) GetPayload ¶ added in v0.6.0
func (o *TestCustomRuleInternalServerError) GetPayload() *models.InternalServerError
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
func (o *TestCustomRuleParams) SetRule(rule *models.TestCustomRuleInput)
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
func (o *TestCustomRuleParams) WithContext(ctx context.Context) *TestCustomRuleParams
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
func (o *TestCustomRuleParams) WithRule(rule *models.TestCustomRuleInput) *TestCustomRuleParams
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 {
}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 (o *TestCustomRuleUnauthorized) Error() string
func (*TestCustomRuleUnauthorized) GetPayload ¶ added in v0.6.0
func (o *TestCustomRuleUnauthorized) GetPayload() *models.AuthenticationError
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 (o *UpdateCustomRuleBadRequest) Error() string
func (*UpdateCustomRuleBadRequest) GetPayload ¶ added in v0.6.0
func (o *UpdateCustomRuleBadRequest) GetPayload() *models.BadRequestError
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
func (o *UpdateCustomRuleForbidden) GetPayload() *models.AuthorizationError
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 (o *UpdateCustomRuleInternalServerError) Error() string
func (*UpdateCustomRuleInternalServerError) GetPayload ¶ added in v0.6.0
func (o *UpdateCustomRuleInternalServerError) GetPayload() *models.InternalServerError
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
func (o *UpdateCustomRuleNotFound) GetPayload() *models.NotFoundError
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
func (o *UpdateCustomRuleOK) GetPayload() *models.CustomRuleWithErrors
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 ¶
func (o *UpdateCustomRuleParams) SetRule(rule *models.UpdateCustomRuleInput)
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 ¶
func (o *UpdateCustomRuleParams) WithContext(ctx context.Context) *UpdateCustomRuleParams
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 ¶
func (o *UpdateCustomRuleParams) WithRule(rule *models.UpdateCustomRuleInput) *UpdateCustomRuleParams
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 ¶
func (o *UpdateCustomRuleParams) WithTimeout(timeout time.Duration) *UpdateCustomRuleParams
WithTimeout adds the timeout to the update custom rule params
func (*UpdateCustomRuleParams) WriteToRequest ¶
func (o *UpdateCustomRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *UpdateCustomRuleUnauthorized) Error() string
func (*UpdateCustomRuleUnauthorized) GetPayload ¶ added in v0.6.0
func (o *UpdateCustomRuleUnauthorized) GetPayload() *models.AuthenticationError
Source Files
¶
- create_custom_rule_parameters.go
- create_custom_rule_responses.go
- custom_rules_client.go
- delete_custom_rule_parameters.go
- delete_custom_rule_responses.go
- get_custom_rule_parameters.go
- get_custom_rule_responses.go
- list_custom_rules_parameters.go
- list_custom_rules_responses.go
- test_custom_rule_input_parameters.go
- test_custom_rule_input_responses.go
- test_custom_rule_parameters.go
- test_custom_rule_responses.go
- update_custom_rule_parameters.go
- update_custom_rule_responses.go