Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateRoutingRule(params *CreateRoutingRuleParams, opts ...ClientOption) (*CreateRoutingRuleNoContent, error)
- func (a *Client) DeleteRoutingRule(params *DeleteRoutingRuleParams, opts ...ClientOption) (*DeleteRoutingRuleNoContent, error)
- func (a *Client) GetRoutingRule(params *GetRoutingRuleParams, opts ...ClientOption) (*GetRoutingRuleOK, error)
- func (a *Client) GetRoutingRules(params *GetRoutingRulesParams, opts ...ClientOption) (*GetRoutingRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateRoutingRule(params *UpdateRoutingRuleParams, opts ...ClientOption) (*UpdateRoutingRuleNoContent, error)
- type ClientOption
- type ClientService
- type CreateRoutingRuleBadRequest
- func (o *CreateRoutingRuleBadRequest) Code() int
- func (o *CreateRoutingRuleBadRequest) Error() string
- func (o *CreateRoutingRuleBadRequest) IsClientError() bool
- func (o *CreateRoutingRuleBadRequest) IsCode(code int) bool
- func (o *CreateRoutingRuleBadRequest) IsRedirect() bool
- func (o *CreateRoutingRuleBadRequest) IsServerError() bool
- func (o *CreateRoutingRuleBadRequest) IsSuccess() bool
- func (o *CreateRoutingRuleBadRequest) String() string
- type CreateRoutingRuleForbidden
- func (o *CreateRoutingRuleForbidden) Code() int
- func (o *CreateRoutingRuleForbidden) Error() string
- func (o *CreateRoutingRuleForbidden) IsClientError() bool
- func (o *CreateRoutingRuleForbidden) IsCode(code int) bool
- func (o *CreateRoutingRuleForbidden) IsRedirect() bool
- func (o *CreateRoutingRuleForbidden) IsServerError() bool
- func (o *CreateRoutingRuleForbidden) IsSuccess() bool
- func (o *CreateRoutingRuleForbidden) String() string
- type CreateRoutingRuleNoContent
- func (o *CreateRoutingRuleNoContent) Code() int
- func (o *CreateRoutingRuleNoContent) Error() string
- func (o *CreateRoutingRuleNoContent) IsClientError() bool
- func (o *CreateRoutingRuleNoContent) IsCode(code int) bool
- func (o *CreateRoutingRuleNoContent) IsRedirect() bool
- func (o *CreateRoutingRuleNoContent) IsServerError() bool
- func (o *CreateRoutingRuleNoContent) IsSuccess() bool
- func (o *CreateRoutingRuleNoContent) String() string
- type CreateRoutingRuleParams
- func NewCreateRoutingRuleParams() *CreateRoutingRuleParams
- func NewCreateRoutingRuleParamsWithContext(ctx context.Context) *CreateRoutingRuleParams
- func NewCreateRoutingRuleParamsWithHTTPClient(client *http.Client) *CreateRoutingRuleParams
- func NewCreateRoutingRuleParamsWithTimeout(timeout time.Duration) *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) SetBody(body *models.RoutingRuleXO)
- func (o *CreateRoutingRuleParams) SetContext(ctx context.Context)
- func (o *CreateRoutingRuleParams) SetDefaults()
- func (o *CreateRoutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateRoutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateRoutingRuleParams) WithBody(body *models.RoutingRuleXO) *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) WithContext(ctx context.Context) *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) WithDefaults() *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) WithHTTPClient(client *http.Client) *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) WithTimeout(timeout time.Duration) *CreateRoutingRuleParams
- func (o *CreateRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRoutingRuleReader
- type DeleteRoutingRuleForbidden
- func (o *DeleteRoutingRuleForbidden) Code() int
- func (o *DeleteRoutingRuleForbidden) Error() string
- func (o *DeleteRoutingRuleForbidden) IsClientError() bool
- func (o *DeleteRoutingRuleForbidden) IsCode(code int) bool
- func (o *DeleteRoutingRuleForbidden) IsRedirect() bool
- func (o *DeleteRoutingRuleForbidden) IsServerError() bool
- func (o *DeleteRoutingRuleForbidden) IsSuccess() bool
- func (o *DeleteRoutingRuleForbidden) String() string
- type DeleteRoutingRuleNoContent
- func (o *DeleteRoutingRuleNoContent) Code() int
- func (o *DeleteRoutingRuleNoContent) Error() string
- func (o *DeleteRoutingRuleNoContent) IsClientError() bool
- func (o *DeleteRoutingRuleNoContent) IsCode(code int) bool
- func (o *DeleteRoutingRuleNoContent) IsRedirect() bool
- func (o *DeleteRoutingRuleNoContent) IsServerError() bool
- func (o *DeleteRoutingRuleNoContent) IsSuccess() bool
- func (o *DeleteRoutingRuleNoContent) String() string
- type DeleteRoutingRuleNotFound
- func (o *DeleteRoutingRuleNotFound) Code() int
- func (o *DeleteRoutingRuleNotFound) Error() string
- func (o *DeleteRoutingRuleNotFound) IsClientError() bool
- func (o *DeleteRoutingRuleNotFound) IsCode(code int) bool
- func (o *DeleteRoutingRuleNotFound) IsRedirect() bool
- func (o *DeleteRoutingRuleNotFound) IsServerError() bool
- func (o *DeleteRoutingRuleNotFound) IsSuccess() bool
- func (o *DeleteRoutingRuleNotFound) String() string
- type DeleteRoutingRuleParams
- func NewDeleteRoutingRuleParams() *DeleteRoutingRuleParams
- func NewDeleteRoutingRuleParamsWithContext(ctx context.Context) *DeleteRoutingRuleParams
- func NewDeleteRoutingRuleParamsWithHTTPClient(client *http.Client) *DeleteRoutingRuleParams
- func NewDeleteRoutingRuleParamsWithTimeout(timeout time.Duration) *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) SetContext(ctx context.Context)
- func (o *DeleteRoutingRuleParams) SetDefaults()
- func (o *DeleteRoutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRoutingRuleParams) SetName(name string)
- func (o *DeleteRoutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRoutingRuleParams) WithContext(ctx context.Context) *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) WithDefaults() *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) WithHTTPClient(client *http.Client) *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) WithName(name string) *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) WithTimeout(timeout time.Duration) *DeleteRoutingRuleParams
- func (o *DeleteRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRoutingRuleReader
- type GetRoutingRuleForbidden
- func (o *GetRoutingRuleForbidden) Code() int
- func (o *GetRoutingRuleForbidden) Error() string
- func (o *GetRoutingRuleForbidden) IsClientError() bool
- func (o *GetRoutingRuleForbidden) IsCode(code int) bool
- func (o *GetRoutingRuleForbidden) IsRedirect() bool
- func (o *GetRoutingRuleForbidden) IsServerError() bool
- func (o *GetRoutingRuleForbidden) IsSuccess() bool
- func (o *GetRoutingRuleForbidden) String() string
- type GetRoutingRuleNotFound
- func (o *GetRoutingRuleNotFound) Code() int
- func (o *GetRoutingRuleNotFound) Error() string
- func (o *GetRoutingRuleNotFound) IsClientError() bool
- func (o *GetRoutingRuleNotFound) IsCode(code int) bool
- func (o *GetRoutingRuleNotFound) IsRedirect() bool
- func (o *GetRoutingRuleNotFound) IsServerError() bool
- func (o *GetRoutingRuleNotFound) IsSuccess() bool
- func (o *GetRoutingRuleNotFound) String() string
- type GetRoutingRuleOK
- func (o *GetRoutingRuleOK) Code() int
- func (o *GetRoutingRuleOK) Error() string
- func (o *GetRoutingRuleOK) GetPayload() *models.RoutingRuleXO
- func (o *GetRoutingRuleOK) IsClientError() bool
- func (o *GetRoutingRuleOK) IsCode(code int) bool
- func (o *GetRoutingRuleOK) IsRedirect() bool
- func (o *GetRoutingRuleOK) IsServerError() bool
- func (o *GetRoutingRuleOK) IsSuccess() bool
- func (o *GetRoutingRuleOK) String() string
- type GetRoutingRuleParams
- func NewGetRoutingRuleParams() *GetRoutingRuleParams
- func NewGetRoutingRuleParamsWithContext(ctx context.Context) *GetRoutingRuleParams
- func NewGetRoutingRuleParamsWithHTTPClient(client *http.Client) *GetRoutingRuleParams
- func NewGetRoutingRuleParamsWithTimeout(timeout time.Duration) *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) SetContext(ctx context.Context)
- func (o *GetRoutingRuleParams) SetDefaults()
- func (o *GetRoutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetRoutingRuleParams) SetName(name string)
- func (o *GetRoutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetRoutingRuleParams) WithContext(ctx context.Context) *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) WithDefaults() *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) WithHTTPClient(client *http.Client) *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) WithName(name string) *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) WithTimeout(timeout time.Duration) *GetRoutingRuleParams
- func (o *GetRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoutingRuleReader
- type GetRoutingRulesForbidden
- func (o *GetRoutingRulesForbidden) Code() int
- func (o *GetRoutingRulesForbidden) Error() string
- func (o *GetRoutingRulesForbidden) IsClientError() bool
- func (o *GetRoutingRulesForbidden) IsCode(code int) bool
- func (o *GetRoutingRulesForbidden) IsRedirect() bool
- func (o *GetRoutingRulesForbidden) IsServerError() bool
- func (o *GetRoutingRulesForbidden) IsSuccess() bool
- func (o *GetRoutingRulesForbidden) String() string
- type GetRoutingRulesOK
- func (o *GetRoutingRulesOK) Code() int
- func (o *GetRoutingRulesOK) Error() string
- func (o *GetRoutingRulesOK) GetPayload() []*models.RoutingRuleXO
- func (o *GetRoutingRulesOK) IsClientError() bool
- func (o *GetRoutingRulesOK) IsCode(code int) bool
- func (o *GetRoutingRulesOK) IsRedirect() bool
- func (o *GetRoutingRulesOK) IsServerError() bool
- func (o *GetRoutingRulesOK) IsSuccess() bool
- func (o *GetRoutingRulesOK) String() string
- type GetRoutingRulesParams
- func NewGetRoutingRulesParams() *GetRoutingRulesParams
- func NewGetRoutingRulesParamsWithContext(ctx context.Context) *GetRoutingRulesParams
- func NewGetRoutingRulesParamsWithHTTPClient(client *http.Client) *GetRoutingRulesParams
- func NewGetRoutingRulesParamsWithTimeout(timeout time.Duration) *GetRoutingRulesParams
- func (o *GetRoutingRulesParams) SetContext(ctx context.Context)
- func (o *GetRoutingRulesParams) SetDefaults()
- func (o *GetRoutingRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetRoutingRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetRoutingRulesParams) WithContext(ctx context.Context) *GetRoutingRulesParams
- func (o *GetRoutingRulesParams) WithDefaults() *GetRoutingRulesParams
- func (o *GetRoutingRulesParams) WithHTTPClient(client *http.Client) *GetRoutingRulesParams
- func (o *GetRoutingRulesParams) WithTimeout(timeout time.Duration) *GetRoutingRulesParams
- func (o *GetRoutingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRoutingRulesReader
- type UpdateRoutingRuleBadRequest
- func (o *UpdateRoutingRuleBadRequest) Code() int
- func (o *UpdateRoutingRuleBadRequest) Error() string
- func (o *UpdateRoutingRuleBadRequest) IsClientError() bool
- func (o *UpdateRoutingRuleBadRequest) IsCode(code int) bool
- func (o *UpdateRoutingRuleBadRequest) IsRedirect() bool
- func (o *UpdateRoutingRuleBadRequest) IsServerError() bool
- func (o *UpdateRoutingRuleBadRequest) IsSuccess() bool
- func (o *UpdateRoutingRuleBadRequest) String() string
- type UpdateRoutingRuleForbidden
- func (o *UpdateRoutingRuleForbidden) Code() int
- func (o *UpdateRoutingRuleForbidden) Error() string
- func (o *UpdateRoutingRuleForbidden) IsClientError() bool
- func (o *UpdateRoutingRuleForbidden) IsCode(code int) bool
- func (o *UpdateRoutingRuleForbidden) IsRedirect() bool
- func (o *UpdateRoutingRuleForbidden) IsServerError() bool
- func (o *UpdateRoutingRuleForbidden) IsSuccess() bool
- func (o *UpdateRoutingRuleForbidden) String() string
- type UpdateRoutingRuleNoContent
- func (o *UpdateRoutingRuleNoContent) Code() int
- func (o *UpdateRoutingRuleNoContent) Error() string
- func (o *UpdateRoutingRuleNoContent) IsClientError() bool
- func (o *UpdateRoutingRuleNoContent) IsCode(code int) bool
- func (o *UpdateRoutingRuleNoContent) IsRedirect() bool
- func (o *UpdateRoutingRuleNoContent) IsServerError() bool
- func (o *UpdateRoutingRuleNoContent) IsSuccess() bool
- func (o *UpdateRoutingRuleNoContent) String() string
- type UpdateRoutingRuleNotFound
- func (o *UpdateRoutingRuleNotFound) Code() int
- func (o *UpdateRoutingRuleNotFound) Error() string
- func (o *UpdateRoutingRuleNotFound) IsClientError() bool
- func (o *UpdateRoutingRuleNotFound) IsCode(code int) bool
- func (o *UpdateRoutingRuleNotFound) IsRedirect() bool
- func (o *UpdateRoutingRuleNotFound) IsServerError() bool
- func (o *UpdateRoutingRuleNotFound) IsSuccess() bool
- func (o *UpdateRoutingRuleNotFound) String() string
- type UpdateRoutingRuleParams
- func NewUpdateRoutingRuleParams() *UpdateRoutingRuleParams
- func NewUpdateRoutingRuleParamsWithContext(ctx context.Context) *UpdateRoutingRuleParams
- func NewUpdateRoutingRuleParamsWithHTTPClient(client *http.Client) *UpdateRoutingRuleParams
- func NewUpdateRoutingRuleParamsWithTimeout(timeout time.Duration) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) SetBody(body *models.RoutingRuleXO)
- func (o *UpdateRoutingRuleParams) SetContext(ctx context.Context)
- func (o *UpdateRoutingRuleParams) SetDefaults()
- func (o *UpdateRoutingRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRoutingRuleParams) SetName(name string)
- func (o *UpdateRoutingRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRoutingRuleParams) WithBody(body *models.RoutingRuleXO) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WithContext(ctx context.Context) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WithDefaults() *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WithHTTPClient(client *http.Client) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WithName(name string) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WithTimeout(timeout time.Duration) *UpdateRoutingRuleParams
- func (o *UpdateRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRoutingRuleReader
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 (o *CreateRoutingRuleBadRequest) Error() string
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 (o *CreateRoutingRuleForbidden) Error() string
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 (o *CreateRoutingRuleNoContent) Error() string
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 ¶
func (o *CreateRoutingRuleParams) WithBody(body *models.RoutingRuleXO) *CreateRoutingRuleParams
WithBody adds the body to the create routing rule params
func (*CreateRoutingRuleParams) WithContext ¶
func (o *CreateRoutingRuleParams) WithContext(ctx context.Context) *CreateRoutingRuleParams
WithContext adds the context to the create routing rule params
func (*CreateRoutingRuleParams) WithDefaults ¶
func (o *CreateRoutingRuleParams) WithDefaults() *CreateRoutingRuleParams
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 ¶
func (o *CreateRoutingRuleParams) WithTimeout(timeout time.Duration) *CreateRoutingRuleParams
WithTimeout adds the timeout to the create routing rule params
func (*CreateRoutingRuleParams) WriteToRequest ¶
func (o *CreateRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DeleteRoutingRuleForbidden) Error() string
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 (o *DeleteRoutingRuleNoContent) Error() string
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 ¶
func (o *DeleteRoutingRuleParams) WithContext(ctx context.Context) *DeleteRoutingRuleParams
WithContext adds the context to the delete routing rule params
func (*DeleteRoutingRuleParams) WithDefaults ¶
func (o *DeleteRoutingRuleParams) WithDefaults() *DeleteRoutingRuleParams
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 ¶
func (o *DeleteRoutingRuleParams) WithName(name string) *DeleteRoutingRuleParams
WithName adds the name to the delete routing rule params
func (*DeleteRoutingRuleParams) WithTimeout ¶
func (o *DeleteRoutingRuleParams) WithTimeout(timeout time.Duration) *DeleteRoutingRuleParams
WithTimeout adds the timeout to the delete routing rule params
func (*DeleteRoutingRuleParams) WriteToRequest ¶
func (o *DeleteRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetRoutingRuleParams) WithContext(ctx context.Context) *GetRoutingRuleParams
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 ¶
func (o *GetRoutingRuleParams) WithName(name string) *GetRoutingRuleParams
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 ¶
func (o *GetRoutingRulesParams) WithContext(ctx context.Context) *GetRoutingRulesParams
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 (o *UpdateRoutingRuleBadRequest) Error() string
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 (o *UpdateRoutingRuleForbidden) Error() string
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 (o *UpdateRoutingRuleNoContent) Error() string
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 ¶
func (o *UpdateRoutingRuleParams) WithBody(body *models.RoutingRuleXO) *UpdateRoutingRuleParams
WithBody adds the body to the update routing rule params
func (*UpdateRoutingRuleParams) WithContext ¶
func (o *UpdateRoutingRuleParams) WithContext(ctx context.Context) *UpdateRoutingRuleParams
WithContext adds the context to the update routing rule params
func (*UpdateRoutingRuleParams) WithDefaults ¶
func (o *UpdateRoutingRuleParams) WithDefaults() *UpdateRoutingRuleParams
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 ¶
func (o *UpdateRoutingRuleParams) WithName(name string) *UpdateRoutingRuleParams
WithName adds the name to the update routing rule params
func (*UpdateRoutingRuleParams) WithTimeout ¶
func (o *UpdateRoutingRuleParams) WithTimeout(timeout time.Duration) *UpdateRoutingRuleParams
WithTimeout adds the timeout to the update routing rule params
func (*UpdateRoutingRuleParams) WriteToRequest ¶
func (o *UpdateRoutingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- create_routing_rule_parameters.go
- create_routing_rule_responses.go
- delete_routing_rule_parameters.go
- delete_routing_rule_responses.go
- get_routing_rule_parameters.go
- get_routing_rule_responses.go
- get_routing_rules_parameters.go
- get_routing_rules_responses.go
- routing_rules_client.go
- update_routing_rule_parameters.go
- update_routing_rule_responses.go