custom_rules

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new custom rules API client.

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) UpdateCustomRule

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

UpdateCustomRule updates custom rule

Update configuration of a custom rule.

func (*Client) ValidateCustomRule

func (a *Client) ValidateCustomRule(params *ValidateCustomRuleParams, authInfo runtime.ClientAuthInfoWriter) (*ValidateCustomRuleCreated, error)

ValidateCustomRule validates a custom rule

Validate a custom rule using state from an environment.

type CreateCustomRuleCreated

type CreateCustomRuleCreated struct {
	Payload *models.CustomRule
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 {
	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

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

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

type UpdateCustomRuleOK

type UpdateCustomRuleOK struct {
	Payload *models.CustomRule
}

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

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

type ValidateCustomRuleCreated

type ValidateCustomRuleCreated struct {
	Payload *models.ValidateCustomRuleOutput
}

ValidateCustomRuleCreated handles this case with default header values.

Validation results for the custom rule.

func NewValidateCustomRuleCreated

func NewValidateCustomRuleCreated() *ValidateCustomRuleCreated

NewValidateCustomRuleCreated creates a ValidateCustomRuleCreated with default headers values

func (*ValidateCustomRuleCreated) Error

func (o *ValidateCustomRuleCreated) Error() string

type ValidateCustomRuleForbidden

type ValidateCustomRuleForbidden struct {
	Payload *models.AuthorizationError
}

ValidateCustomRuleForbidden handles this case with default header values.

AuthorizationError

func NewValidateCustomRuleForbidden

func NewValidateCustomRuleForbidden() *ValidateCustomRuleForbidden

NewValidateCustomRuleForbidden creates a ValidateCustomRuleForbidden with default headers values

func (*ValidateCustomRuleForbidden) Error

type ValidateCustomRuleInternalServerError

type ValidateCustomRuleInternalServerError struct {
	Payload *models.InternalServerError
}

ValidateCustomRuleInternalServerError handles this case with default header values.

InternalServerError

func NewValidateCustomRuleInternalServerError

func NewValidateCustomRuleInternalServerError() *ValidateCustomRuleInternalServerError

NewValidateCustomRuleInternalServerError creates a ValidateCustomRuleInternalServerError with default headers values

func (*ValidateCustomRuleInternalServerError) Error

type ValidateCustomRuleParams

type ValidateCustomRuleParams struct {

	/*EnvironmentID
	  The id of the environment against which to validate the rule.

	*/
	EnvironmentID string
	/*Rule
	  Information about custom rule to be validated.

	*/
	Rule *models.ValidateCustomRuleInput

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

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

func NewValidateCustomRuleParams

func NewValidateCustomRuleParams() *ValidateCustomRuleParams

NewValidateCustomRuleParams creates a new ValidateCustomRuleParams object with the default values initialized.

func NewValidateCustomRuleParamsWithContext

func NewValidateCustomRuleParamsWithContext(ctx context.Context) *ValidateCustomRuleParams

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

func NewValidateCustomRuleParamsWithHTTPClient

func NewValidateCustomRuleParamsWithHTTPClient(client *http.Client) *ValidateCustomRuleParams

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

func NewValidateCustomRuleParamsWithTimeout

func NewValidateCustomRuleParamsWithTimeout(timeout time.Duration) *ValidateCustomRuleParams

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

func (*ValidateCustomRuleParams) SetContext

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

SetContext adds the context to the validate custom rule params

func (*ValidateCustomRuleParams) SetEnvironmentID

func (o *ValidateCustomRuleParams) SetEnvironmentID(environmentID string)

SetEnvironmentID adds the environmentId to the validate custom rule params

func (*ValidateCustomRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the validate custom rule params

func (*ValidateCustomRuleParams) SetRule

SetRule adds the rule to the validate custom rule params

func (*ValidateCustomRuleParams) SetTimeout

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

SetTimeout adds the timeout to the validate custom rule params

func (*ValidateCustomRuleParams) WithContext

WithContext adds the context to the validate custom rule params

func (*ValidateCustomRuleParams) WithEnvironmentID

func (o *ValidateCustomRuleParams) WithEnvironmentID(environmentID string) *ValidateCustomRuleParams

WithEnvironmentID adds the environmentID to the validate custom rule params

func (*ValidateCustomRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the validate custom rule params

func (*ValidateCustomRuleParams) WithRule

WithRule adds the rule to the validate custom rule params

func (*ValidateCustomRuleParams) WithTimeout

WithTimeout adds the timeout to the validate custom rule params

func (*ValidateCustomRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ValidateCustomRuleReader

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

ValidateCustomRuleReader is a Reader for the ValidateCustomRule structure.

func (*ValidateCustomRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateCustomRuleUnauthorized

type ValidateCustomRuleUnauthorized struct {
	Payload *models.AuthenticationError
}

ValidateCustomRuleUnauthorized handles this case with default header values.

AuthenticationError

func NewValidateCustomRuleUnauthorized

func NewValidateCustomRuleUnauthorized() *ValidateCustomRuleUnauthorized

NewValidateCustomRuleUnauthorized creates a ValidateCustomRuleUnauthorized with default headers values

func (*ValidateCustomRuleUnauthorized) Error

Jump to

Keyboard shortcuts

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