rules

package
v0.0.0-...-81ab817 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 8 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 rules API

func New

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

New creates a new rules API client.

func (*Client) GetRuleSetting

func (a *Client) GetRuleSetting(params *GetRuleSettingParams) (*GetRuleSettingOK, error)

GetRuleSetting gets rule setting

GET request to this endpoint allows you to get configured rule setting for the specified rule Id of the specified account.

func (*Client) GetRuleSettings

func (a *Client) GetRuleSettings(params *GetRuleSettingsParams) (*GetRuleSettingsOK, error)

GetRuleSettings gets rule settings

A GET request to this endpoint allows you to get rule settings for all configured rules of the specified account.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRuleSetting

func (a *Client) UpdateRuleSetting(params *UpdateRuleSettingParams) (*UpdateRuleSettingOK, error)

UpdateRuleSetting updates rule setting

A PATCH request to this endpoint allows you to customize rule setting for the specified rule Id of the specified account.

func (*Client) UpdateRuleSettings

func (a *Client) UpdateRuleSettings(params *UpdateRuleSettingsParams) (*UpdateRuleSettingsOK, error)

UpdateRuleSettings updates rule settings

A PATCH request to this endpoint allows you to customize rule settings for the specified account.

type GetRuleSettingOK

type GetRuleSettingOK struct {
}

GetRuleSettingOK handles this case with default header values.

OK

func NewGetRuleSettingOK

func NewGetRuleSettingOK() *GetRuleSettingOK

NewGetRuleSettingOK creates a GetRuleSettingOK with default headers values

func (*GetRuleSettingOK) Error

func (o *GetRuleSettingOK) Error() string

type GetRuleSettingParams

type GetRuleSettingParams struct {

	/*AccountID
	  Account ID

	*/
	AccountID string
	/*RuleID
	  Rule ID

	*/
	RuleID string

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

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

func NewGetRuleSettingParams

func NewGetRuleSettingParams() *GetRuleSettingParams

NewGetRuleSettingParams creates a new GetRuleSettingParams object with the default values initialized.

func NewGetRuleSettingParamsWithContext

func NewGetRuleSettingParamsWithContext(ctx context.Context) *GetRuleSettingParams

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

func NewGetRuleSettingParamsWithHTTPClient

func NewGetRuleSettingParamsWithHTTPClient(client *http.Client) *GetRuleSettingParams

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

func NewGetRuleSettingParamsWithTimeout

func NewGetRuleSettingParamsWithTimeout(timeout time.Duration) *GetRuleSettingParams

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

func (*GetRuleSettingParams) SetAccountID

func (o *GetRuleSettingParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get rule setting params

func (*GetRuleSettingParams) SetContext

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

SetContext adds the context to the get rule setting params

func (*GetRuleSettingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rule setting params

func (*GetRuleSettingParams) SetRuleID

func (o *GetRuleSettingParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the get rule setting params

func (*GetRuleSettingParams) SetTimeout

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

SetTimeout adds the timeout to the get rule setting params

func (*GetRuleSettingParams) WithAccountID

func (o *GetRuleSettingParams) WithAccountID(accountID string) *GetRuleSettingParams

WithAccountID adds the accountID to the get rule setting params

func (*GetRuleSettingParams) WithContext

WithContext adds the context to the get rule setting params

func (*GetRuleSettingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get rule setting params

func (*GetRuleSettingParams) WithRuleID

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

WithRuleID adds the ruleID to the get rule setting params

func (*GetRuleSettingParams) WithTimeout

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

WithTimeout adds the timeout to the get rule setting params

func (*GetRuleSettingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRuleSettingReader

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

GetRuleSettingReader is a Reader for the GetRuleSetting structure.

func (*GetRuleSettingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuleSettingsOK

type GetRuleSettingsOK struct {
}

GetRuleSettingsOK handles this case with default header values.

OK

func NewGetRuleSettingsOK

func NewGetRuleSettingsOK() *GetRuleSettingsOK

NewGetRuleSettingsOK creates a GetRuleSettingsOK with default headers values

func (*GetRuleSettingsOK) Error

func (o *GetRuleSettingsOK) Error() string

type GetRuleSettingsParams

type GetRuleSettingsParams struct {

	/*AccountID
	  Account ID

	*/
	AccountID string

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

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

func NewGetRuleSettingsParams

func NewGetRuleSettingsParams() *GetRuleSettingsParams

NewGetRuleSettingsParams creates a new GetRuleSettingsParams object with the default values initialized.

func NewGetRuleSettingsParamsWithContext

func NewGetRuleSettingsParamsWithContext(ctx context.Context) *GetRuleSettingsParams

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

func NewGetRuleSettingsParamsWithHTTPClient

func NewGetRuleSettingsParamsWithHTTPClient(client *http.Client) *GetRuleSettingsParams

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

func NewGetRuleSettingsParamsWithTimeout

func NewGetRuleSettingsParamsWithTimeout(timeout time.Duration) *GetRuleSettingsParams

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

func (*GetRuleSettingsParams) SetAccountID

func (o *GetRuleSettingsParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the get rule settings params

func (*GetRuleSettingsParams) SetContext

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

SetContext adds the context to the get rule settings params

func (*GetRuleSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rule settings params

func (*GetRuleSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the get rule settings params

func (*GetRuleSettingsParams) WithAccountID

func (o *GetRuleSettingsParams) WithAccountID(accountID string) *GetRuleSettingsParams

WithAccountID adds the accountID to the get rule settings params

func (*GetRuleSettingsParams) WithContext

WithContext adds the context to the get rule settings params

func (*GetRuleSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get rule settings params

func (*GetRuleSettingsParams) WithTimeout

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

WithTimeout adds the timeout to the get rule settings params

func (*GetRuleSettingsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRuleSettingsReader

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

GetRuleSettingsReader is a Reader for the GetRuleSettings structure.

func (*GetRuleSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRuleSettingOK

type UpdateRuleSettingOK struct {
}

UpdateRuleSettingOK handles this case with default header values.

OK

func NewUpdateRuleSettingOK

func NewUpdateRuleSettingOK() *UpdateRuleSettingOK

NewUpdateRuleSettingOK creates a UpdateRuleSettingOK with default headers values

func (*UpdateRuleSettingOK) Error

func (o *UpdateRuleSettingOK) Error() string

type UpdateRuleSettingParams

type UpdateRuleSettingParams struct {

	/*AccountID
	  Account ID

	*/
	AccountID string
	/*RuleID
	  Rule ID

	*/
	RuleID string

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

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

func NewUpdateRuleSettingParams

func NewUpdateRuleSettingParams() *UpdateRuleSettingParams

NewUpdateRuleSettingParams creates a new UpdateRuleSettingParams object with the default values initialized.

func NewUpdateRuleSettingParamsWithContext

func NewUpdateRuleSettingParamsWithContext(ctx context.Context) *UpdateRuleSettingParams

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

func NewUpdateRuleSettingParamsWithHTTPClient

func NewUpdateRuleSettingParamsWithHTTPClient(client *http.Client) *UpdateRuleSettingParams

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

func NewUpdateRuleSettingParamsWithTimeout

func NewUpdateRuleSettingParamsWithTimeout(timeout time.Duration) *UpdateRuleSettingParams

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

func (*UpdateRuleSettingParams) SetAccountID

func (o *UpdateRuleSettingParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the update rule setting params

func (*UpdateRuleSettingParams) SetContext

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

SetContext adds the context to the update rule setting params

func (*UpdateRuleSettingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update rule setting params

func (*UpdateRuleSettingParams) SetRuleID

func (o *UpdateRuleSettingParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the update rule setting params

func (*UpdateRuleSettingParams) SetTimeout

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

SetTimeout adds the timeout to the update rule setting params

func (*UpdateRuleSettingParams) WithAccountID

func (o *UpdateRuleSettingParams) WithAccountID(accountID string) *UpdateRuleSettingParams

WithAccountID adds the accountID to the update rule setting params

func (*UpdateRuleSettingParams) WithContext

WithContext adds the context to the update rule setting params

func (*UpdateRuleSettingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update rule setting params

func (*UpdateRuleSettingParams) WithRuleID

WithRuleID adds the ruleID to the update rule setting params

func (*UpdateRuleSettingParams) WithTimeout

WithTimeout adds the timeout to the update rule setting params

func (*UpdateRuleSettingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRuleSettingReader

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

UpdateRuleSettingReader is a Reader for the UpdateRuleSetting structure.

func (*UpdateRuleSettingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRuleSettingsOK

type UpdateRuleSettingsOK struct {
}

UpdateRuleSettingsOK handles this case with default header values.

OK

func NewUpdateRuleSettingsOK

func NewUpdateRuleSettingsOK() *UpdateRuleSettingsOK

NewUpdateRuleSettingsOK creates a UpdateRuleSettingsOK with default headers values

func (*UpdateRuleSettingsOK) Error

func (o *UpdateRuleSettingsOK) Error() string

type UpdateRuleSettingsParams

type UpdateRuleSettingsParams struct {

	/*AccountID
	  Account ID

	*/
	AccountID string

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

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

func NewUpdateRuleSettingsParams

func NewUpdateRuleSettingsParams() *UpdateRuleSettingsParams

NewUpdateRuleSettingsParams creates a new UpdateRuleSettingsParams object with the default values initialized.

func NewUpdateRuleSettingsParamsWithContext

func NewUpdateRuleSettingsParamsWithContext(ctx context.Context) *UpdateRuleSettingsParams

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

func NewUpdateRuleSettingsParamsWithHTTPClient

func NewUpdateRuleSettingsParamsWithHTTPClient(client *http.Client) *UpdateRuleSettingsParams

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

func NewUpdateRuleSettingsParamsWithTimeout

func NewUpdateRuleSettingsParamsWithTimeout(timeout time.Duration) *UpdateRuleSettingsParams

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

func (*UpdateRuleSettingsParams) SetAccountID

func (o *UpdateRuleSettingsParams) SetAccountID(accountID string)

SetAccountID adds the accountId to the update rule settings params

func (*UpdateRuleSettingsParams) SetContext

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

SetContext adds the context to the update rule settings params

func (*UpdateRuleSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update rule settings params

func (*UpdateRuleSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the update rule settings params

func (*UpdateRuleSettingsParams) WithAccountID

func (o *UpdateRuleSettingsParams) WithAccountID(accountID string) *UpdateRuleSettingsParams

WithAccountID adds the accountID to the update rule settings params

func (*UpdateRuleSettingsParams) WithContext

WithContext adds the context to the update rule settings params

func (*UpdateRuleSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update rule settings params

func (*UpdateRuleSettingsParams) WithTimeout

WithTimeout adds the timeout to the update rule settings params

func (*UpdateRuleSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRuleSettingsReader

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

UpdateRuleSettingsReader is a Reader for the UpdateRuleSettings structure.

func (*UpdateRuleSettingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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