rules

package
v0.0.0-...-97f4547 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 11 Imported by: ? modules, 0 packages

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for rules API

func (*Client) CreateRule

func (a *Client) CreateRule(params *CreateRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRuleOK, error)

CreateRule creates a rule

Create a rule for the location and token principal

func (*Client) DeleteRule

func (a *Client) DeleteRule(params *DeleteRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRuleOK, error)

DeleteRule deletes a rule

Delete a rule

func (*Client) ExecuteRule

func (a *Client) ExecuteRule(params *ExecuteRuleParams, authInfo runtime.ClientAuthInfoWriter) (*ExecuteRuleOK, error)

ExecuteRule executes a rule

Trigger Rule execution given a rule ID

func (*Client) GetRule

func (a *Client) GetRule(params *GetRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetRuleOK, error)

GetRule gets a rule

Get a rule

func (*Client) ListRules

func (a *Client) ListRules(params *ListRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRulesOK, error)

ListRules rules list

List of rules for the location for the given token principal

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRule

func (a *Client) UpdateRule(params *UpdateRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRuleOK, error)

UpdateRule updates a rule

Update a rule

type ClientService

type ClientService interface {
	CreateRule(params *CreateRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRuleOK, error)

	DeleteRule(params *DeleteRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRuleOK, error)

	ExecuteRule(params *ExecuteRuleParams, authInfo runtime.ClientAuthInfoWriter) (*ExecuteRuleOK, error)

	GetRule(params *GetRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetRuleOK, error)

	ListRules(params *ListRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListRulesOK, error)

	UpdateRule(params *UpdateRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRuleOK, 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 rules API client.

type CreateRuleDefault

type CreateRuleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

CreateRuleDefault handles this case with default header values.

Unexpected error

func NewCreateRuleDefault

func NewCreateRuleDefault(code int) *CreateRuleDefault

NewCreateRuleDefault creates a CreateRuleDefault with default headers values

func (*CreateRuleDefault) Code

func (o *CreateRuleDefault) Code() int

Code gets the status code for the create rule default response

func (*CreateRuleDefault) Error

func (o *CreateRuleDefault) Error() string

func (*CreateRuleDefault) GetPayload

func (o *CreateRuleDefault) GetPayload() *models.Error

type CreateRuleForbidden

type CreateRuleForbidden struct {
}

CreateRuleForbidden handles this case with default header values.

Not authorized

func NewCreateRuleForbidden

func NewCreateRuleForbidden() *CreateRuleForbidden

NewCreateRuleForbidden creates a CreateRuleForbidden with default headers values

func (*CreateRuleForbidden) Error

func (o *CreateRuleForbidden) Error() string

type CreateRuleOK

type CreateRuleOK struct {
	Payload *models.Rule
}

CreateRuleOK handles this case with default header values.

The created rule

func NewCreateRuleOK

func NewCreateRuleOK() *CreateRuleOK

NewCreateRuleOK creates a CreateRuleOK with default headers values

func (*CreateRuleOK) Error

func (o *CreateRuleOK) Error() string

func (*CreateRuleOK) GetPayload

func (o *CreateRuleOK) GetPayload() *models.Rule

type CreateRuleParams

type CreateRuleParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location in which to create the rule in.

	*/
	LocationID string
	/*Request
	  The rule to be created.

	*/
	Request *models.RuleRequest

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

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

func NewCreateRuleParams

func NewCreateRuleParams() *CreateRuleParams

NewCreateRuleParams creates a new CreateRuleParams object with the default values initialized.

func NewCreateRuleParamsWithContext

func NewCreateRuleParamsWithContext(ctx context.Context) *CreateRuleParams

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

func NewCreateRuleParamsWithHTTPClient

func NewCreateRuleParamsWithHTTPClient(client *http.Client) *CreateRuleParams

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

func NewCreateRuleParamsWithTimeout

func NewCreateRuleParamsWithTimeout(timeout time.Duration) *CreateRuleParams

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

func (*CreateRuleParams) SetAuthorization

func (o *CreateRuleParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the create rule params

func (*CreateRuleParams) SetContext

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

SetContext adds the context to the create rule params

func (*CreateRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create rule params

func (*CreateRuleParams) SetLocationID

func (o *CreateRuleParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the create rule params

func (*CreateRuleParams) SetRequest

func (o *CreateRuleParams) SetRequest(request *models.RuleRequest)

SetRequest adds the request to the create rule params

func (*CreateRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create rule params

func (*CreateRuleParams) WithAuthorization

func (o *CreateRuleParams) WithAuthorization(authorization string) *CreateRuleParams

WithAuthorization adds the authorization to the create rule params

func (*CreateRuleParams) WithContext

func (o *CreateRuleParams) WithContext(ctx context.Context) *CreateRuleParams

WithContext adds the context to the create rule params

func (*CreateRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create rule params

func (*CreateRuleParams) WithLocationID

func (o *CreateRuleParams) WithLocationID(locationID string) *CreateRuleParams

WithLocationID adds the locationID to the create rule params

func (*CreateRuleParams) WithRequest

func (o *CreateRuleParams) WithRequest(request *models.RuleRequest) *CreateRuleParams

WithRequest adds the request to the create rule params

func (*CreateRuleParams) WithTimeout

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

WithTimeout adds the timeout to the create rule params

func (*CreateRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRuleReader

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

CreateRuleReader is a Reader for the CreateRule structure.

func (*CreateRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRuleUnauthorized

type CreateRuleUnauthorized struct {
}

CreateRuleUnauthorized handles this case with default header values.

Not authenticated

func NewCreateRuleUnauthorized

func NewCreateRuleUnauthorized() *CreateRuleUnauthorized

NewCreateRuleUnauthorized creates a CreateRuleUnauthorized with default headers values

func (*CreateRuleUnauthorized) Error

func (o *CreateRuleUnauthorized) Error() string

type DeleteRuleDefault

type DeleteRuleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteRuleDefault handles this case with default header values.

Unexpected error

func NewDeleteRuleDefault

func NewDeleteRuleDefault(code int) *DeleteRuleDefault

NewDeleteRuleDefault creates a DeleteRuleDefault with default headers values

func (*DeleteRuleDefault) Code

func (o *DeleteRuleDefault) Code() int

Code gets the status code for the delete rule default response

func (*DeleteRuleDefault) Error

func (o *DeleteRuleDefault) Error() string

func (*DeleteRuleDefault) GetPayload

func (o *DeleteRuleDefault) GetPayload() *models.Error

type DeleteRuleForbidden

type DeleteRuleForbidden struct {
}

DeleteRuleForbidden handles this case with default header values.

Not authorized or not found

func NewDeleteRuleForbidden

func NewDeleteRuleForbidden() *DeleteRuleForbidden

NewDeleteRuleForbidden creates a DeleteRuleForbidden with default headers values

func (*DeleteRuleForbidden) Error

func (o *DeleteRuleForbidden) Error() string

type DeleteRuleOK

type DeleteRuleOK struct {
	Payload *models.Rule
}

DeleteRuleOK handles this case with default header values.

Successfully deleted

func NewDeleteRuleOK

func NewDeleteRuleOK() *DeleteRuleOK

NewDeleteRuleOK creates a DeleteRuleOK with default headers values

func (*DeleteRuleOK) Error

func (o *DeleteRuleOK) Error() string

func (*DeleteRuleOK) GetPayload

func (o *DeleteRuleOK) GetPayload() *models.Rule

type DeleteRuleParams

type DeleteRuleParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location in which to delete the rule in.

	*/
	LocationID string
	/*RuleID
	  The rule ID

	*/
	RuleID string

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

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

func NewDeleteRuleParams

func NewDeleteRuleParams() *DeleteRuleParams

NewDeleteRuleParams creates a new DeleteRuleParams object with the default values initialized.

func NewDeleteRuleParamsWithContext

func NewDeleteRuleParamsWithContext(ctx context.Context) *DeleteRuleParams

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

func NewDeleteRuleParamsWithHTTPClient

func NewDeleteRuleParamsWithHTTPClient(client *http.Client) *DeleteRuleParams

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

func NewDeleteRuleParamsWithTimeout

func NewDeleteRuleParamsWithTimeout(timeout time.Duration) *DeleteRuleParams

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

func (*DeleteRuleParams) SetAuthorization

func (o *DeleteRuleParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete rule params

func (*DeleteRuleParams) SetContext

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

SetContext adds the context to the delete rule params

func (*DeleteRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete rule params

func (*DeleteRuleParams) SetLocationID

func (o *DeleteRuleParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the delete rule params

func (*DeleteRuleParams) SetRuleID

func (o *DeleteRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the delete rule params

func (*DeleteRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete rule params

func (*DeleteRuleParams) WithAuthorization

func (o *DeleteRuleParams) WithAuthorization(authorization string) *DeleteRuleParams

WithAuthorization adds the authorization to the delete rule params

func (*DeleteRuleParams) WithContext

func (o *DeleteRuleParams) WithContext(ctx context.Context) *DeleteRuleParams

WithContext adds the context to the delete rule params

func (*DeleteRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete rule params

func (*DeleteRuleParams) WithLocationID

func (o *DeleteRuleParams) WithLocationID(locationID string) *DeleteRuleParams

WithLocationID adds the locationID to the delete rule params

func (*DeleteRuleParams) WithRuleID

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

WithRuleID adds the ruleID to the delete rule params

func (*DeleteRuleParams) WithTimeout

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

WithTimeout adds the timeout to the delete rule params

func (*DeleteRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRuleReader

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

DeleteRuleReader is a Reader for the DeleteRule structure.

func (*DeleteRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRuleUnauthorized

type DeleteRuleUnauthorized struct {
}

DeleteRuleUnauthorized handles this case with default header values.

Not authenticated

func NewDeleteRuleUnauthorized

func NewDeleteRuleUnauthorized() *DeleteRuleUnauthorized

NewDeleteRuleUnauthorized creates a DeleteRuleUnauthorized with default headers values

func (*DeleteRuleUnauthorized) Error

func (o *DeleteRuleUnauthorized) Error() string

type ExecuteRuleDefault

type ExecuteRuleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ExecuteRuleDefault handles this case with default header values.

Unexpected error

func NewExecuteRuleDefault

func NewExecuteRuleDefault(code int) *ExecuteRuleDefault

NewExecuteRuleDefault creates a ExecuteRuleDefault with default headers values

func (*ExecuteRuleDefault) Code

func (o *ExecuteRuleDefault) Code() int

Code gets the status code for the execute rule default response

func (*ExecuteRuleDefault) Error

func (o *ExecuteRuleDefault) Error() string

func (*ExecuteRuleDefault) GetPayload

func (o *ExecuteRuleDefault) GetPayload() *models.Error

type ExecuteRuleForbidden

type ExecuteRuleForbidden struct {
}

ExecuteRuleForbidden handles this case with default header values.

Not authorized or not found

func NewExecuteRuleForbidden

func NewExecuteRuleForbidden() *ExecuteRuleForbidden

NewExecuteRuleForbidden creates a ExecuteRuleForbidden with default headers values

func (*ExecuteRuleForbidden) Error

func (o *ExecuteRuleForbidden) Error() string

type ExecuteRuleOK

type ExecuteRuleOK struct {
	Payload *models.RuleExecutionResponse
}

ExecuteRuleOK handles this case with default header values.

Successfully Executed

func NewExecuteRuleOK

func NewExecuteRuleOK() *ExecuteRuleOK

NewExecuteRuleOK creates a ExecuteRuleOK with default headers values

func (*ExecuteRuleOK) Error

func (o *ExecuteRuleOK) Error() string

func (*ExecuteRuleOK) GetPayload

func (o *ExecuteRuleOK) GetPayload() *models.RuleExecutionResponse

type ExecuteRuleParams

type ExecuteRuleParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location that both the installed smart app and source are associated with.

	*/
	LocationID string
	/*RuleID
	  The rule ID

	*/
	RuleID string

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

ExecuteRuleParams contains all the parameters to send to the API endpoint for the execute rule operation typically these are written to a http.Request

func NewExecuteRuleParams

func NewExecuteRuleParams() *ExecuteRuleParams

NewExecuteRuleParams creates a new ExecuteRuleParams object with the default values initialized.

func NewExecuteRuleParamsWithContext

func NewExecuteRuleParamsWithContext(ctx context.Context) *ExecuteRuleParams

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

func NewExecuteRuleParamsWithHTTPClient

func NewExecuteRuleParamsWithHTTPClient(client *http.Client) *ExecuteRuleParams

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

func NewExecuteRuleParamsWithTimeout

func NewExecuteRuleParamsWithTimeout(timeout time.Duration) *ExecuteRuleParams

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

func (*ExecuteRuleParams) SetAuthorization

func (o *ExecuteRuleParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the execute rule params

func (*ExecuteRuleParams) SetContext

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

SetContext adds the context to the execute rule params

func (*ExecuteRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the execute rule params

func (*ExecuteRuleParams) SetLocationID

func (o *ExecuteRuleParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the execute rule params

func (*ExecuteRuleParams) SetRuleID

func (o *ExecuteRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the execute rule params

func (*ExecuteRuleParams) SetTimeout

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

SetTimeout adds the timeout to the execute rule params

func (*ExecuteRuleParams) WithAuthorization

func (o *ExecuteRuleParams) WithAuthorization(authorization string) *ExecuteRuleParams

WithAuthorization adds the authorization to the execute rule params

func (*ExecuteRuleParams) WithContext

func (o *ExecuteRuleParams) WithContext(ctx context.Context) *ExecuteRuleParams

WithContext adds the context to the execute rule params

func (*ExecuteRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the execute rule params

func (*ExecuteRuleParams) WithLocationID

func (o *ExecuteRuleParams) WithLocationID(locationID string) *ExecuteRuleParams

WithLocationID adds the locationID to the execute rule params

func (*ExecuteRuleParams) WithRuleID

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

WithRuleID adds the ruleID to the execute rule params

func (*ExecuteRuleParams) WithTimeout

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

WithTimeout adds the timeout to the execute rule params

func (*ExecuteRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExecuteRuleReader

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

ExecuteRuleReader is a Reader for the ExecuteRule structure.

func (*ExecuteRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExecuteRuleUnauthorized

type ExecuteRuleUnauthorized struct {
}

ExecuteRuleUnauthorized handles this case with default header values.

Not authenticated

func NewExecuteRuleUnauthorized

func NewExecuteRuleUnauthorized() *ExecuteRuleUnauthorized

NewExecuteRuleUnauthorized creates a ExecuteRuleUnauthorized with default headers values

func (*ExecuteRuleUnauthorized) Error

func (o *ExecuteRuleUnauthorized) Error() string

type GetRuleDefault

type GetRuleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetRuleDefault handles this case with default header values.

Unexpected error

func NewGetRuleDefault

func NewGetRuleDefault(code int) *GetRuleDefault

NewGetRuleDefault creates a GetRuleDefault with default headers values

func (*GetRuleDefault) Code

func (o *GetRuleDefault) Code() int

Code gets the status code for the get rule default response

func (*GetRuleDefault) Error

func (o *GetRuleDefault) Error() string

func (*GetRuleDefault) GetPayload

func (o *GetRuleDefault) GetPayload() *models.Error

type GetRuleForbidden

type GetRuleForbidden struct {
}

GetRuleForbidden handles this case with default header values.

Not authorized or not found

func NewGetRuleForbidden

func NewGetRuleForbidden() *GetRuleForbidden

NewGetRuleForbidden creates a GetRuleForbidden with default headers values

func (*GetRuleForbidden) Error

func (o *GetRuleForbidden) Error() string

type GetRuleOK

type GetRuleOK struct {
	Payload *models.Rule
}

GetRuleOK handles this case with default header values.

The rule

func NewGetRuleOK

func NewGetRuleOK() *GetRuleOK

NewGetRuleOK creates a GetRuleOK with default headers values

func (*GetRuleOK) Error

func (o *GetRuleOK) Error() string

func (*GetRuleOK) GetPayload

func (o *GetRuleOK) GetPayload() *models.Rule

type GetRuleParams

type GetRuleParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location to list the rules for.

	*/
	LocationID string
	/*RuleID
	  The rule ID

	*/
	RuleID string

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

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

func NewGetRuleParams

func NewGetRuleParams() *GetRuleParams

NewGetRuleParams creates a new GetRuleParams object with the default values initialized.

func NewGetRuleParamsWithContext

func NewGetRuleParamsWithContext(ctx context.Context) *GetRuleParams

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

func NewGetRuleParamsWithHTTPClient

func NewGetRuleParamsWithHTTPClient(client *http.Client) *GetRuleParams

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

func NewGetRuleParamsWithTimeout

func NewGetRuleParamsWithTimeout(timeout time.Duration) *GetRuleParams

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

func (*GetRuleParams) SetAuthorization

func (o *GetRuleParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get rule params

func (*GetRuleParams) SetContext

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

SetContext adds the context to the get rule params

func (*GetRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rule params

func (*GetRuleParams) SetLocationID

func (o *GetRuleParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the get rule params

func (*GetRuleParams) SetRuleID

func (o *GetRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the get rule params

func (*GetRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get rule params

func (*GetRuleParams) WithAuthorization

func (o *GetRuleParams) WithAuthorization(authorization string) *GetRuleParams

WithAuthorization adds the authorization to the get rule params

func (*GetRuleParams) WithContext

func (o *GetRuleParams) WithContext(ctx context.Context) *GetRuleParams

WithContext adds the context to the get rule params

func (*GetRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get rule params

func (*GetRuleParams) WithLocationID

func (o *GetRuleParams) WithLocationID(locationID string) *GetRuleParams

WithLocationID adds the locationID to the get rule params

func (*GetRuleParams) WithRuleID

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

WithRuleID adds the ruleID to the get rule params

func (*GetRuleParams) WithTimeout

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

WithTimeout adds the timeout to the get rule params

func (*GetRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRuleReader

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

GetRuleReader is a Reader for the GetRule structure.

func (*GetRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuleUnauthorized

type GetRuleUnauthorized struct {
}

GetRuleUnauthorized handles this case with default header values.

Not authenticated

func NewGetRuleUnauthorized

func NewGetRuleUnauthorized() *GetRuleUnauthorized

NewGetRuleUnauthorized creates a GetRuleUnauthorized with default headers values

func (*GetRuleUnauthorized) Error

func (o *GetRuleUnauthorized) Error() string

type ListRulesBadRequest

type ListRulesBadRequest struct {
}

ListRulesBadRequest handles this case with default header values.

Bad request

func NewListRulesBadRequest

func NewListRulesBadRequest() *ListRulesBadRequest

NewListRulesBadRequest creates a ListRulesBadRequest with default headers values

func (*ListRulesBadRequest) Error

func (o *ListRulesBadRequest) Error() string

type ListRulesDefault

type ListRulesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ListRulesDefault handles this case with default header values.

Unexpected error

func NewListRulesDefault

func NewListRulesDefault(code int) *ListRulesDefault

NewListRulesDefault creates a ListRulesDefault with default headers values

func (*ListRulesDefault) Code

func (o *ListRulesDefault) Code() int

Code gets the status code for the list rules default response

func (*ListRulesDefault) Error

func (o *ListRulesDefault) Error() string

func (*ListRulesDefault) GetPayload

func (o *ListRulesDefault) GetPayload() *models.Error

type ListRulesForbidden

type ListRulesForbidden struct {
}

ListRulesForbidden handles this case with default header values.

Not authorized or not found

func NewListRulesForbidden

func NewListRulesForbidden() *ListRulesForbidden

NewListRulesForbidden creates a ListRulesForbidden with default headers values

func (*ListRulesForbidden) Error

func (o *ListRulesForbidden) Error() string

type ListRulesOK

type ListRulesOK struct {
	Payload *models.PagedRules
}

ListRulesOK handles this case with default header values.

A paginated list of rules.

func NewListRulesOK

func NewListRulesOK() *ListRulesOK

NewListRulesOK creates a ListRulesOK with default headers values

func (*ListRulesOK) Error

func (o *ListRulesOK) Error() string

func (*ListRulesOK) GetPayload

func (o *ListRulesOK) GetPayload() *models.PagedRules

type ListRulesParams

type ListRulesParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location to list the rules for.

	*/
	LocationID string
	/*Max
	  The max number of rules to fetch

	*/
	Max *int64
	/*Offset
	  The start index of rules to fetch

	*/
	Offset *int64

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

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

func NewListRulesParams

func NewListRulesParams() *ListRulesParams

NewListRulesParams creates a new ListRulesParams object with the default values initialized.

func NewListRulesParamsWithContext

func NewListRulesParamsWithContext(ctx context.Context) *ListRulesParams

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

func NewListRulesParamsWithHTTPClient

func NewListRulesParamsWithHTTPClient(client *http.Client) *ListRulesParams

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

func NewListRulesParamsWithTimeout

func NewListRulesParamsWithTimeout(timeout time.Duration) *ListRulesParams

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

func (*ListRulesParams) SetAuthorization

func (o *ListRulesParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the list rules params

func (*ListRulesParams) SetContext

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

SetContext adds the context to the list rules params

func (*ListRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list rules params

func (*ListRulesParams) SetLocationID

func (o *ListRulesParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the list rules params

func (*ListRulesParams) SetMax

func (o *ListRulesParams) SetMax(max *int64)

SetMax adds the max to the list rules params

func (*ListRulesParams) SetOffset

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

SetOffset adds the offset to the list rules params

func (*ListRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list rules params

func (*ListRulesParams) WithAuthorization

func (o *ListRulesParams) WithAuthorization(authorization string) *ListRulesParams

WithAuthorization adds the authorization to the list rules params

func (*ListRulesParams) WithContext

func (o *ListRulesParams) WithContext(ctx context.Context) *ListRulesParams

WithContext adds the context to the list rules params

func (*ListRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list rules params

func (*ListRulesParams) WithLocationID

func (o *ListRulesParams) WithLocationID(locationID string) *ListRulesParams

WithLocationID adds the locationID to the list rules params

func (*ListRulesParams) WithMax

func (o *ListRulesParams) WithMax(max *int64) *ListRulesParams

WithMax adds the max to the list rules params

func (*ListRulesParams) WithOffset

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

WithOffset adds the offset to the list rules params

func (*ListRulesParams) WithTimeout

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

WithTimeout adds the timeout to the list rules params

func (*ListRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRulesReader

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

ListRulesReader is a Reader for the ListRules structure.

func (*ListRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRulesUnauthorized

type ListRulesUnauthorized struct {
}

ListRulesUnauthorized handles this case with default header values.

Not authenticated

func NewListRulesUnauthorized

func NewListRulesUnauthorized() *ListRulesUnauthorized

NewListRulesUnauthorized creates a ListRulesUnauthorized with default headers values

func (*ListRulesUnauthorized) Error

func (o *ListRulesUnauthorized) Error() string

type UpdateRuleDefault

type UpdateRuleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

UpdateRuleDefault handles this case with default header values.

Unexpected error

func NewUpdateRuleDefault

func NewUpdateRuleDefault(code int) *UpdateRuleDefault

NewUpdateRuleDefault creates a UpdateRuleDefault with default headers values

func (*UpdateRuleDefault) Code

func (o *UpdateRuleDefault) Code() int

Code gets the status code for the update rule default response

func (*UpdateRuleDefault) Error

func (o *UpdateRuleDefault) Error() string

func (*UpdateRuleDefault) GetPayload

func (o *UpdateRuleDefault) GetPayload() *models.Error

type UpdateRuleForbidden

type UpdateRuleForbidden struct {
}

UpdateRuleForbidden handles this case with default header values.

Not authorized or not found

func NewUpdateRuleForbidden

func NewUpdateRuleForbidden() *UpdateRuleForbidden

NewUpdateRuleForbidden creates a UpdateRuleForbidden with default headers values

func (*UpdateRuleForbidden) Error

func (o *UpdateRuleForbidden) Error() string

type UpdateRuleOK

type UpdateRuleOK struct {
	Payload *models.Rule
}

UpdateRuleOK handles this case with default header values.

The rule

func NewUpdateRuleOK

func NewUpdateRuleOK() *UpdateRuleOK

NewUpdateRuleOK creates a UpdateRuleOK with default headers values

func (*UpdateRuleOK) Error

func (o *UpdateRuleOK) Error() string

func (*UpdateRuleOK) GetPayload

func (o *UpdateRuleOK) GetPayload() *models.Rule

type UpdateRuleParams

type UpdateRuleParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*LocationID
	  The ID of the location in which to update the rule in.

	*/
	LocationID string
	/*Request
	  The rule to be updated.

	*/
	Request *models.RuleRequest
	/*RuleID
	  The rule ID

	*/
	RuleID string

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

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

func NewUpdateRuleParams

func NewUpdateRuleParams() *UpdateRuleParams

NewUpdateRuleParams creates a new UpdateRuleParams object with the default values initialized.

func NewUpdateRuleParamsWithContext

func NewUpdateRuleParamsWithContext(ctx context.Context) *UpdateRuleParams

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

func NewUpdateRuleParamsWithHTTPClient

func NewUpdateRuleParamsWithHTTPClient(client *http.Client) *UpdateRuleParams

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

func NewUpdateRuleParamsWithTimeout

func NewUpdateRuleParamsWithTimeout(timeout time.Duration) *UpdateRuleParams

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

func (*UpdateRuleParams) SetAuthorization

func (o *UpdateRuleParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the update rule params

func (*UpdateRuleParams) SetContext

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

SetContext adds the context to the update rule params

func (*UpdateRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update rule params

func (*UpdateRuleParams) SetLocationID

func (o *UpdateRuleParams) SetLocationID(locationID string)

SetLocationID adds the locationId to the update rule params

func (*UpdateRuleParams) SetRequest

func (o *UpdateRuleParams) SetRequest(request *models.RuleRequest)

SetRequest adds the request to the update rule params

func (*UpdateRuleParams) SetRuleID

func (o *UpdateRuleParams) SetRuleID(ruleID string)

SetRuleID adds the ruleId to the update rule params

func (*UpdateRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update rule params

func (*UpdateRuleParams) WithAuthorization

func (o *UpdateRuleParams) WithAuthorization(authorization string) *UpdateRuleParams

WithAuthorization adds the authorization to the update rule params

func (*UpdateRuleParams) WithContext

func (o *UpdateRuleParams) WithContext(ctx context.Context) *UpdateRuleParams

WithContext adds the context to the update rule params

func (*UpdateRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update rule params

func (*UpdateRuleParams) WithLocationID

func (o *UpdateRuleParams) WithLocationID(locationID string) *UpdateRuleParams

WithLocationID adds the locationID to the update rule params

func (*UpdateRuleParams) WithRequest

func (o *UpdateRuleParams) WithRequest(request *models.RuleRequest) *UpdateRuleParams

WithRequest adds the request to the update rule params

func (*UpdateRuleParams) WithRuleID

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

WithRuleID adds the ruleID to the update rule params

func (*UpdateRuleParams) WithTimeout

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

WithTimeout adds the timeout to the update rule params

func (*UpdateRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRuleReader

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

UpdateRuleReader is a Reader for the UpdateRule structure.

func (*UpdateRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRuleUnauthorized

type UpdateRuleUnauthorized struct {
}

UpdateRuleUnauthorized handles this case with default header values.

Not authenticated

func NewUpdateRuleUnauthorized

func NewUpdateRuleUnauthorized() *UpdateRuleUnauthorized

NewUpdateRuleUnauthorized creates a UpdateRuleUnauthorized with default headers values

func (*UpdateRuleUnauthorized) Error

func (o *UpdateRuleUnauthorized) Error() string

Jump to

Keyboard shortcuts

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