routing_rules

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 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 routing rules API

func (*Client) CreateRoutingRule

func (a *Client) CreateRoutingRule(params *CreateRoutingRuleParams, opts ...ClientOption) (*CreateRoutingRuleNoContent, error)

CreateRoutingRule creates a single routing rule

func (*Client) DeleteRoutingRule

func (a *Client) DeleteRoutingRule(params *DeleteRoutingRuleParams, opts ...ClientOption) (*DeleteRoutingRuleNoContent, error)

DeleteRoutingRule deletes a single routing rule

func (*Client) GetRoutingRule

func (a *Client) GetRoutingRule(params *GetRoutingRuleParams, opts ...ClientOption) (*GetRoutingRuleOK, error)

GetRoutingRule gets a single routing rule

func (*Client) GetRoutingRules

func (a *Client) GetRoutingRules(params *GetRoutingRulesParams, opts ...ClientOption) (*GetRoutingRulesOK, error)

GetRoutingRules lists routing rules

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRoutingRule

func (a *Client) UpdateRoutingRule(params *UpdateRoutingRuleParams, opts ...ClientOption) (*UpdateRoutingRuleNoContent, error)

UpdateRoutingRule updates a single routing rule

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateRoutingRule(params *CreateRoutingRuleParams, opts ...ClientOption) (*CreateRoutingRuleNoContent, error)

	DeleteRoutingRule(params *DeleteRoutingRuleParams, opts ...ClientOption) (*DeleteRoutingRuleNoContent, error)

	GetRoutingRule(params *GetRoutingRuleParams, opts ...ClientOption) (*GetRoutingRuleOK, error)

	GetRoutingRules(params *GetRoutingRulesParams, opts ...ClientOption) (*GetRoutingRulesOK, error)

	UpdateRoutingRule(params *UpdateRoutingRuleParams, opts ...ClientOption) (*UpdateRoutingRuleNoContent, 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 routing rules API client.

type CreateRoutingRuleBadRequest

type CreateRoutingRuleBadRequest struct {
}

CreateRoutingRuleBadRequest describes a response with status code 400, with default header values.

A routing rule with the same name already exists or required parameters missing

func NewCreateRoutingRuleBadRequest

func NewCreateRoutingRuleBadRequest() *CreateRoutingRuleBadRequest

NewCreateRoutingRuleBadRequest creates a CreateRoutingRuleBadRequest with default headers values

func (*CreateRoutingRuleBadRequest) Code

func (o *CreateRoutingRuleBadRequest) Code() int

Code gets the status code for the create routing rule bad request response

func (*CreateRoutingRuleBadRequest) Error

func (*CreateRoutingRuleBadRequest) IsClientError

func (o *CreateRoutingRuleBadRequest) IsClientError() bool

IsClientError returns true when this create routing rule bad request response has a 4xx status code

func (*CreateRoutingRuleBadRequest) IsCode

func (o *CreateRoutingRuleBadRequest) IsCode(code int) bool

IsCode returns true when this create routing rule bad request response a status code equal to that given

func (*CreateRoutingRuleBadRequest) IsRedirect

func (o *CreateRoutingRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this create routing rule bad request response has a 3xx status code

func (*CreateRoutingRuleBadRequest) IsServerError

func (o *CreateRoutingRuleBadRequest) IsServerError() bool

IsServerError returns true when this create routing rule bad request response has a 5xx status code

func (*CreateRoutingRuleBadRequest) IsSuccess

func (o *CreateRoutingRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this create routing rule bad request response has a 2xx status code

func (*CreateRoutingRuleBadRequest) String

func (o *CreateRoutingRuleBadRequest) String() string

type CreateRoutingRuleForbidden

type CreateRoutingRuleForbidden struct {
}

CreateRoutingRuleForbidden describes a response with status code 403, with default header values.

Insufficient permissions to create routing rule

func NewCreateRoutingRuleForbidden

func NewCreateRoutingRuleForbidden() *CreateRoutingRuleForbidden

NewCreateRoutingRuleForbidden creates a CreateRoutingRuleForbidden with default headers values

func (*CreateRoutingRuleForbidden) Code

func (o *CreateRoutingRuleForbidden) Code() int

Code gets the status code for the create routing rule forbidden response

func (*CreateRoutingRuleForbidden) Error

func (*CreateRoutingRuleForbidden) IsClientError

func (o *CreateRoutingRuleForbidden) IsClientError() bool

IsClientError returns true when this create routing rule forbidden response has a 4xx status code

func (*CreateRoutingRuleForbidden) IsCode

func (o *CreateRoutingRuleForbidden) IsCode(code int) bool

IsCode returns true when this create routing rule forbidden response a status code equal to that given

func (*CreateRoutingRuleForbidden) IsRedirect

func (o *CreateRoutingRuleForbidden) IsRedirect() bool

IsRedirect returns true when this create routing rule forbidden response has a 3xx status code

func (*CreateRoutingRuleForbidden) IsServerError

func (o *CreateRoutingRuleForbidden) IsServerError() bool

IsServerError returns true when this create routing rule forbidden response has a 5xx status code

func (*CreateRoutingRuleForbidden) IsSuccess

func (o *CreateRoutingRuleForbidden) IsSuccess() bool

IsSuccess returns true when this create routing rule forbidden response has a 2xx status code

func (*CreateRoutingRuleForbidden) String

func (o *CreateRoutingRuleForbidden) String() string

type CreateRoutingRuleNoContent

type CreateRoutingRuleNoContent struct {
}

CreateRoutingRuleNoContent describes a response with status code 204, with default header values.

Routing rule was successfully created

func NewCreateRoutingRuleNoContent

func NewCreateRoutingRuleNoContent() *CreateRoutingRuleNoContent

NewCreateRoutingRuleNoContent creates a CreateRoutingRuleNoContent with default headers values

func (*CreateRoutingRuleNoContent) Code

func (o *CreateRoutingRuleNoContent) Code() int

Code gets the status code for the create routing rule no content response

func (*CreateRoutingRuleNoContent) Error

func (*CreateRoutingRuleNoContent) IsClientError

func (o *CreateRoutingRuleNoContent) IsClientError() bool

IsClientError returns true when this create routing rule no content response has a 4xx status code

func (*CreateRoutingRuleNoContent) IsCode

func (o *CreateRoutingRuleNoContent) IsCode(code int) bool

IsCode returns true when this create routing rule no content response a status code equal to that given

func (*CreateRoutingRuleNoContent) IsRedirect

func (o *CreateRoutingRuleNoContent) IsRedirect() bool

IsRedirect returns true when this create routing rule no content response has a 3xx status code

func (*CreateRoutingRuleNoContent) IsServerError

func (o *CreateRoutingRuleNoContent) IsServerError() bool

IsServerError returns true when this create routing rule no content response has a 5xx status code

func (*CreateRoutingRuleNoContent) IsSuccess

func (o *CreateRoutingRuleNoContent) IsSuccess() bool

IsSuccess returns true when this create routing rule no content response has a 2xx status code

func (*CreateRoutingRuleNoContent) String

func (o *CreateRoutingRuleNoContent) String() string

type CreateRoutingRuleParams

type CreateRoutingRuleParams struct {

	/* Body.

	   A routing rule configuration
	*/
	Body *models.RoutingRuleXO

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

CreateRoutingRuleParams contains all the parameters to send to the API endpoint

for the create routing rule operation.

Typically these are written to a http.Request.

func NewCreateRoutingRuleParams

func NewCreateRoutingRuleParams() *CreateRoutingRuleParams

NewCreateRoutingRuleParams creates a new CreateRoutingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateRoutingRuleParamsWithContext

func NewCreateRoutingRuleParamsWithContext(ctx context.Context) *CreateRoutingRuleParams

NewCreateRoutingRuleParamsWithContext creates a new CreateRoutingRuleParams object with the ability to set a context for a request.

func NewCreateRoutingRuleParamsWithHTTPClient

func NewCreateRoutingRuleParamsWithHTTPClient(client *http.Client) *CreateRoutingRuleParams

NewCreateRoutingRuleParamsWithHTTPClient creates a new CreateRoutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRoutingRuleParamsWithTimeout

func NewCreateRoutingRuleParamsWithTimeout(timeout time.Duration) *CreateRoutingRuleParams

NewCreateRoutingRuleParamsWithTimeout creates a new CreateRoutingRuleParams object with the ability to set a timeout on a request.

func (*CreateRoutingRuleParams) SetBody

func (o *CreateRoutingRuleParams) SetBody(body *models.RoutingRuleXO)

SetBody adds the body to the create routing rule params

func (*CreateRoutingRuleParams) SetContext

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

SetContext adds the context to the create routing rule params

func (*CreateRoutingRuleParams) SetDefaults

func (o *CreateRoutingRuleParams) SetDefaults()

SetDefaults hydrates default values in the create routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRoutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create routing rule params

func (*CreateRoutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create routing rule params

func (*CreateRoutingRuleParams) WithBody

WithBody adds the body to the create routing rule params

func (*CreateRoutingRuleParams) WithContext

WithContext adds the context to the create routing rule params

func (*CreateRoutingRuleParams) WithDefaults

WithDefaults hydrates default values in the create routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRoutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create routing rule params

func (*CreateRoutingRuleParams) WithTimeout

WithTimeout adds the timeout to the create routing rule params

func (*CreateRoutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateRoutingRuleReader

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

CreateRoutingRuleReader is a Reader for the CreateRoutingRule structure.

func (*CreateRoutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRoutingRuleForbidden

type DeleteRoutingRuleForbidden struct {
}

DeleteRoutingRuleForbidden describes a response with status code 403, with default header values.

Insufficient permissions to delete routing rules

func NewDeleteRoutingRuleForbidden

func NewDeleteRoutingRuleForbidden() *DeleteRoutingRuleForbidden

NewDeleteRoutingRuleForbidden creates a DeleteRoutingRuleForbidden with default headers values

func (*DeleteRoutingRuleForbidden) Code

func (o *DeleteRoutingRuleForbidden) Code() int

Code gets the status code for the delete routing rule forbidden response

func (*DeleteRoutingRuleForbidden) Error

func (*DeleteRoutingRuleForbidden) IsClientError

func (o *DeleteRoutingRuleForbidden) IsClientError() bool

IsClientError returns true when this delete routing rule forbidden response has a 4xx status code

func (*DeleteRoutingRuleForbidden) IsCode

func (o *DeleteRoutingRuleForbidden) IsCode(code int) bool

IsCode returns true when this delete routing rule forbidden response a status code equal to that given

func (*DeleteRoutingRuleForbidden) IsRedirect

func (o *DeleteRoutingRuleForbidden) IsRedirect() bool

IsRedirect returns true when this delete routing rule forbidden response has a 3xx status code

func (*DeleteRoutingRuleForbidden) IsServerError

func (o *DeleteRoutingRuleForbidden) IsServerError() bool

IsServerError returns true when this delete routing rule forbidden response has a 5xx status code

func (*DeleteRoutingRuleForbidden) IsSuccess

func (o *DeleteRoutingRuleForbidden) IsSuccess() bool

IsSuccess returns true when this delete routing rule forbidden response has a 2xx status code

func (*DeleteRoutingRuleForbidden) String

func (o *DeleteRoutingRuleForbidden) String() string

type DeleteRoutingRuleNoContent

type DeleteRoutingRuleNoContent struct {
}

DeleteRoutingRuleNoContent describes a response with status code 204, with default header values.

Routing rule was successfully deleted

func NewDeleteRoutingRuleNoContent

func NewDeleteRoutingRuleNoContent() *DeleteRoutingRuleNoContent

NewDeleteRoutingRuleNoContent creates a DeleteRoutingRuleNoContent with default headers values

func (*DeleteRoutingRuleNoContent) Code

func (o *DeleteRoutingRuleNoContent) Code() int

Code gets the status code for the delete routing rule no content response

func (*DeleteRoutingRuleNoContent) Error

func (*DeleteRoutingRuleNoContent) IsClientError

func (o *DeleteRoutingRuleNoContent) IsClientError() bool

IsClientError returns true when this delete routing rule no content response has a 4xx status code

func (*DeleteRoutingRuleNoContent) IsCode

func (o *DeleteRoutingRuleNoContent) IsCode(code int) bool

IsCode returns true when this delete routing rule no content response a status code equal to that given

func (*DeleteRoutingRuleNoContent) IsRedirect

func (o *DeleteRoutingRuleNoContent) IsRedirect() bool

IsRedirect returns true when this delete routing rule no content response has a 3xx status code

func (*DeleteRoutingRuleNoContent) IsServerError

func (o *DeleteRoutingRuleNoContent) IsServerError() bool

IsServerError returns true when this delete routing rule no content response has a 5xx status code

func (*DeleteRoutingRuleNoContent) IsSuccess

func (o *DeleteRoutingRuleNoContent) IsSuccess() bool

IsSuccess returns true when this delete routing rule no content response has a 2xx status code

func (*DeleteRoutingRuleNoContent) String

func (o *DeleteRoutingRuleNoContent) String() string

type DeleteRoutingRuleNotFound

type DeleteRoutingRuleNotFound struct {
}

DeleteRoutingRuleNotFound describes a response with status code 404, with default header values.

Routing rule not found

func NewDeleteRoutingRuleNotFound

func NewDeleteRoutingRuleNotFound() *DeleteRoutingRuleNotFound

NewDeleteRoutingRuleNotFound creates a DeleteRoutingRuleNotFound with default headers values

func (*DeleteRoutingRuleNotFound) Code

func (o *DeleteRoutingRuleNotFound) Code() int

Code gets the status code for the delete routing rule not found response

func (*DeleteRoutingRuleNotFound) Error

func (o *DeleteRoutingRuleNotFound) Error() string

func (*DeleteRoutingRuleNotFound) IsClientError

func (o *DeleteRoutingRuleNotFound) IsClientError() bool

IsClientError returns true when this delete routing rule not found response has a 4xx status code

func (*DeleteRoutingRuleNotFound) IsCode

func (o *DeleteRoutingRuleNotFound) IsCode(code int) bool

IsCode returns true when this delete routing rule not found response a status code equal to that given

func (*DeleteRoutingRuleNotFound) IsRedirect

func (o *DeleteRoutingRuleNotFound) IsRedirect() bool

IsRedirect returns true when this delete routing rule not found response has a 3xx status code

func (*DeleteRoutingRuleNotFound) IsServerError

func (o *DeleteRoutingRuleNotFound) IsServerError() bool

IsServerError returns true when this delete routing rule not found response has a 5xx status code

func (*DeleteRoutingRuleNotFound) IsSuccess

func (o *DeleteRoutingRuleNotFound) IsSuccess() bool

IsSuccess returns true when this delete routing rule not found response has a 2xx status code

func (*DeleteRoutingRuleNotFound) String

func (o *DeleteRoutingRuleNotFound) String() string

type DeleteRoutingRuleParams

type DeleteRoutingRuleParams struct {

	/* Name.

	   The name of the routing rule to delete
	*/
	Name string

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

DeleteRoutingRuleParams contains all the parameters to send to the API endpoint

for the delete routing rule operation.

Typically these are written to a http.Request.

func NewDeleteRoutingRuleParams

func NewDeleteRoutingRuleParams() *DeleteRoutingRuleParams

NewDeleteRoutingRuleParams creates a new DeleteRoutingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteRoutingRuleParamsWithContext

func NewDeleteRoutingRuleParamsWithContext(ctx context.Context) *DeleteRoutingRuleParams

NewDeleteRoutingRuleParamsWithContext creates a new DeleteRoutingRuleParams object with the ability to set a context for a request.

func NewDeleteRoutingRuleParamsWithHTTPClient

func NewDeleteRoutingRuleParamsWithHTTPClient(client *http.Client) *DeleteRoutingRuleParams

NewDeleteRoutingRuleParamsWithHTTPClient creates a new DeleteRoutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRoutingRuleParamsWithTimeout

func NewDeleteRoutingRuleParamsWithTimeout(timeout time.Duration) *DeleteRoutingRuleParams

NewDeleteRoutingRuleParamsWithTimeout creates a new DeleteRoutingRuleParams object with the ability to set a timeout on a request.

func (*DeleteRoutingRuleParams) SetContext

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

SetContext adds the context to the delete routing rule params

func (*DeleteRoutingRuleParams) SetDefaults

func (o *DeleteRoutingRuleParams) SetDefaults()

SetDefaults hydrates default values in the delete routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRoutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete routing rule params

func (*DeleteRoutingRuleParams) SetName

func (o *DeleteRoutingRuleParams) SetName(name string)

SetName adds the name to the delete routing rule params

func (*DeleteRoutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete routing rule params

func (*DeleteRoutingRuleParams) WithContext

WithContext adds the context to the delete routing rule params

func (*DeleteRoutingRuleParams) WithDefaults

WithDefaults hydrates default values in the delete routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRoutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete routing rule params

func (*DeleteRoutingRuleParams) WithName

WithName adds the name to the delete routing rule params

func (*DeleteRoutingRuleParams) WithTimeout

WithTimeout adds the timeout to the delete routing rule params

func (*DeleteRoutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRoutingRuleReader

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

DeleteRoutingRuleReader is a Reader for the DeleteRoutingRule structure.

func (*DeleteRoutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoutingRuleForbidden

type GetRoutingRuleForbidden struct {
}

GetRoutingRuleForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read routing rules

func NewGetRoutingRuleForbidden

func NewGetRoutingRuleForbidden() *GetRoutingRuleForbidden

NewGetRoutingRuleForbidden creates a GetRoutingRuleForbidden with default headers values

func (*GetRoutingRuleForbidden) Code

func (o *GetRoutingRuleForbidden) Code() int

Code gets the status code for the get routing rule forbidden response

func (*GetRoutingRuleForbidden) Error

func (o *GetRoutingRuleForbidden) Error() string

func (*GetRoutingRuleForbidden) IsClientError

func (o *GetRoutingRuleForbidden) IsClientError() bool

IsClientError returns true when this get routing rule forbidden response has a 4xx status code

func (*GetRoutingRuleForbidden) IsCode

func (o *GetRoutingRuleForbidden) IsCode(code int) bool

IsCode returns true when this get routing rule forbidden response a status code equal to that given

func (*GetRoutingRuleForbidden) IsRedirect

func (o *GetRoutingRuleForbidden) IsRedirect() bool

IsRedirect returns true when this get routing rule forbidden response has a 3xx status code

func (*GetRoutingRuleForbidden) IsServerError

func (o *GetRoutingRuleForbidden) IsServerError() bool

IsServerError returns true when this get routing rule forbidden response has a 5xx status code

func (*GetRoutingRuleForbidden) IsSuccess

func (o *GetRoutingRuleForbidden) IsSuccess() bool

IsSuccess returns true when this get routing rule forbidden response has a 2xx status code

func (*GetRoutingRuleForbidden) String

func (o *GetRoutingRuleForbidden) String() string

type GetRoutingRuleNotFound

type GetRoutingRuleNotFound struct {
}

GetRoutingRuleNotFound describes a response with status code 404, with default header values.

Routing rule not found

func NewGetRoutingRuleNotFound

func NewGetRoutingRuleNotFound() *GetRoutingRuleNotFound

NewGetRoutingRuleNotFound creates a GetRoutingRuleNotFound with default headers values

func (*GetRoutingRuleNotFound) Code

func (o *GetRoutingRuleNotFound) Code() int

Code gets the status code for the get routing rule not found response

func (*GetRoutingRuleNotFound) Error

func (o *GetRoutingRuleNotFound) Error() string

func (*GetRoutingRuleNotFound) IsClientError

func (o *GetRoutingRuleNotFound) IsClientError() bool

IsClientError returns true when this get routing rule not found response has a 4xx status code

func (*GetRoutingRuleNotFound) IsCode

func (o *GetRoutingRuleNotFound) IsCode(code int) bool

IsCode returns true when this get routing rule not found response a status code equal to that given

func (*GetRoutingRuleNotFound) IsRedirect

func (o *GetRoutingRuleNotFound) IsRedirect() bool

IsRedirect returns true when this get routing rule not found response has a 3xx status code

func (*GetRoutingRuleNotFound) IsServerError

func (o *GetRoutingRuleNotFound) IsServerError() bool

IsServerError returns true when this get routing rule not found response has a 5xx status code

func (*GetRoutingRuleNotFound) IsSuccess

func (o *GetRoutingRuleNotFound) IsSuccess() bool

IsSuccess returns true when this get routing rule not found response has a 2xx status code

func (*GetRoutingRuleNotFound) String

func (o *GetRoutingRuleNotFound) String() string

type GetRoutingRuleOK

type GetRoutingRuleOK struct {
	Payload *models.RoutingRuleXO
}

GetRoutingRuleOK describes a response with status code 200, with default header values.

successful operation

func NewGetRoutingRuleOK

func NewGetRoutingRuleOK() *GetRoutingRuleOK

NewGetRoutingRuleOK creates a GetRoutingRuleOK with default headers values

func (*GetRoutingRuleOK) Code

func (o *GetRoutingRuleOK) Code() int

Code gets the status code for the get routing rule o k response

func (*GetRoutingRuleOK) Error

func (o *GetRoutingRuleOK) Error() string

func (*GetRoutingRuleOK) GetPayload

func (o *GetRoutingRuleOK) GetPayload() *models.RoutingRuleXO

func (*GetRoutingRuleOK) IsClientError

func (o *GetRoutingRuleOK) IsClientError() bool

IsClientError returns true when this get routing rule o k response has a 4xx status code

func (*GetRoutingRuleOK) IsCode

func (o *GetRoutingRuleOK) IsCode(code int) bool

IsCode returns true when this get routing rule o k response a status code equal to that given

func (*GetRoutingRuleOK) IsRedirect

func (o *GetRoutingRuleOK) IsRedirect() bool

IsRedirect returns true when this get routing rule o k response has a 3xx status code

func (*GetRoutingRuleOK) IsServerError

func (o *GetRoutingRuleOK) IsServerError() bool

IsServerError returns true when this get routing rule o k response has a 5xx status code

func (*GetRoutingRuleOK) IsSuccess

func (o *GetRoutingRuleOK) IsSuccess() bool

IsSuccess returns true when this get routing rule o k response has a 2xx status code

func (*GetRoutingRuleOK) String

func (o *GetRoutingRuleOK) String() string

type GetRoutingRuleParams

type GetRoutingRuleParams struct {

	/* Name.

	   The name of the routing rule to get
	*/
	Name string

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

GetRoutingRuleParams contains all the parameters to send to the API endpoint

for the get routing rule operation.

Typically these are written to a http.Request.

func NewGetRoutingRuleParams

func NewGetRoutingRuleParams() *GetRoutingRuleParams

NewGetRoutingRuleParams creates a new GetRoutingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetRoutingRuleParamsWithContext

func NewGetRoutingRuleParamsWithContext(ctx context.Context) *GetRoutingRuleParams

NewGetRoutingRuleParamsWithContext creates a new GetRoutingRuleParams object with the ability to set a context for a request.

func NewGetRoutingRuleParamsWithHTTPClient

func NewGetRoutingRuleParamsWithHTTPClient(client *http.Client) *GetRoutingRuleParams

NewGetRoutingRuleParamsWithHTTPClient creates a new GetRoutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewGetRoutingRuleParamsWithTimeout

func NewGetRoutingRuleParamsWithTimeout(timeout time.Duration) *GetRoutingRuleParams

NewGetRoutingRuleParamsWithTimeout creates a new GetRoutingRuleParams object with the ability to set a timeout on a request.

func (*GetRoutingRuleParams) SetContext

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

SetContext adds the context to the get routing rule params

func (*GetRoutingRuleParams) SetDefaults

func (o *GetRoutingRuleParams) SetDefaults()

SetDefaults hydrates default values in the get routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*GetRoutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get routing rule params

func (*GetRoutingRuleParams) SetName

func (o *GetRoutingRuleParams) SetName(name string)

SetName adds the name to the get routing rule params

func (*GetRoutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get routing rule params

func (*GetRoutingRuleParams) WithContext

WithContext adds the context to the get routing rule params

func (*GetRoutingRuleParams) WithDefaults

func (o *GetRoutingRuleParams) WithDefaults() *GetRoutingRuleParams

WithDefaults hydrates default values in the get routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*GetRoutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get routing rule params

func (*GetRoutingRuleParams) WithName

WithName adds the name to the get routing rule params

func (*GetRoutingRuleParams) WithTimeout

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

WithTimeout adds the timeout to the get routing rule params

func (*GetRoutingRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoutingRuleReader

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

GetRoutingRuleReader is a Reader for the GetRoutingRule structure.

func (*GetRoutingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoutingRulesForbidden

type GetRoutingRulesForbidden struct {
}

GetRoutingRulesForbidden describes a response with status code 403, with default header values.

Insufficient permissions to read routing rules

func NewGetRoutingRulesForbidden

func NewGetRoutingRulesForbidden() *GetRoutingRulesForbidden

NewGetRoutingRulesForbidden creates a GetRoutingRulesForbidden with default headers values

func (*GetRoutingRulesForbidden) Code

func (o *GetRoutingRulesForbidden) Code() int

Code gets the status code for the get routing rules forbidden response

func (*GetRoutingRulesForbidden) Error

func (o *GetRoutingRulesForbidden) Error() string

func (*GetRoutingRulesForbidden) IsClientError

func (o *GetRoutingRulesForbidden) IsClientError() bool

IsClientError returns true when this get routing rules forbidden response has a 4xx status code

func (*GetRoutingRulesForbidden) IsCode

func (o *GetRoutingRulesForbidden) IsCode(code int) bool

IsCode returns true when this get routing rules forbidden response a status code equal to that given

func (*GetRoutingRulesForbidden) IsRedirect

func (o *GetRoutingRulesForbidden) IsRedirect() bool

IsRedirect returns true when this get routing rules forbidden response has a 3xx status code

func (*GetRoutingRulesForbidden) IsServerError

func (o *GetRoutingRulesForbidden) IsServerError() bool

IsServerError returns true when this get routing rules forbidden response has a 5xx status code

func (*GetRoutingRulesForbidden) IsSuccess

func (o *GetRoutingRulesForbidden) IsSuccess() bool

IsSuccess returns true when this get routing rules forbidden response has a 2xx status code

func (*GetRoutingRulesForbidden) String

func (o *GetRoutingRulesForbidden) String() string

type GetRoutingRulesOK

type GetRoutingRulesOK struct {
	Payload []*models.RoutingRuleXO
}

GetRoutingRulesOK describes a response with status code 200, with default header values.

successful operation

func NewGetRoutingRulesOK

func NewGetRoutingRulesOK() *GetRoutingRulesOK

NewGetRoutingRulesOK creates a GetRoutingRulesOK with default headers values

func (*GetRoutingRulesOK) Code

func (o *GetRoutingRulesOK) Code() int

Code gets the status code for the get routing rules o k response

func (*GetRoutingRulesOK) Error

func (o *GetRoutingRulesOK) Error() string

func (*GetRoutingRulesOK) GetPayload

func (o *GetRoutingRulesOK) GetPayload() []*models.RoutingRuleXO

func (*GetRoutingRulesOK) IsClientError

func (o *GetRoutingRulesOK) IsClientError() bool

IsClientError returns true when this get routing rules o k response has a 4xx status code

func (*GetRoutingRulesOK) IsCode

func (o *GetRoutingRulesOK) IsCode(code int) bool

IsCode returns true when this get routing rules o k response a status code equal to that given

func (*GetRoutingRulesOK) IsRedirect

func (o *GetRoutingRulesOK) IsRedirect() bool

IsRedirect returns true when this get routing rules o k response has a 3xx status code

func (*GetRoutingRulesOK) IsServerError

func (o *GetRoutingRulesOK) IsServerError() bool

IsServerError returns true when this get routing rules o k response has a 5xx status code

func (*GetRoutingRulesOK) IsSuccess

func (o *GetRoutingRulesOK) IsSuccess() bool

IsSuccess returns true when this get routing rules o k response has a 2xx status code

func (*GetRoutingRulesOK) String

func (o *GetRoutingRulesOK) String() string

type GetRoutingRulesParams

type GetRoutingRulesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRoutingRulesParams contains all the parameters to send to the API endpoint

for the get routing rules operation.

Typically these are written to a http.Request.

func NewGetRoutingRulesParams

func NewGetRoutingRulesParams() *GetRoutingRulesParams

NewGetRoutingRulesParams creates a new GetRoutingRulesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetRoutingRulesParamsWithContext

func NewGetRoutingRulesParamsWithContext(ctx context.Context) *GetRoutingRulesParams

NewGetRoutingRulesParamsWithContext creates a new GetRoutingRulesParams object with the ability to set a context for a request.

func NewGetRoutingRulesParamsWithHTTPClient

func NewGetRoutingRulesParamsWithHTTPClient(client *http.Client) *GetRoutingRulesParams

NewGetRoutingRulesParamsWithHTTPClient creates a new GetRoutingRulesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRoutingRulesParamsWithTimeout

func NewGetRoutingRulesParamsWithTimeout(timeout time.Duration) *GetRoutingRulesParams

NewGetRoutingRulesParamsWithTimeout creates a new GetRoutingRulesParams object with the ability to set a timeout on a request.

func (*GetRoutingRulesParams) SetContext

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

SetContext adds the context to the get routing rules params

func (*GetRoutingRulesParams) SetDefaults

func (o *GetRoutingRulesParams) SetDefaults()

SetDefaults hydrates default values in the get routing rules params (not the query body).

All values with no default are reset to their zero value.

func (*GetRoutingRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get routing rules params

func (*GetRoutingRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get routing rules params

func (*GetRoutingRulesParams) WithContext

WithContext adds the context to the get routing rules params

func (*GetRoutingRulesParams) WithDefaults

func (o *GetRoutingRulesParams) WithDefaults() *GetRoutingRulesParams

WithDefaults hydrates default values in the get routing rules params (not the query body).

All values with no default are reset to their zero value.

func (*GetRoutingRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get routing rules params

func (*GetRoutingRulesParams) WithTimeout

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

WithTimeout adds the timeout to the get routing rules params

func (*GetRoutingRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRoutingRulesReader

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

GetRoutingRulesReader is a Reader for the GetRoutingRules structure.

func (*GetRoutingRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRoutingRuleBadRequest

type UpdateRoutingRuleBadRequest struct {
}

UpdateRoutingRuleBadRequest describes a response with status code 400, with default header values.

Another routing rule with the same name already exists or required parameters missing

func NewUpdateRoutingRuleBadRequest

func NewUpdateRoutingRuleBadRequest() *UpdateRoutingRuleBadRequest

NewUpdateRoutingRuleBadRequest creates a UpdateRoutingRuleBadRequest with default headers values

func (*UpdateRoutingRuleBadRequest) Code

func (o *UpdateRoutingRuleBadRequest) Code() int

Code gets the status code for the update routing rule bad request response

func (*UpdateRoutingRuleBadRequest) Error

func (*UpdateRoutingRuleBadRequest) IsClientError

func (o *UpdateRoutingRuleBadRequest) IsClientError() bool

IsClientError returns true when this update routing rule bad request response has a 4xx status code

func (*UpdateRoutingRuleBadRequest) IsCode

func (o *UpdateRoutingRuleBadRequest) IsCode(code int) bool

IsCode returns true when this update routing rule bad request response a status code equal to that given

func (*UpdateRoutingRuleBadRequest) IsRedirect

func (o *UpdateRoutingRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this update routing rule bad request response has a 3xx status code

func (*UpdateRoutingRuleBadRequest) IsServerError

func (o *UpdateRoutingRuleBadRequest) IsServerError() bool

IsServerError returns true when this update routing rule bad request response has a 5xx status code

func (*UpdateRoutingRuleBadRequest) IsSuccess

func (o *UpdateRoutingRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this update routing rule bad request response has a 2xx status code

func (*UpdateRoutingRuleBadRequest) String

func (o *UpdateRoutingRuleBadRequest) String() string

type UpdateRoutingRuleForbidden

type UpdateRoutingRuleForbidden struct {
}

UpdateRoutingRuleForbidden describes a response with status code 403, with default header values.

Insufficient permissions to edit routing rules

func NewUpdateRoutingRuleForbidden

func NewUpdateRoutingRuleForbidden() *UpdateRoutingRuleForbidden

NewUpdateRoutingRuleForbidden creates a UpdateRoutingRuleForbidden with default headers values

func (*UpdateRoutingRuleForbidden) Code

func (o *UpdateRoutingRuleForbidden) Code() int

Code gets the status code for the update routing rule forbidden response

func (*UpdateRoutingRuleForbidden) Error

func (*UpdateRoutingRuleForbidden) IsClientError

func (o *UpdateRoutingRuleForbidden) IsClientError() bool

IsClientError returns true when this update routing rule forbidden response has a 4xx status code

func (*UpdateRoutingRuleForbidden) IsCode

func (o *UpdateRoutingRuleForbidden) IsCode(code int) bool

IsCode returns true when this update routing rule forbidden response a status code equal to that given

func (*UpdateRoutingRuleForbidden) IsRedirect

func (o *UpdateRoutingRuleForbidden) IsRedirect() bool

IsRedirect returns true when this update routing rule forbidden response has a 3xx status code

func (*UpdateRoutingRuleForbidden) IsServerError

func (o *UpdateRoutingRuleForbidden) IsServerError() bool

IsServerError returns true when this update routing rule forbidden response has a 5xx status code

func (*UpdateRoutingRuleForbidden) IsSuccess

func (o *UpdateRoutingRuleForbidden) IsSuccess() bool

IsSuccess returns true when this update routing rule forbidden response has a 2xx status code

func (*UpdateRoutingRuleForbidden) String

func (o *UpdateRoutingRuleForbidden) String() string

type UpdateRoutingRuleNoContent

type UpdateRoutingRuleNoContent struct {
}

UpdateRoutingRuleNoContent describes a response with status code 204, with default header values.

Routing rule was successfully updated

func NewUpdateRoutingRuleNoContent

func NewUpdateRoutingRuleNoContent() *UpdateRoutingRuleNoContent

NewUpdateRoutingRuleNoContent creates a UpdateRoutingRuleNoContent with default headers values

func (*UpdateRoutingRuleNoContent) Code

func (o *UpdateRoutingRuleNoContent) Code() int

Code gets the status code for the update routing rule no content response

func (*UpdateRoutingRuleNoContent) Error

func (*UpdateRoutingRuleNoContent) IsClientError

func (o *UpdateRoutingRuleNoContent) IsClientError() bool

IsClientError returns true when this update routing rule no content response has a 4xx status code

func (*UpdateRoutingRuleNoContent) IsCode

func (o *UpdateRoutingRuleNoContent) IsCode(code int) bool

IsCode returns true when this update routing rule no content response a status code equal to that given

func (*UpdateRoutingRuleNoContent) IsRedirect

func (o *UpdateRoutingRuleNoContent) IsRedirect() bool

IsRedirect returns true when this update routing rule no content response has a 3xx status code

func (*UpdateRoutingRuleNoContent) IsServerError

func (o *UpdateRoutingRuleNoContent) IsServerError() bool

IsServerError returns true when this update routing rule no content response has a 5xx status code

func (*UpdateRoutingRuleNoContent) IsSuccess

func (o *UpdateRoutingRuleNoContent) IsSuccess() bool

IsSuccess returns true when this update routing rule no content response has a 2xx status code

func (*UpdateRoutingRuleNoContent) String

func (o *UpdateRoutingRuleNoContent) String() string

type UpdateRoutingRuleNotFound

type UpdateRoutingRuleNotFound struct {
}

UpdateRoutingRuleNotFound describes a response with status code 404, with default header values.

Routing rule not found

func NewUpdateRoutingRuleNotFound

func NewUpdateRoutingRuleNotFound() *UpdateRoutingRuleNotFound

NewUpdateRoutingRuleNotFound creates a UpdateRoutingRuleNotFound with default headers values

func (*UpdateRoutingRuleNotFound) Code

func (o *UpdateRoutingRuleNotFound) Code() int

Code gets the status code for the update routing rule not found response

func (*UpdateRoutingRuleNotFound) Error

func (o *UpdateRoutingRuleNotFound) Error() string

func (*UpdateRoutingRuleNotFound) IsClientError

func (o *UpdateRoutingRuleNotFound) IsClientError() bool

IsClientError returns true when this update routing rule not found response has a 4xx status code

func (*UpdateRoutingRuleNotFound) IsCode

func (o *UpdateRoutingRuleNotFound) IsCode(code int) bool

IsCode returns true when this update routing rule not found response a status code equal to that given

func (*UpdateRoutingRuleNotFound) IsRedirect

func (o *UpdateRoutingRuleNotFound) IsRedirect() bool

IsRedirect returns true when this update routing rule not found response has a 3xx status code

func (*UpdateRoutingRuleNotFound) IsServerError

func (o *UpdateRoutingRuleNotFound) IsServerError() bool

IsServerError returns true when this update routing rule not found response has a 5xx status code

func (*UpdateRoutingRuleNotFound) IsSuccess

func (o *UpdateRoutingRuleNotFound) IsSuccess() bool

IsSuccess returns true when this update routing rule not found response has a 2xx status code

func (*UpdateRoutingRuleNotFound) String

func (o *UpdateRoutingRuleNotFound) String() string

type UpdateRoutingRuleParams

type UpdateRoutingRuleParams struct {

	/* Body.

	   A routing rule configuration
	*/
	Body *models.RoutingRuleXO

	/* Name.

	   The name of the routing rule to update
	*/
	Name string

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

UpdateRoutingRuleParams contains all the parameters to send to the API endpoint

for the update routing rule operation.

Typically these are written to a http.Request.

func NewUpdateRoutingRuleParams

func NewUpdateRoutingRuleParams() *UpdateRoutingRuleParams

NewUpdateRoutingRuleParams creates a new UpdateRoutingRuleParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateRoutingRuleParamsWithContext

func NewUpdateRoutingRuleParamsWithContext(ctx context.Context) *UpdateRoutingRuleParams

NewUpdateRoutingRuleParamsWithContext creates a new UpdateRoutingRuleParams object with the ability to set a context for a request.

func NewUpdateRoutingRuleParamsWithHTTPClient

func NewUpdateRoutingRuleParamsWithHTTPClient(client *http.Client) *UpdateRoutingRuleParams

NewUpdateRoutingRuleParamsWithHTTPClient creates a new UpdateRoutingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRoutingRuleParamsWithTimeout

func NewUpdateRoutingRuleParamsWithTimeout(timeout time.Duration) *UpdateRoutingRuleParams

NewUpdateRoutingRuleParamsWithTimeout creates a new UpdateRoutingRuleParams object with the ability to set a timeout on a request.

func (*UpdateRoutingRuleParams) SetBody

func (o *UpdateRoutingRuleParams) SetBody(body *models.RoutingRuleXO)

SetBody adds the body to the update routing rule params

func (*UpdateRoutingRuleParams) SetContext

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

SetContext adds the context to the update routing rule params

func (*UpdateRoutingRuleParams) SetDefaults

func (o *UpdateRoutingRuleParams) SetDefaults()

SetDefaults hydrates default values in the update routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRoutingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update routing rule params

func (*UpdateRoutingRuleParams) SetName

func (o *UpdateRoutingRuleParams) SetName(name string)

SetName adds the name to the update routing rule params

func (*UpdateRoutingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update routing rule params

func (*UpdateRoutingRuleParams) WithBody

WithBody adds the body to the update routing rule params

func (*UpdateRoutingRuleParams) WithContext

WithContext adds the context to the update routing rule params

func (*UpdateRoutingRuleParams) WithDefaults

WithDefaults hydrates default values in the update routing rule params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRoutingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update routing rule params

func (*UpdateRoutingRuleParams) WithName

WithName adds the name to the update routing rule params

func (*UpdateRoutingRuleParams) WithTimeout

WithTimeout adds the timeout to the update routing rule params

func (*UpdateRoutingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRoutingRuleReader

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

UpdateRoutingRuleReader is a Reader for the UpdateRoutingRule structure.

func (*UpdateRoutingRuleReader) ReadResponse

func (o *UpdateRoutingRuleReader) 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