Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateDropRule(params *CreateDropRuleParams, opts ...ClientOption) (*CreateDropRuleOK, error)
- func (a *Client) DeleteDropRule(params *DeleteDropRuleParams, opts ...ClientOption) (*DeleteDropRuleOK, error)
- func (a *Client) ListDropRules(params *ListDropRulesParams, opts ...ClientOption) (*ListDropRulesOK, error)
- func (a *Client) ReadDropRule(params *ReadDropRuleParams, opts ...ClientOption) (*ReadDropRuleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateDropRule(params *UpdateDropRuleParams, opts ...ClientOption) (*UpdateDropRuleOK, error)
- type ClientOption
- type ClientService
- type CreateDropRuleBadRequest
- func (o *CreateDropRuleBadRequest) Code() int
- func (o *CreateDropRuleBadRequest) Error() string
- func (o *CreateDropRuleBadRequest) GetPayload() *models.APIError
- func (o *CreateDropRuleBadRequest) IsClientError() bool
- func (o *CreateDropRuleBadRequest) IsCode(code int) bool
- func (o *CreateDropRuleBadRequest) IsRedirect() bool
- func (o *CreateDropRuleBadRequest) IsServerError() bool
- func (o *CreateDropRuleBadRequest) IsSuccess() bool
- func (o *CreateDropRuleBadRequest) String() string
- type CreateDropRuleConflict
- func (o *CreateDropRuleConflict) Code() int
- func (o *CreateDropRuleConflict) Error() string
- func (o *CreateDropRuleConflict) GetPayload() *models.APIError
- func (o *CreateDropRuleConflict) IsClientError() bool
- func (o *CreateDropRuleConflict) IsCode(code int) bool
- func (o *CreateDropRuleConflict) IsRedirect() bool
- func (o *CreateDropRuleConflict) IsServerError() bool
- func (o *CreateDropRuleConflict) IsSuccess() bool
- func (o *CreateDropRuleConflict) String() string
- type CreateDropRuleDefault
- func (o *CreateDropRuleDefault) Code() int
- func (o *CreateDropRuleDefault) Error() string
- func (o *CreateDropRuleDefault) GetPayload() models.GenericError
- func (o *CreateDropRuleDefault) IsClientError() bool
- func (o *CreateDropRuleDefault) IsCode(code int) bool
- func (o *CreateDropRuleDefault) IsRedirect() bool
- func (o *CreateDropRuleDefault) IsServerError() bool
- func (o *CreateDropRuleDefault) IsSuccess() bool
- func (o *CreateDropRuleDefault) String() string
- type CreateDropRuleInternalServerError
- func (o *CreateDropRuleInternalServerError) Code() int
- func (o *CreateDropRuleInternalServerError) Error() string
- func (o *CreateDropRuleInternalServerError) GetPayload() *models.APIError
- func (o *CreateDropRuleInternalServerError) IsClientError() bool
- func (o *CreateDropRuleInternalServerError) IsCode(code int) bool
- func (o *CreateDropRuleInternalServerError) IsRedirect() bool
- func (o *CreateDropRuleInternalServerError) IsServerError() bool
- func (o *CreateDropRuleInternalServerError) IsSuccess() bool
- func (o *CreateDropRuleInternalServerError) String() string
- type CreateDropRuleOK
- func (o *CreateDropRuleOK) Code() int
- func (o *CreateDropRuleOK) Error() string
- func (o *CreateDropRuleOK) GetPayload() *models.Configv1CreateDropRuleResponse
- func (o *CreateDropRuleOK) IsClientError() bool
- func (o *CreateDropRuleOK) IsCode(code int) bool
- func (o *CreateDropRuleOK) IsRedirect() bool
- func (o *CreateDropRuleOK) IsServerError() bool
- func (o *CreateDropRuleOK) IsSuccess() bool
- func (o *CreateDropRuleOK) String() string
- type CreateDropRuleParams
- func NewCreateDropRuleParams() *CreateDropRuleParams
- func NewCreateDropRuleParamsWithContext(ctx context.Context) *CreateDropRuleParams
- func NewCreateDropRuleParamsWithHTTPClient(client *http.Client) *CreateDropRuleParams
- func NewCreateDropRuleParamsWithTimeout(timeout time.Duration) *CreateDropRuleParams
- func (o *CreateDropRuleParams) SetBody(body *models.Configv1CreateDropRuleRequest)
- func (o *CreateDropRuleParams) SetContext(ctx context.Context)
- func (o *CreateDropRuleParams) SetDefaults()
- func (o *CreateDropRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateDropRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateDropRuleParams) WithBody(body *models.Configv1CreateDropRuleRequest) *CreateDropRuleParams
- func (o *CreateDropRuleParams) WithContext(ctx context.Context) *CreateDropRuleParams
- func (o *CreateDropRuleParams) WithDefaults() *CreateDropRuleParams
- func (o *CreateDropRuleParams) WithHTTPClient(client *http.Client) *CreateDropRuleParams
- func (o *CreateDropRuleParams) WithTimeout(timeout time.Duration) *CreateDropRuleParams
- func (o *CreateDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDropRuleReader
- type DeleteDropRuleBadRequest
- func (o *DeleteDropRuleBadRequest) Code() int
- func (o *DeleteDropRuleBadRequest) Error() string
- func (o *DeleteDropRuleBadRequest) GetPayload() *models.APIError
- func (o *DeleteDropRuleBadRequest) IsClientError() bool
- func (o *DeleteDropRuleBadRequest) IsCode(code int) bool
- func (o *DeleteDropRuleBadRequest) IsRedirect() bool
- func (o *DeleteDropRuleBadRequest) IsServerError() bool
- func (o *DeleteDropRuleBadRequest) IsSuccess() bool
- func (o *DeleteDropRuleBadRequest) String() string
- type DeleteDropRuleDefault
- func (o *DeleteDropRuleDefault) Code() int
- func (o *DeleteDropRuleDefault) Error() string
- func (o *DeleteDropRuleDefault) GetPayload() models.GenericError
- func (o *DeleteDropRuleDefault) IsClientError() bool
- func (o *DeleteDropRuleDefault) IsCode(code int) bool
- func (o *DeleteDropRuleDefault) IsRedirect() bool
- func (o *DeleteDropRuleDefault) IsServerError() bool
- func (o *DeleteDropRuleDefault) IsSuccess() bool
- func (o *DeleteDropRuleDefault) String() string
- type DeleteDropRuleInternalServerError
- func (o *DeleteDropRuleInternalServerError) Code() int
- func (o *DeleteDropRuleInternalServerError) Error() string
- func (o *DeleteDropRuleInternalServerError) GetPayload() *models.APIError
- func (o *DeleteDropRuleInternalServerError) IsClientError() bool
- func (o *DeleteDropRuleInternalServerError) IsCode(code int) bool
- func (o *DeleteDropRuleInternalServerError) IsRedirect() bool
- func (o *DeleteDropRuleInternalServerError) IsServerError() bool
- func (o *DeleteDropRuleInternalServerError) IsSuccess() bool
- func (o *DeleteDropRuleInternalServerError) String() string
- type DeleteDropRuleNotFound
- func (o *DeleteDropRuleNotFound) Code() int
- func (o *DeleteDropRuleNotFound) Error() string
- func (o *DeleteDropRuleNotFound) GetPayload() *models.APIError
- func (o *DeleteDropRuleNotFound) IsClientError() bool
- func (o *DeleteDropRuleNotFound) IsCode(code int) bool
- func (o *DeleteDropRuleNotFound) IsRedirect() bool
- func (o *DeleteDropRuleNotFound) IsServerError() bool
- func (o *DeleteDropRuleNotFound) IsSuccess() bool
- func (o *DeleteDropRuleNotFound) String() string
- type DeleteDropRuleOK
- func (o *DeleteDropRuleOK) Code() int
- func (o *DeleteDropRuleOK) Error() string
- func (o *DeleteDropRuleOK) GetPayload() models.Configv1DeleteDropRuleResponse
- func (o *DeleteDropRuleOK) IsClientError() bool
- func (o *DeleteDropRuleOK) IsCode(code int) bool
- func (o *DeleteDropRuleOK) IsRedirect() bool
- func (o *DeleteDropRuleOK) IsServerError() bool
- func (o *DeleteDropRuleOK) IsSuccess() bool
- func (o *DeleteDropRuleOK) String() string
- type DeleteDropRuleParams
- func NewDeleteDropRuleParams() *DeleteDropRuleParams
- func NewDeleteDropRuleParamsWithContext(ctx context.Context) *DeleteDropRuleParams
- func NewDeleteDropRuleParamsWithHTTPClient(client *http.Client) *DeleteDropRuleParams
- func NewDeleteDropRuleParamsWithTimeout(timeout time.Duration) *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) SetContext(ctx context.Context)
- func (o *DeleteDropRuleParams) SetDefaults()
- func (o *DeleteDropRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDropRuleParams) SetSlug(slug string)
- func (o *DeleteDropRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDropRuleParams) WithContext(ctx context.Context) *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) WithDefaults() *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) WithHTTPClient(client *http.Client) *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) WithSlug(slug string) *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) WithTimeout(timeout time.Duration) *DeleteDropRuleParams
- func (o *DeleteDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDropRuleReader
- type ListDropRulesDefault
- func (o *ListDropRulesDefault) Code() int
- func (o *ListDropRulesDefault) Error() string
- func (o *ListDropRulesDefault) GetPayload() models.GenericError
- func (o *ListDropRulesDefault) IsClientError() bool
- func (o *ListDropRulesDefault) IsCode(code int) bool
- func (o *ListDropRulesDefault) IsRedirect() bool
- func (o *ListDropRulesDefault) IsServerError() bool
- func (o *ListDropRulesDefault) IsSuccess() bool
- func (o *ListDropRulesDefault) String() string
- type ListDropRulesInternalServerError
- func (o *ListDropRulesInternalServerError) Code() int
- func (o *ListDropRulesInternalServerError) Error() string
- func (o *ListDropRulesInternalServerError) GetPayload() *models.APIError
- func (o *ListDropRulesInternalServerError) IsClientError() bool
- func (o *ListDropRulesInternalServerError) IsCode(code int) bool
- func (o *ListDropRulesInternalServerError) IsRedirect() bool
- func (o *ListDropRulesInternalServerError) IsServerError() bool
- func (o *ListDropRulesInternalServerError) IsSuccess() bool
- func (o *ListDropRulesInternalServerError) String() string
- type ListDropRulesOK
- func (o *ListDropRulesOK) Code() int
- func (o *ListDropRulesOK) Error() string
- func (o *ListDropRulesOK) GetPayload() *models.Configv1ListDropRulesResponse
- func (o *ListDropRulesOK) IsClientError() bool
- func (o *ListDropRulesOK) IsCode(code int) bool
- func (o *ListDropRulesOK) IsRedirect() bool
- func (o *ListDropRulesOK) IsServerError() bool
- func (o *ListDropRulesOK) IsSuccess() bool
- func (o *ListDropRulesOK) String() string
- type ListDropRulesParams
- func (o *ListDropRulesParams) SetContext(ctx context.Context)
- func (o *ListDropRulesParams) SetDefaults()
- func (o *ListDropRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListDropRulesParams) SetNames(names []string)
- func (o *ListDropRulesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListDropRulesParams) SetPageToken(pageToken *string)
- func (o *ListDropRulesParams) SetSlugs(slugs []string)
- func (o *ListDropRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListDropRulesParams) WithContext(ctx context.Context) *ListDropRulesParams
- func (o *ListDropRulesParams) WithDefaults() *ListDropRulesParams
- func (o *ListDropRulesParams) WithHTTPClient(client *http.Client) *ListDropRulesParams
- func (o *ListDropRulesParams) WithNames(names []string) *ListDropRulesParams
- func (o *ListDropRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListDropRulesParams
- func (o *ListDropRulesParams) WithPageToken(pageToken *string) *ListDropRulesParams
- func (o *ListDropRulesParams) WithSlugs(slugs []string) *ListDropRulesParams
- func (o *ListDropRulesParams) WithTimeout(timeout time.Duration) *ListDropRulesParams
- func (o *ListDropRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDropRulesReader
- type ReadDropRuleDefault
- func (o *ReadDropRuleDefault) Code() int
- func (o *ReadDropRuleDefault) Error() string
- func (o *ReadDropRuleDefault) GetPayload() models.GenericError
- func (o *ReadDropRuleDefault) IsClientError() bool
- func (o *ReadDropRuleDefault) IsCode(code int) bool
- func (o *ReadDropRuleDefault) IsRedirect() bool
- func (o *ReadDropRuleDefault) IsServerError() bool
- func (o *ReadDropRuleDefault) IsSuccess() bool
- func (o *ReadDropRuleDefault) String() string
- type ReadDropRuleInternalServerError
- func (o *ReadDropRuleInternalServerError) Code() int
- func (o *ReadDropRuleInternalServerError) Error() string
- func (o *ReadDropRuleInternalServerError) GetPayload() *models.APIError
- func (o *ReadDropRuleInternalServerError) IsClientError() bool
- func (o *ReadDropRuleInternalServerError) IsCode(code int) bool
- func (o *ReadDropRuleInternalServerError) IsRedirect() bool
- func (o *ReadDropRuleInternalServerError) IsServerError() bool
- func (o *ReadDropRuleInternalServerError) IsSuccess() bool
- func (o *ReadDropRuleInternalServerError) String() string
- type ReadDropRuleNotFound
- func (o *ReadDropRuleNotFound) Code() int
- func (o *ReadDropRuleNotFound) Error() string
- func (o *ReadDropRuleNotFound) GetPayload() *models.APIError
- func (o *ReadDropRuleNotFound) IsClientError() bool
- func (o *ReadDropRuleNotFound) IsCode(code int) bool
- func (o *ReadDropRuleNotFound) IsRedirect() bool
- func (o *ReadDropRuleNotFound) IsServerError() bool
- func (o *ReadDropRuleNotFound) IsSuccess() bool
- func (o *ReadDropRuleNotFound) String() string
- type ReadDropRuleOK
- func (o *ReadDropRuleOK) Code() int
- func (o *ReadDropRuleOK) Error() string
- func (o *ReadDropRuleOK) GetPayload() *models.Configv1ReadDropRuleResponse
- func (o *ReadDropRuleOK) IsClientError() bool
- func (o *ReadDropRuleOK) IsCode(code int) bool
- func (o *ReadDropRuleOK) IsRedirect() bool
- func (o *ReadDropRuleOK) IsServerError() bool
- func (o *ReadDropRuleOK) IsSuccess() bool
- func (o *ReadDropRuleOK) String() string
- type ReadDropRuleParams
- func (o *ReadDropRuleParams) SetContext(ctx context.Context)
- func (o *ReadDropRuleParams) SetDefaults()
- func (o *ReadDropRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReadDropRuleParams) SetSlug(slug string)
- func (o *ReadDropRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReadDropRuleParams) WithContext(ctx context.Context) *ReadDropRuleParams
- func (o *ReadDropRuleParams) WithDefaults() *ReadDropRuleParams
- func (o *ReadDropRuleParams) WithHTTPClient(client *http.Client) *ReadDropRuleParams
- func (o *ReadDropRuleParams) WithSlug(slug string) *ReadDropRuleParams
- func (o *ReadDropRuleParams) WithTimeout(timeout time.Duration) *ReadDropRuleParams
- func (o *ReadDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadDropRuleReader
- type UpdateDropRuleBadRequest
- func (o *UpdateDropRuleBadRequest) Code() int
- func (o *UpdateDropRuleBadRequest) Error() string
- func (o *UpdateDropRuleBadRequest) GetPayload() *models.APIError
- func (o *UpdateDropRuleBadRequest) IsClientError() bool
- func (o *UpdateDropRuleBadRequest) IsCode(code int) bool
- func (o *UpdateDropRuleBadRequest) IsRedirect() bool
- func (o *UpdateDropRuleBadRequest) IsServerError() bool
- func (o *UpdateDropRuleBadRequest) IsSuccess() bool
- func (o *UpdateDropRuleBadRequest) String() string
- type UpdateDropRuleConflict
- func (o *UpdateDropRuleConflict) Code() int
- func (o *UpdateDropRuleConflict) Error() string
- func (o *UpdateDropRuleConflict) GetPayload() *models.APIError
- func (o *UpdateDropRuleConflict) IsClientError() bool
- func (o *UpdateDropRuleConflict) IsCode(code int) bool
- func (o *UpdateDropRuleConflict) IsRedirect() bool
- func (o *UpdateDropRuleConflict) IsServerError() bool
- func (o *UpdateDropRuleConflict) IsSuccess() bool
- func (o *UpdateDropRuleConflict) String() string
- type UpdateDropRuleDefault
- func (o *UpdateDropRuleDefault) Code() int
- func (o *UpdateDropRuleDefault) Error() string
- func (o *UpdateDropRuleDefault) GetPayload() models.GenericError
- func (o *UpdateDropRuleDefault) IsClientError() bool
- func (o *UpdateDropRuleDefault) IsCode(code int) bool
- func (o *UpdateDropRuleDefault) IsRedirect() bool
- func (o *UpdateDropRuleDefault) IsServerError() bool
- func (o *UpdateDropRuleDefault) IsSuccess() bool
- func (o *UpdateDropRuleDefault) String() string
- type UpdateDropRuleInternalServerError
- func (o *UpdateDropRuleInternalServerError) Code() int
- func (o *UpdateDropRuleInternalServerError) Error() string
- func (o *UpdateDropRuleInternalServerError) GetPayload() *models.APIError
- func (o *UpdateDropRuleInternalServerError) IsClientError() bool
- func (o *UpdateDropRuleInternalServerError) IsCode(code int) bool
- func (o *UpdateDropRuleInternalServerError) IsRedirect() bool
- func (o *UpdateDropRuleInternalServerError) IsServerError() bool
- func (o *UpdateDropRuleInternalServerError) IsSuccess() bool
- func (o *UpdateDropRuleInternalServerError) String() string
- type UpdateDropRuleNotFound
- func (o *UpdateDropRuleNotFound) Code() int
- func (o *UpdateDropRuleNotFound) Error() string
- func (o *UpdateDropRuleNotFound) GetPayload() *models.APIError
- func (o *UpdateDropRuleNotFound) IsClientError() bool
- func (o *UpdateDropRuleNotFound) IsCode(code int) bool
- func (o *UpdateDropRuleNotFound) IsRedirect() bool
- func (o *UpdateDropRuleNotFound) IsServerError() bool
- func (o *UpdateDropRuleNotFound) IsSuccess() bool
- func (o *UpdateDropRuleNotFound) String() string
- type UpdateDropRuleOK
- func (o *UpdateDropRuleOK) Code() int
- func (o *UpdateDropRuleOK) Error() string
- func (o *UpdateDropRuleOK) GetPayload() *models.Configv1UpdateDropRuleResponse
- func (o *UpdateDropRuleOK) IsClientError() bool
- func (o *UpdateDropRuleOK) IsCode(code int) bool
- func (o *UpdateDropRuleOK) IsRedirect() bool
- func (o *UpdateDropRuleOK) IsServerError() bool
- func (o *UpdateDropRuleOK) IsSuccess() bool
- func (o *UpdateDropRuleOK) String() string
- type UpdateDropRuleParams
- func NewUpdateDropRuleParams() *UpdateDropRuleParams
- func NewUpdateDropRuleParamsWithContext(ctx context.Context) *UpdateDropRuleParams
- func NewUpdateDropRuleParamsWithHTTPClient(client *http.Client) *UpdateDropRuleParams
- func NewUpdateDropRuleParamsWithTimeout(timeout time.Duration) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) SetBody(body *models.ConfigV1UpdateDropRuleBody)
- func (o *UpdateDropRuleParams) SetContext(ctx context.Context)
- func (o *UpdateDropRuleParams) SetDefaults()
- func (o *UpdateDropRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateDropRuleParams) SetSlug(slug string)
- func (o *UpdateDropRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateDropRuleParams) WithBody(body *models.ConfigV1UpdateDropRuleBody) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WithContext(ctx context.Context) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WithDefaults() *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WithHTTPClient(client *http.Client) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WithSlug(slug string) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WithTimeout(timeout time.Duration) *UpdateDropRuleParams
- func (o *UpdateDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateDropRuleReader
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 drop rule API
func (*Client) CreateDropRule ¶
func (a *Client) CreateDropRule(params *CreateDropRuleParams, opts ...ClientOption) (*CreateDropRuleOK, error)
CreateDropRule create drop rule API
func (*Client) DeleteDropRule ¶
func (a *Client) DeleteDropRule(params *DeleteDropRuleParams, opts ...ClientOption) (*DeleteDropRuleOK, error)
DeleteDropRule delete drop rule API
func (*Client) ListDropRules ¶
func (a *Client) ListDropRules(params *ListDropRulesParams, opts ...ClientOption) (*ListDropRulesOK, error)
ListDropRules list drop rules API
func (*Client) ReadDropRule ¶
func (a *Client) ReadDropRule(params *ReadDropRuleParams, opts ...ClientOption) (*ReadDropRuleOK, error)
ReadDropRule read drop rule API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateDropRule ¶
func (a *Client) UpdateDropRule(params *UpdateDropRuleParams, opts ...ClientOption) (*UpdateDropRuleOK, error)
UpdateDropRule update drop rule API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateDropRule(params *CreateDropRuleParams, opts ...ClientOption) (*CreateDropRuleOK, error) DeleteDropRule(params *DeleteDropRuleParams, opts ...ClientOption) (*DeleteDropRuleOK, error) ListDropRules(params *ListDropRulesParams, opts ...ClientOption) (*ListDropRulesOK, error) ReadDropRule(params *ReadDropRuleParams, opts ...ClientOption) (*ReadDropRuleOK, error) UpdateDropRule(params *UpdateDropRuleParams, opts ...ClientOption) (*UpdateDropRuleOK, 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 drop rule API client.
type CreateDropRuleBadRequest ¶
CreateDropRuleBadRequest describes a response with status code 400, with default header values.
Cannot create the DropRule because the request is invalid.
func NewCreateDropRuleBadRequest ¶
func NewCreateDropRuleBadRequest() *CreateDropRuleBadRequest
NewCreateDropRuleBadRequest creates a CreateDropRuleBadRequest with default headers values
func (*CreateDropRuleBadRequest) Code ¶
func (o *CreateDropRuleBadRequest) Code() int
Code gets the status code for the create drop rule bad request response
func (*CreateDropRuleBadRequest) Error ¶
func (o *CreateDropRuleBadRequest) Error() string
func (*CreateDropRuleBadRequest) GetPayload ¶
func (o *CreateDropRuleBadRequest) GetPayload() *models.APIError
func (*CreateDropRuleBadRequest) IsClientError ¶
func (o *CreateDropRuleBadRequest) IsClientError() bool
IsClientError returns true when this create drop rule bad request response has a 4xx status code
func (*CreateDropRuleBadRequest) IsCode ¶
func (o *CreateDropRuleBadRequest) IsCode(code int) bool
IsCode returns true when this create drop rule bad request response a status code equal to that given
func (*CreateDropRuleBadRequest) IsRedirect ¶
func (o *CreateDropRuleBadRequest) IsRedirect() bool
IsRedirect returns true when this create drop rule bad request response has a 3xx status code
func (*CreateDropRuleBadRequest) IsServerError ¶
func (o *CreateDropRuleBadRequest) IsServerError() bool
IsServerError returns true when this create drop rule bad request response has a 5xx status code
func (*CreateDropRuleBadRequest) IsSuccess ¶
func (o *CreateDropRuleBadRequest) IsSuccess() bool
IsSuccess returns true when this create drop rule bad request response has a 2xx status code
func (*CreateDropRuleBadRequest) String ¶
func (o *CreateDropRuleBadRequest) String() string
type CreateDropRuleConflict ¶
CreateDropRuleConflict describes a response with status code 409, with default header values.
Cannot create the DropRule because there is a conflict with an existing DropRule.
func NewCreateDropRuleConflict ¶
func NewCreateDropRuleConflict() *CreateDropRuleConflict
NewCreateDropRuleConflict creates a CreateDropRuleConflict with default headers values
func (*CreateDropRuleConflict) Code ¶
func (o *CreateDropRuleConflict) Code() int
Code gets the status code for the create drop rule conflict response
func (*CreateDropRuleConflict) Error ¶
func (o *CreateDropRuleConflict) Error() string
func (*CreateDropRuleConflict) GetPayload ¶
func (o *CreateDropRuleConflict) GetPayload() *models.APIError
func (*CreateDropRuleConflict) IsClientError ¶
func (o *CreateDropRuleConflict) IsClientError() bool
IsClientError returns true when this create drop rule conflict response has a 4xx status code
func (*CreateDropRuleConflict) IsCode ¶
func (o *CreateDropRuleConflict) IsCode(code int) bool
IsCode returns true when this create drop rule conflict response a status code equal to that given
func (*CreateDropRuleConflict) IsRedirect ¶
func (o *CreateDropRuleConflict) IsRedirect() bool
IsRedirect returns true when this create drop rule conflict response has a 3xx status code
func (*CreateDropRuleConflict) IsServerError ¶
func (o *CreateDropRuleConflict) IsServerError() bool
IsServerError returns true when this create drop rule conflict response has a 5xx status code
func (*CreateDropRuleConflict) IsSuccess ¶
func (o *CreateDropRuleConflict) IsSuccess() bool
IsSuccess returns true when this create drop rule conflict response has a 2xx status code
func (*CreateDropRuleConflict) String ¶
func (o *CreateDropRuleConflict) String() string
type CreateDropRuleDefault ¶
type CreateDropRuleDefault struct { Payload models.GenericError // contains filtered or unexported fields }
CreateDropRuleDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewCreateDropRuleDefault ¶
func NewCreateDropRuleDefault(code int) *CreateDropRuleDefault
NewCreateDropRuleDefault creates a CreateDropRuleDefault with default headers values
func (*CreateDropRuleDefault) Code ¶
func (o *CreateDropRuleDefault) Code() int
Code gets the status code for the create drop rule default response
func (*CreateDropRuleDefault) Error ¶
func (o *CreateDropRuleDefault) Error() string
func (*CreateDropRuleDefault) GetPayload ¶
func (o *CreateDropRuleDefault) GetPayload() models.GenericError
func (*CreateDropRuleDefault) IsClientError ¶
func (o *CreateDropRuleDefault) IsClientError() bool
IsClientError returns true when this create drop rule default response has a 4xx status code
func (*CreateDropRuleDefault) IsCode ¶
func (o *CreateDropRuleDefault) IsCode(code int) bool
IsCode returns true when this create drop rule default response a status code equal to that given
func (*CreateDropRuleDefault) IsRedirect ¶
func (o *CreateDropRuleDefault) IsRedirect() bool
IsRedirect returns true when this create drop rule default response has a 3xx status code
func (*CreateDropRuleDefault) IsServerError ¶
func (o *CreateDropRuleDefault) IsServerError() bool
IsServerError returns true when this create drop rule default response has a 5xx status code
func (*CreateDropRuleDefault) IsSuccess ¶
func (o *CreateDropRuleDefault) IsSuccess() bool
IsSuccess returns true when this create drop rule default response has a 2xx status code
func (*CreateDropRuleDefault) String ¶
func (o *CreateDropRuleDefault) String() string
type CreateDropRuleInternalServerError ¶
CreateDropRuleInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewCreateDropRuleInternalServerError ¶
func NewCreateDropRuleInternalServerError() *CreateDropRuleInternalServerError
NewCreateDropRuleInternalServerError creates a CreateDropRuleInternalServerError with default headers values
func (*CreateDropRuleInternalServerError) Code ¶
func (o *CreateDropRuleInternalServerError) Code() int
Code gets the status code for the create drop rule internal server error response
func (*CreateDropRuleInternalServerError) Error ¶
func (o *CreateDropRuleInternalServerError) Error() string
func (*CreateDropRuleInternalServerError) GetPayload ¶
func (o *CreateDropRuleInternalServerError) GetPayload() *models.APIError
func (*CreateDropRuleInternalServerError) IsClientError ¶
func (o *CreateDropRuleInternalServerError) IsClientError() bool
IsClientError returns true when this create drop rule internal server error response has a 4xx status code
func (*CreateDropRuleInternalServerError) IsCode ¶
func (o *CreateDropRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this create drop rule internal server error response a status code equal to that given
func (*CreateDropRuleInternalServerError) IsRedirect ¶
func (o *CreateDropRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this create drop rule internal server error response has a 3xx status code
func (*CreateDropRuleInternalServerError) IsServerError ¶
func (o *CreateDropRuleInternalServerError) IsServerError() bool
IsServerError returns true when this create drop rule internal server error response has a 5xx status code
func (*CreateDropRuleInternalServerError) IsSuccess ¶
func (o *CreateDropRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this create drop rule internal server error response has a 2xx status code
func (*CreateDropRuleInternalServerError) String ¶
func (o *CreateDropRuleInternalServerError) String() string
type CreateDropRuleOK ¶
type CreateDropRuleOK struct {
Payload *models.Configv1CreateDropRuleResponse
}
CreateDropRuleOK describes a response with status code 200, with default header values.
A successful response containing the created DropRule.
func NewCreateDropRuleOK ¶
func NewCreateDropRuleOK() *CreateDropRuleOK
NewCreateDropRuleOK creates a CreateDropRuleOK with default headers values
func (*CreateDropRuleOK) Code ¶
func (o *CreateDropRuleOK) Code() int
Code gets the status code for the create drop rule o k response
func (*CreateDropRuleOK) Error ¶
func (o *CreateDropRuleOK) Error() string
func (*CreateDropRuleOK) GetPayload ¶
func (o *CreateDropRuleOK) GetPayload() *models.Configv1CreateDropRuleResponse
func (*CreateDropRuleOK) IsClientError ¶
func (o *CreateDropRuleOK) IsClientError() bool
IsClientError returns true when this create drop rule o k response has a 4xx status code
func (*CreateDropRuleOK) IsCode ¶
func (o *CreateDropRuleOK) IsCode(code int) bool
IsCode returns true when this create drop rule o k response a status code equal to that given
func (*CreateDropRuleOK) IsRedirect ¶
func (o *CreateDropRuleOK) IsRedirect() bool
IsRedirect returns true when this create drop rule o k response has a 3xx status code
func (*CreateDropRuleOK) IsServerError ¶
func (o *CreateDropRuleOK) IsServerError() bool
IsServerError returns true when this create drop rule o k response has a 5xx status code
func (*CreateDropRuleOK) IsSuccess ¶
func (o *CreateDropRuleOK) IsSuccess() bool
IsSuccess returns true when this create drop rule o k response has a 2xx status code
func (*CreateDropRuleOK) String ¶
func (o *CreateDropRuleOK) String() string
type CreateDropRuleParams ¶
type CreateDropRuleParams struct { // Body. Body *models.Configv1CreateDropRuleRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateDropRuleParams contains all the parameters to send to the API endpoint
for the create drop rule operation. Typically these are written to a http.Request.
func NewCreateDropRuleParams ¶
func NewCreateDropRuleParams() *CreateDropRuleParams
NewCreateDropRuleParams creates a new CreateDropRuleParams 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 NewCreateDropRuleParamsWithContext ¶
func NewCreateDropRuleParamsWithContext(ctx context.Context) *CreateDropRuleParams
NewCreateDropRuleParamsWithContext creates a new CreateDropRuleParams object with the ability to set a context for a request.
func NewCreateDropRuleParamsWithHTTPClient ¶
func NewCreateDropRuleParamsWithHTTPClient(client *http.Client) *CreateDropRuleParams
NewCreateDropRuleParamsWithHTTPClient creates a new CreateDropRuleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateDropRuleParamsWithTimeout ¶
func NewCreateDropRuleParamsWithTimeout(timeout time.Duration) *CreateDropRuleParams
NewCreateDropRuleParamsWithTimeout creates a new CreateDropRuleParams object with the ability to set a timeout on a request.
func (*CreateDropRuleParams) SetBody ¶
func (o *CreateDropRuleParams) SetBody(body *models.Configv1CreateDropRuleRequest)
SetBody adds the body to the create drop rule params
func (*CreateDropRuleParams) SetContext ¶
func (o *CreateDropRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the create drop rule params
func (*CreateDropRuleParams) SetDefaults ¶
func (o *CreateDropRuleParams) SetDefaults()
SetDefaults hydrates default values in the create drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDropRuleParams) SetHTTPClient ¶
func (o *CreateDropRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create drop rule params
func (*CreateDropRuleParams) SetTimeout ¶
func (o *CreateDropRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create drop rule params
func (*CreateDropRuleParams) WithBody ¶
func (o *CreateDropRuleParams) WithBody(body *models.Configv1CreateDropRuleRequest) *CreateDropRuleParams
WithBody adds the body to the create drop rule params
func (*CreateDropRuleParams) WithContext ¶
func (o *CreateDropRuleParams) WithContext(ctx context.Context) *CreateDropRuleParams
WithContext adds the context to the create drop rule params
func (*CreateDropRuleParams) WithDefaults ¶
func (o *CreateDropRuleParams) WithDefaults() *CreateDropRuleParams
WithDefaults hydrates default values in the create drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDropRuleParams) WithHTTPClient ¶
func (o *CreateDropRuleParams) WithHTTPClient(client *http.Client) *CreateDropRuleParams
WithHTTPClient adds the HTTPClient to the create drop rule params
func (*CreateDropRuleParams) WithTimeout ¶
func (o *CreateDropRuleParams) WithTimeout(timeout time.Duration) *CreateDropRuleParams
WithTimeout adds the timeout to the create drop rule params
func (*CreateDropRuleParams) WriteToRequest ¶
func (o *CreateDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateDropRuleReader ¶
type CreateDropRuleReader struct {
// contains filtered or unexported fields
}
CreateDropRuleReader is a Reader for the CreateDropRule structure.
func (*CreateDropRuleReader) ReadResponse ¶
func (o *CreateDropRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteDropRuleBadRequest ¶
DeleteDropRuleBadRequest describes a response with status code 400, with default header values.
Cannot delete the DropRule because it is in use.
func NewDeleteDropRuleBadRequest ¶
func NewDeleteDropRuleBadRequest() *DeleteDropRuleBadRequest
NewDeleteDropRuleBadRequest creates a DeleteDropRuleBadRequest with default headers values
func (*DeleteDropRuleBadRequest) Code ¶
func (o *DeleteDropRuleBadRequest) Code() int
Code gets the status code for the delete drop rule bad request response
func (*DeleteDropRuleBadRequest) Error ¶
func (o *DeleteDropRuleBadRequest) Error() string
func (*DeleteDropRuleBadRequest) GetPayload ¶
func (o *DeleteDropRuleBadRequest) GetPayload() *models.APIError
func (*DeleteDropRuleBadRequest) IsClientError ¶
func (o *DeleteDropRuleBadRequest) IsClientError() bool
IsClientError returns true when this delete drop rule bad request response has a 4xx status code
func (*DeleteDropRuleBadRequest) IsCode ¶
func (o *DeleteDropRuleBadRequest) IsCode(code int) bool
IsCode returns true when this delete drop rule bad request response a status code equal to that given
func (*DeleteDropRuleBadRequest) IsRedirect ¶
func (o *DeleteDropRuleBadRequest) IsRedirect() bool
IsRedirect returns true when this delete drop rule bad request response has a 3xx status code
func (*DeleteDropRuleBadRequest) IsServerError ¶
func (o *DeleteDropRuleBadRequest) IsServerError() bool
IsServerError returns true when this delete drop rule bad request response has a 5xx status code
func (*DeleteDropRuleBadRequest) IsSuccess ¶
func (o *DeleteDropRuleBadRequest) IsSuccess() bool
IsSuccess returns true when this delete drop rule bad request response has a 2xx status code
func (*DeleteDropRuleBadRequest) String ¶
func (o *DeleteDropRuleBadRequest) String() string
type DeleteDropRuleDefault ¶
type DeleteDropRuleDefault struct { Payload models.GenericError // contains filtered or unexported fields }
DeleteDropRuleDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewDeleteDropRuleDefault ¶
func NewDeleteDropRuleDefault(code int) *DeleteDropRuleDefault
NewDeleteDropRuleDefault creates a DeleteDropRuleDefault with default headers values
func (*DeleteDropRuleDefault) Code ¶
func (o *DeleteDropRuleDefault) Code() int
Code gets the status code for the delete drop rule default response
func (*DeleteDropRuleDefault) Error ¶
func (o *DeleteDropRuleDefault) Error() string
func (*DeleteDropRuleDefault) GetPayload ¶
func (o *DeleteDropRuleDefault) GetPayload() models.GenericError
func (*DeleteDropRuleDefault) IsClientError ¶
func (o *DeleteDropRuleDefault) IsClientError() bool
IsClientError returns true when this delete drop rule default response has a 4xx status code
func (*DeleteDropRuleDefault) IsCode ¶
func (o *DeleteDropRuleDefault) IsCode(code int) bool
IsCode returns true when this delete drop rule default response a status code equal to that given
func (*DeleteDropRuleDefault) IsRedirect ¶
func (o *DeleteDropRuleDefault) IsRedirect() bool
IsRedirect returns true when this delete drop rule default response has a 3xx status code
func (*DeleteDropRuleDefault) IsServerError ¶
func (o *DeleteDropRuleDefault) IsServerError() bool
IsServerError returns true when this delete drop rule default response has a 5xx status code
func (*DeleteDropRuleDefault) IsSuccess ¶
func (o *DeleteDropRuleDefault) IsSuccess() bool
IsSuccess returns true when this delete drop rule default response has a 2xx status code
func (*DeleteDropRuleDefault) String ¶
func (o *DeleteDropRuleDefault) String() string
type DeleteDropRuleInternalServerError ¶
DeleteDropRuleInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewDeleteDropRuleInternalServerError ¶
func NewDeleteDropRuleInternalServerError() *DeleteDropRuleInternalServerError
NewDeleteDropRuleInternalServerError creates a DeleteDropRuleInternalServerError with default headers values
func (*DeleteDropRuleInternalServerError) Code ¶
func (o *DeleteDropRuleInternalServerError) Code() int
Code gets the status code for the delete drop rule internal server error response
func (*DeleteDropRuleInternalServerError) Error ¶
func (o *DeleteDropRuleInternalServerError) Error() string
func (*DeleteDropRuleInternalServerError) GetPayload ¶
func (o *DeleteDropRuleInternalServerError) GetPayload() *models.APIError
func (*DeleteDropRuleInternalServerError) IsClientError ¶
func (o *DeleteDropRuleInternalServerError) IsClientError() bool
IsClientError returns true when this delete drop rule internal server error response has a 4xx status code
func (*DeleteDropRuleInternalServerError) IsCode ¶
func (o *DeleteDropRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this delete drop rule internal server error response a status code equal to that given
func (*DeleteDropRuleInternalServerError) IsRedirect ¶
func (o *DeleteDropRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete drop rule internal server error response has a 3xx status code
func (*DeleteDropRuleInternalServerError) IsServerError ¶
func (o *DeleteDropRuleInternalServerError) IsServerError() bool
IsServerError returns true when this delete drop rule internal server error response has a 5xx status code
func (*DeleteDropRuleInternalServerError) IsSuccess ¶
func (o *DeleteDropRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete drop rule internal server error response has a 2xx status code
func (*DeleteDropRuleInternalServerError) String ¶
func (o *DeleteDropRuleInternalServerError) String() string
type DeleteDropRuleNotFound ¶
DeleteDropRuleNotFound describes a response with status code 404, with default header values.
Cannot delete the DropRule because the slug does not exist.
func NewDeleteDropRuleNotFound ¶
func NewDeleteDropRuleNotFound() *DeleteDropRuleNotFound
NewDeleteDropRuleNotFound creates a DeleteDropRuleNotFound with default headers values
func (*DeleteDropRuleNotFound) Code ¶
func (o *DeleteDropRuleNotFound) Code() int
Code gets the status code for the delete drop rule not found response
func (*DeleteDropRuleNotFound) Error ¶
func (o *DeleteDropRuleNotFound) Error() string
func (*DeleteDropRuleNotFound) GetPayload ¶
func (o *DeleteDropRuleNotFound) GetPayload() *models.APIError
func (*DeleteDropRuleNotFound) IsClientError ¶
func (o *DeleteDropRuleNotFound) IsClientError() bool
IsClientError returns true when this delete drop rule not found response has a 4xx status code
func (*DeleteDropRuleNotFound) IsCode ¶
func (o *DeleteDropRuleNotFound) IsCode(code int) bool
IsCode returns true when this delete drop rule not found response a status code equal to that given
func (*DeleteDropRuleNotFound) IsRedirect ¶
func (o *DeleteDropRuleNotFound) IsRedirect() bool
IsRedirect returns true when this delete drop rule not found response has a 3xx status code
func (*DeleteDropRuleNotFound) IsServerError ¶
func (o *DeleteDropRuleNotFound) IsServerError() bool
IsServerError returns true when this delete drop rule not found response has a 5xx status code
func (*DeleteDropRuleNotFound) IsSuccess ¶
func (o *DeleteDropRuleNotFound) IsSuccess() bool
IsSuccess returns true when this delete drop rule not found response has a 2xx status code
func (*DeleteDropRuleNotFound) String ¶
func (o *DeleteDropRuleNotFound) String() string
type DeleteDropRuleOK ¶
type DeleteDropRuleOK struct {
Payload models.Configv1DeleteDropRuleResponse
}
DeleteDropRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteDropRuleOK ¶
func NewDeleteDropRuleOK() *DeleteDropRuleOK
NewDeleteDropRuleOK creates a DeleteDropRuleOK with default headers values
func (*DeleteDropRuleOK) Code ¶
func (o *DeleteDropRuleOK) Code() int
Code gets the status code for the delete drop rule o k response
func (*DeleteDropRuleOK) Error ¶
func (o *DeleteDropRuleOK) Error() string
func (*DeleteDropRuleOK) GetPayload ¶
func (o *DeleteDropRuleOK) GetPayload() models.Configv1DeleteDropRuleResponse
func (*DeleteDropRuleOK) IsClientError ¶
func (o *DeleteDropRuleOK) IsClientError() bool
IsClientError returns true when this delete drop rule o k response has a 4xx status code
func (*DeleteDropRuleOK) IsCode ¶
func (o *DeleteDropRuleOK) IsCode(code int) bool
IsCode returns true when this delete drop rule o k response a status code equal to that given
func (*DeleteDropRuleOK) IsRedirect ¶
func (o *DeleteDropRuleOK) IsRedirect() bool
IsRedirect returns true when this delete drop rule o k response has a 3xx status code
func (*DeleteDropRuleOK) IsServerError ¶
func (o *DeleteDropRuleOK) IsServerError() bool
IsServerError returns true when this delete drop rule o k response has a 5xx status code
func (*DeleteDropRuleOK) IsSuccess ¶
func (o *DeleteDropRuleOK) IsSuccess() bool
IsSuccess returns true when this delete drop rule o k response has a 2xx status code
func (*DeleteDropRuleOK) String ¶
func (o *DeleteDropRuleOK) String() string
type DeleteDropRuleParams ¶
type DeleteDropRuleParams struct { // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteDropRuleParams contains all the parameters to send to the API endpoint
for the delete drop rule operation. Typically these are written to a http.Request.
func NewDeleteDropRuleParams ¶
func NewDeleteDropRuleParams() *DeleteDropRuleParams
NewDeleteDropRuleParams creates a new DeleteDropRuleParams 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 NewDeleteDropRuleParamsWithContext ¶
func NewDeleteDropRuleParamsWithContext(ctx context.Context) *DeleteDropRuleParams
NewDeleteDropRuleParamsWithContext creates a new DeleteDropRuleParams object with the ability to set a context for a request.
func NewDeleteDropRuleParamsWithHTTPClient ¶
func NewDeleteDropRuleParamsWithHTTPClient(client *http.Client) *DeleteDropRuleParams
NewDeleteDropRuleParamsWithHTTPClient creates a new DeleteDropRuleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteDropRuleParamsWithTimeout ¶
func NewDeleteDropRuleParamsWithTimeout(timeout time.Duration) *DeleteDropRuleParams
NewDeleteDropRuleParamsWithTimeout creates a new DeleteDropRuleParams object with the ability to set a timeout on a request.
func (*DeleteDropRuleParams) SetContext ¶
func (o *DeleteDropRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete drop rule params
func (*DeleteDropRuleParams) SetDefaults ¶
func (o *DeleteDropRuleParams) SetDefaults()
SetDefaults hydrates default values in the delete drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteDropRuleParams) SetHTTPClient ¶
func (o *DeleteDropRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete drop rule params
func (*DeleteDropRuleParams) SetSlug ¶
func (o *DeleteDropRuleParams) SetSlug(slug string)
SetSlug adds the slug to the delete drop rule params
func (*DeleteDropRuleParams) SetTimeout ¶
func (o *DeleteDropRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete drop rule params
func (*DeleteDropRuleParams) WithContext ¶
func (o *DeleteDropRuleParams) WithContext(ctx context.Context) *DeleteDropRuleParams
WithContext adds the context to the delete drop rule params
func (*DeleteDropRuleParams) WithDefaults ¶
func (o *DeleteDropRuleParams) WithDefaults() *DeleteDropRuleParams
WithDefaults hydrates default values in the delete drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteDropRuleParams) WithHTTPClient ¶
func (o *DeleteDropRuleParams) WithHTTPClient(client *http.Client) *DeleteDropRuleParams
WithHTTPClient adds the HTTPClient to the delete drop rule params
func (*DeleteDropRuleParams) WithSlug ¶
func (o *DeleteDropRuleParams) WithSlug(slug string) *DeleteDropRuleParams
WithSlug adds the slug to the delete drop rule params
func (*DeleteDropRuleParams) WithTimeout ¶
func (o *DeleteDropRuleParams) WithTimeout(timeout time.Duration) *DeleteDropRuleParams
WithTimeout adds the timeout to the delete drop rule params
func (*DeleteDropRuleParams) WriteToRequest ¶
func (o *DeleteDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteDropRuleReader ¶
type DeleteDropRuleReader struct {
// contains filtered or unexported fields
}
DeleteDropRuleReader is a Reader for the DeleteDropRule structure.
func (*DeleteDropRuleReader) ReadResponse ¶
func (o *DeleteDropRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListDropRulesDefault ¶
type ListDropRulesDefault struct { Payload models.GenericError // contains filtered or unexported fields }
ListDropRulesDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewListDropRulesDefault ¶
func NewListDropRulesDefault(code int) *ListDropRulesDefault
NewListDropRulesDefault creates a ListDropRulesDefault with default headers values
func (*ListDropRulesDefault) Code ¶
func (o *ListDropRulesDefault) Code() int
Code gets the status code for the list drop rules default response
func (*ListDropRulesDefault) Error ¶
func (o *ListDropRulesDefault) Error() string
func (*ListDropRulesDefault) GetPayload ¶
func (o *ListDropRulesDefault) GetPayload() models.GenericError
func (*ListDropRulesDefault) IsClientError ¶
func (o *ListDropRulesDefault) IsClientError() bool
IsClientError returns true when this list drop rules default response has a 4xx status code
func (*ListDropRulesDefault) IsCode ¶
func (o *ListDropRulesDefault) IsCode(code int) bool
IsCode returns true when this list drop rules default response a status code equal to that given
func (*ListDropRulesDefault) IsRedirect ¶
func (o *ListDropRulesDefault) IsRedirect() bool
IsRedirect returns true when this list drop rules default response has a 3xx status code
func (*ListDropRulesDefault) IsServerError ¶
func (o *ListDropRulesDefault) IsServerError() bool
IsServerError returns true when this list drop rules default response has a 5xx status code
func (*ListDropRulesDefault) IsSuccess ¶
func (o *ListDropRulesDefault) IsSuccess() bool
IsSuccess returns true when this list drop rules default response has a 2xx status code
func (*ListDropRulesDefault) String ¶
func (o *ListDropRulesDefault) String() string
type ListDropRulesInternalServerError ¶
ListDropRulesInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewListDropRulesInternalServerError ¶
func NewListDropRulesInternalServerError() *ListDropRulesInternalServerError
NewListDropRulesInternalServerError creates a ListDropRulesInternalServerError with default headers values
func (*ListDropRulesInternalServerError) Code ¶
func (o *ListDropRulesInternalServerError) Code() int
Code gets the status code for the list drop rules internal server error response
func (*ListDropRulesInternalServerError) Error ¶
func (o *ListDropRulesInternalServerError) Error() string
func (*ListDropRulesInternalServerError) GetPayload ¶
func (o *ListDropRulesInternalServerError) GetPayload() *models.APIError
func (*ListDropRulesInternalServerError) IsClientError ¶
func (o *ListDropRulesInternalServerError) IsClientError() bool
IsClientError returns true when this list drop rules internal server error response has a 4xx status code
func (*ListDropRulesInternalServerError) IsCode ¶
func (o *ListDropRulesInternalServerError) IsCode(code int) bool
IsCode returns true when this list drop rules internal server error response a status code equal to that given
func (*ListDropRulesInternalServerError) IsRedirect ¶
func (o *ListDropRulesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list drop rules internal server error response has a 3xx status code
func (*ListDropRulesInternalServerError) IsServerError ¶
func (o *ListDropRulesInternalServerError) IsServerError() bool
IsServerError returns true when this list drop rules internal server error response has a 5xx status code
func (*ListDropRulesInternalServerError) IsSuccess ¶
func (o *ListDropRulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list drop rules internal server error response has a 2xx status code
func (*ListDropRulesInternalServerError) String ¶
func (o *ListDropRulesInternalServerError) String() string
type ListDropRulesOK ¶
type ListDropRulesOK struct {
Payload *models.Configv1ListDropRulesResponse
}
ListDropRulesOK describes a response with status code 200, with default header values.
A successful response.
func NewListDropRulesOK ¶
func NewListDropRulesOK() *ListDropRulesOK
NewListDropRulesOK creates a ListDropRulesOK with default headers values
func (*ListDropRulesOK) Code ¶
func (o *ListDropRulesOK) Code() int
Code gets the status code for the list drop rules o k response
func (*ListDropRulesOK) Error ¶
func (o *ListDropRulesOK) Error() string
func (*ListDropRulesOK) GetPayload ¶
func (o *ListDropRulesOK) GetPayload() *models.Configv1ListDropRulesResponse
func (*ListDropRulesOK) IsClientError ¶
func (o *ListDropRulesOK) IsClientError() bool
IsClientError returns true when this list drop rules o k response has a 4xx status code
func (*ListDropRulesOK) IsCode ¶
func (o *ListDropRulesOK) IsCode(code int) bool
IsCode returns true when this list drop rules o k response a status code equal to that given
func (*ListDropRulesOK) IsRedirect ¶
func (o *ListDropRulesOK) IsRedirect() bool
IsRedirect returns true when this list drop rules o k response has a 3xx status code
func (*ListDropRulesOK) IsServerError ¶
func (o *ListDropRulesOK) IsServerError() bool
IsServerError returns true when this list drop rules o k response has a 5xx status code
func (*ListDropRulesOK) IsSuccess ¶
func (o *ListDropRulesOK) IsSuccess() bool
IsSuccess returns true when this list drop rules o k response has a 2xx status code
func (*ListDropRulesOK) String ¶
func (o *ListDropRulesOK) String() string
type ListDropRulesParams ¶
type ListDropRulesParams struct { /* Names. Filters results by name, where any DropRule with a matching name in the given list (and matches all other filters) is returned. */ Names []string /* PageMaxSize. Page size preference (i.e. how many items are returned in the next page). If zero, the server will use a default. Regardless of what size is given, clients must never assume how many items will be returned. Format: int64 */ PageMaxSize *int64 /* PageToken. Opaque page token identifying which page to request. An empty token identifies the first page. */ PageToken *string /* Slugs. Filters results by slug, where any DropRule with a matching slug in the given list (and matches all other filters) is returned. */ Slugs []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDropRulesParams contains all the parameters to send to the API endpoint
for the list drop rules operation. Typically these are written to a http.Request.
func NewListDropRulesParams ¶
func NewListDropRulesParams() *ListDropRulesParams
NewListDropRulesParams creates a new ListDropRulesParams 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 NewListDropRulesParamsWithContext ¶
func NewListDropRulesParamsWithContext(ctx context.Context) *ListDropRulesParams
NewListDropRulesParamsWithContext creates a new ListDropRulesParams object with the ability to set a context for a request.
func NewListDropRulesParamsWithHTTPClient ¶
func NewListDropRulesParamsWithHTTPClient(client *http.Client) *ListDropRulesParams
NewListDropRulesParamsWithHTTPClient creates a new ListDropRulesParams object with the ability to set a custom HTTPClient for a request.
func NewListDropRulesParamsWithTimeout ¶
func NewListDropRulesParamsWithTimeout(timeout time.Duration) *ListDropRulesParams
NewListDropRulesParamsWithTimeout creates a new ListDropRulesParams object with the ability to set a timeout on a request.
func (*ListDropRulesParams) SetContext ¶
func (o *ListDropRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the list drop rules params
func (*ListDropRulesParams) SetDefaults ¶
func (o *ListDropRulesParams) SetDefaults()
SetDefaults hydrates default values in the list drop rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListDropRulesParams) SetHTTPClient ¶
func (o *ListDropRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list drop rules params
func (*ListDropRulesParams) SetNames ¶
func (o *ListDropRulesParams) SetNames(names []string)
SetNames adds the names to the list drop rules params
func (*ListDropRulesParams) SetPageMaxSize ¶
func (o *ListDropRulesParams) SetPageMaxSize(pageMaxSize *int64)
SetPageMaxSize adds the pageMaxSize to the list drop rules params
func (*ListDropRulesParams) SetPageToken ¶
func (o *ListDropRulesParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the list drop rules params
func (*ListDropRulesParams) SetSlugs ¶
func (o *ListDropRulesParams) SetSlugs(slugs []string)
SetSlugs adds the slugs to the list drop rules params
func (*ListDropRulesParams) SetTimeout ¶
func (o *ListDropRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list drop rules params
func (*ListDropRulesParams) WithContext ¶
func (o *ListDropRulesParams) WithContext(ctx context.Context) *ListDropRulesParams
WithContext adds the context to the list drop rules params
func (*ListDropRulesParams) WithDefaults ¶
func (o *ListDropRulesParams) WithDefaults() *ListDropRulesParams
WithDefaults hydrates default values in the list drop rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListDropRulesParams) WithHTTPClient ¶
func (o *ListDropRulesParams) WithHTTPClient(client *http.Client) *ListDropRulesParams
WithHTTPClient adds the HTTPClient to the list drop rules params
func (*ListDropRulesParams) WithNames ¶
func (o *ListDropRulesParams) WithNames(names []string) *ListDropRulesParams
WithNames adds the names to the list drop rules params
func (*ListDropRulesParams) WithPageMaxSize ¶
func (o *ListDropRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListDropRulesParams
WithPageMaxSize adds the pageMaxSize to the list drop rules params
func (*ListDropRulesParams) WithPageToken ¶
func (o *ListDropRulesParams) WithPageToken(pageToken *string) *ListDropRulesParams
WithPageToken adds the pageToken to the list drop rules params
func (*ListDropRulesParams) WithSlugs ¶
func (o *ListDropRulesParams) WithSlugs(slugs []string) *ListDropRulesParams
WithSlugs adds the slugs to the list drop rules params
func (*ListDropRulesParams) WithTimeout ¶
func (o *ListDropRulesParams) WithTimeout(timeout time.Duration) *ListDropRulesParams
WithTimeout adds the timeout to the list drop rules params
func (*ListDropRulesParams) WriteToRequest ¶
func (o *ListDropRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDropRulesReader ¶
type ListDropRulesReader struct {
// contains filtered or unexported fields
}
ListDropRulesReader is a Reader for the ListDropRules structure.
func (*ListDropRulesReader) ReadResponse ¶
func (o *ListDropRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReadDropRuleDefault ¶
type ReadDropRuleDefault struct { Payload models.GenericError // contains filtered or unexported fields }
ReadDropRuleDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewReadDropRuleDefault ¶
func NewReadDropRuleDefault(code int) *ReadDropRuleDefault
NewReadDropRuleDefault creates a ReadDropRuleDefault with default headers values
func (*ReadDropRuleDefault) Code ¶
func (o *ReadDropRuleDefault) Code() int
Code gets the status code for the read drop rule default response
func (*ReadDropRuleDefault) Error ¶
func (o *ReadDropRuleDefault) Error() string
func (*ReadDropRuleDefault) GetPayload ¶
func (o *ReadDropRuleDefault) GetPayload() models.GenericError
func (*ReadDropRuleDefault) IsClientError ¶
func (o *ReadDropRuleDefault) IsClientError() bool
IsClientError returns true when this read drop rule default response has a 4xx status code
func (*ReadDropRuleDefault) IsCode ¶
func (o *ReadDropRuleDefault) IsCode(code int) bool
IsCode returns true when this read drop rule default response a status code equal to that given
func (*ReadDropRuleDefault) IsRedirect ¶
func (o *ReadDropRuleDefault) IsRedirect() bool
IsRedirect returns true when this read drop rule default response has a 3xx status code
func (*ReadDropRuleDefault) IsServerError ¶
func (o *ReadDropRuleDefault) IsServerError() bool
IsServerError returns true when this read drop rule default response has a 5xx status code
func (*ReadDropRuleDefault) IsSuccess ¶
func (o *ReadDropRuleDefault) IsSuccess() bool
IsSuccess returns true when this read drop rule default response has a 2xx status code
func (*ReadDropRuleDefault) String ¶
func (o *ReadDropRuleDefault) String() string
type ReadDropRuleInternalServerError ¶
ReadDropRuleInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewReadDropRuleInternalServerError ¶
func NewReadDropRuleInternalServerError() *ReadDropRuleInternalServerError
NewReadDropRuleInternalServerError creates a ReadDropRuleInternalServerError with default headers values
func (*ReadDropRuleInternalServerError) Code ¶
func (o *ReadDropRuleInternalServerError) Code() int
Code gets the status code for the read drop rule internal server error response
func (*ReadDropRuleInternalServerError) Error ¶
func (o *ReadDropRuleInternalServerError) Error() string
func (*ReadDropRuleInternalServerError) GetPayload ¶
func (o *ReadDropRuleInternalServerError) GetPayload() *models.APIError
func (*ReadDropRuleInternalServerError) IsClientError ¶
func (o *ReadDropRuleInternalServerError) IsClientError() bool
IsClientError returns true when this read drop rule internal server error response has a 4xx status code
func (*ReadDropRuleInternalServerError) IsCode ¶
func (o *ReadDropRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this read drop rule internal server error response a status code equal to that given
func (*ReadDropRuleInternalServerError) IsRedirect ¶
func (o *ReadDropRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this read drop rule internal server error response has a 3xx status code
func (*ReadDropRuleInternalServerError) IsServerError ¶
func (o *ReadDropRuleInternalServerError) IsServerError() bool
IsServerError returns true when this read drop rule internal server error response has a 5xx status code
func (*ReadDropRuleInternalServerError) IsSuccess ¶
func (o *ReadDropRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this read drop rule internal server error response has a 2xx status code
func (*ReadDropRuleInternalServerError) String ¶
func (o *ReadDropRuleInternalServerError) String() string
type ReadDropRuleNotFound ¶
ReadDropRuleNotFound describes a response with status code 404, with default header values.
Cannot read the DropRule because the slug does not exist.
func NewReadDropRuleNotFound ¶
func NewReadDropRuleNotFound() *ReadDropRuleNotFound
NewReadDropRuleNotFound creates a ReadDropRuleNotFound with default headers values
func (*ReadDropRuleNotFound) Code ¶
func (o *ReadDropRuleNotFound) Code() int
Code gets the status code for the read drop rule not found response
func (*ReadDropRuleNotFound) Error ¶
func (o *ReadDropRuleNotFound) Error() string
func (*ReadDropRuleNotFound) GetPayload ¶
func (o *ReadDropRuleNotFound) GetPayload() *models.APIError
func (*ReadDropRuleNotFound) IsClientError ¶
func (o *ReadDropRuleNotFound) IsClientError() bool
IsClientError returns true when this read drop rule not found response has a 4xx status code
func (*ReadDropRuleNotFound) IsCode ¶
func (o *ReadDropRuleNotFound) IsCode(code int) bool
IsCode returns true when this read drop rule not found response a status code equal to that given
func (*ReadDropRuleNotFound) IsRedirect ¶
func (o *ReadDropRuleNotFound) IsRedirect() bool
IsRedirect returns true when this read drop rule not found response has a 3xx status code
func (*ReadDropRuleNotFound) IsServerError ¶
func (o *ReadDropRuleNotFound) IsServerError() bool
IsServerError returns true when this read drop rule not found response has a 5xx status code
func (*ReadDropRuleNotFound) IsSuccess ¶
func (o *ReadDropRuleNotFound) IsSuccess() bool
IsSuccess returns true when this read drop rule not found response has a 2xx status code
func (*ReadDropRuleNotFound) String ¶
func (o *ReadDropRuleNotFound) String() string
type ReadDropRuleOK ¶
type ReadDropRuleOK struct {
Payload *models.Configv1ReadDropRuleResponse
}
ReadDropRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewReadDropRuleOK ¶
func NewReadDropRuleOK() *ReadDropRuleOK
NewReadDropRuleOK creates a ReadDropRuleOK with default headers values
func (*ReadDropRuleOK) Code ¶
func (o *ReadDropRuleOK) Code() int
Code gets the status code for the read drop rule o k response
func (*ReadDropRuleOK) Error ¶
func (o *ReadDropRuleOK) Error() string
func (*ReadDropRuleOK) GetPayload ¶
func (o *ReadDropRuleOK) GetPayload() *models.Configv1ReadDropRuleResponse
func (*ReadDropRuleOK) IsClientError ¶
func (o *ReadDropRuleOK) IsClientError() bool
IsClientError returns true when this read drop rule o k response has a 4xx status code
func (*ReadDropRuleOK) IsCode ¶
func (o *ReadDropRuleOK) IsCode(code int) bool
IsCode returns true when this read drop rule o k response a status code equal to that given
func (*ReadDropRuleOK) IsRedirect ¶
func (o *ReadDropRuleOK) IsRedirect() bool
IsRedirect returns true when this read drop rule o k response has a 3xx status code
func (*ReadDropRuleOK) IsServerError ¶
func (o *ReadDropRuleOK) IsServerError() bool
IsServerError returns true when this read drop rule o k response has a 5xx status code
func (*ReadDropRuleOK) IsSuccess ¶
func (o *ReadDropRuleOK) IsSuccess() bool
IsSuccess returns true when this read drop rule o k response has a 2xx status code
func (*ReadDropRuleOK) String ¶
func (o *ReadDropRuleOK) String() string
type ReadDropRuleParams ¶
type ReadDropRuleParams struct { // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReadDropRuleParams contains all the parameters to send to the API endpoint
for the read drop rule operation. Typically these are written to a http.Request.
func NewReadDropRuleParams ¶
func NewReadDropRuleParams() *ReadDropRuleParams
NewReadDropRuleParams creates a new ReadDropRuleParams 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 NewReadDropRuleParamsWithContext ¶
func NewReadDropRuleParamsWithContext(ctx context.Context) *ReadDropRuleParams
NewReadDropRuleParamsWithContext creates a new ReadDropRuleParams object with the ability to set a context for a request.
func NewReadDropRuleParamsWithHTTPClient ¶
func NewReadDropRuleParamsWithHTTPClient(client *http.Client) *ReadDropRuleParams
NewReadDropRuleParamsWithHTTPClient creates a new ReadDropRuleParams object with the ability to set a custom HTTPClient for a request.
func NewReadDropRuleParamsWithTimeout ¶
func NewReadDropRuleParamsWithTimeout(timeout time.Duration) *ReadDropRuleParams
NewReadDropRuleParamsWithTimeout creates a new ReadDropRuleParams object with the ability to set a timeout on a request.
func (*ReadDropRuleParams) SetContext ¶
func (o *ReadDropRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the read drop rule params
func (*ReadDropRuleParams) SetDefaults ¶
func (o *ReadDropRuleParams) SetDefaults()
SetDefaults hydrates default values in the read drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReadDropRuleParams) SetHTTPClient ¶
func (o *ReadDropRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the read drop rule params
func (*ReadDropRuleParams) SetSlug ¶
func (o *ReadDropRuleParams) SetSlug(slug string)
SetSlug adds the slug to the read drop rule params
func (*ReadDropRuleParams) SetTimeout ¶
func (o *ReadDropRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the read drop rule params
func (*ReadDropRuleParams) WithContext ¶
func (o *ReadDropRuleParams) WithContext(ctx context.Context) *ReadDropRuleParams
WithContext adds the context to the read drop rule params
func (*ReadDropRuleParams) WithDefaults ¶
func (o *ReadDropRuleParams) WithDefaults() *ReadDropRuleParams
WithDefaults hydrates default values in the read drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*ReadDropRuleParams) WithHTTPClient ¶
func (o *ReadDropRuleParams) WithHTTPClient(client *http.Client) *ReadDropRuleParams
WithHTTPClient adds the HTTPClient to the read drop rule params
func (*ReadDropRuleParams) WithSlug ¶
func (o *ReadDropRuleParams) WithSlug(slug string) *ReadDropRuleParams
WithSlug adds the slug to the read drop rule params
func (*ReadDropRuleParams) WithTimeout ¶
func (o *ReadDropRuleParams) WithTimeout(timeout time.Duration) *ReadDropRuleParams
WithTimeout adds the timeout to the read drop rule params
func (*ReadDropRuleParams) WriteToRequest ¶
func (o *ReadDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReadDropRuleReader ¶
type ReadDropRuleReader struct {
// contains filtered or unexported fields
}
ReadDropRuleReader is a Reader for the ReadDropRule structure.
func (*ReadDropRuleReader) ReadResponse ¶
func (o *ReadDropRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateDropRuleBadRequest ¶
UpdateDropRuleBadRequest describes a response with status code 400, with default header values.
Cannot update the DropRule because the request is invalid.
func NewUpdateDropRuleBadRequest ¶
func NewUpdateDropRuleBadRequest() *UpdateDropRuleBadRequest
NewUpdateDropRuleBadRequest creates a UpdateDropRuleBadRequest with default headers values
func (*UpdateDropRuleBadRequest) Code ¶
func (o *UpdateDropRuleBadRequest) Code() int
Code gets the status code for the update drop rule bad request response
func (*UpdateDropRuleBadRequest) Error ¶
func (o *UpdateDropRuleBadRequest) Error() string
func (*UpdateDropRuleBadRequest) GetPayload ¶
func (o *UpdateDropRuleBadRequest) GetPayload() *models.APIError
func (*UpdateDropRuleBadRequest) IsClientError ¶
func (o *UpdateDropRuleBadRequest) IsClientError() bool
IsClientError returns true when this update drop rule bad request response has a 4xx status code
func (*UpdateDropRuleBadRequest) IsCode ¶
func (o *UpdateDropRuleBadRequest) IsCode(code int) bool
IsCode returns true when this update drop rule bad request response a status code equal to that given
func (*UpdateDropRuleBadRequest) IsRedirect ¶
func (o *UpdateDropRuleBadRequest) IsRedirect() bool
IsRedirect returns true when this update drop rule bad request response has a 3xx status code
func (*UpdateDropRuleBadRequest) IsServerError ¶
func (o *UpdateDropRuleBadRequest) IsServerError() bool
IsServerError returns true when this update drop rule bad request response has a 5xx status code
func (*UpdateDropRuleBadRequest) IsSuccess ¶
func (o *UpdateDropRuleBadRequest) IsSuccess() bool
IsSuccess returns true when this update drop rule bad request response has a 2xx status code
func (*UpdateDropRuleBadRequest) String ¶
func (o *UpdateDropRuleBadRequest) String() string
type UpdateDropRuleConflict ¶
UpdateDropRuleConflict describes a response with status code 409, with default header values.
Cannot update the DropRule because there is a conflict with an existing DropRule.
func NewUpdateDropRuleConflict ¶
func NewUpdateDropRuleConflict() *UpdateDropRuleConflict
NewUpdateDropRuleConflict creates a UpdateDropRuleConflict with default headers values
func (*UpdateDropRuleConflict) Code ¶
func (o *UpdateDropRuleConflict) Code() int
Code gets the status code for the update drop rule conflict response
func (*UpdateDropRuleConflict) Error ¶
func (o *UpdateDropRuleConflict) Error() string
func (*UpdateDropRuleConflict) GetPayload ¶
func (o *UpdateDropRuleConflict) GetPayload() *models.APIError
func (*UpdateDropRuleConflict) IsClientError ¶
func (o *UpdateDropRuleConflict) IsClientError() bool
IsClientError returns true when this update drop rule conflict response has a 4xx status code
func (*UpdateDropRuleConflict) IsCode ¶
func (o *UpdateDropRuleConflict) IsCode(code int) bool
IsCode returns true when this update drop rule conflict response a status code equal to that given
func (*UpdateDropRuleConflict) IsRedirect ¶
func (o *UpdateDropRuleConflict) IsRedirect() bool
IsRedirect returns true when this update drop rule conflict response has a 3xx status code
func (*UpdateDropRuleConflict) IsServerError ¶
func (o *UpdateDropRuleConflict) IsServerError() bool
IsServerError returns true when this update drop rule conflict response has a 5xx status code
func (*UpdateDropRuleConflict) IsSuccess ¶
func (o *UpdateDropRuleConflict) IsSuccess() bool
IsSuccess returns true when this update drop rule conflict response has a 2xx status code
func (*UpdateDropRuleConflict) String ¶
func (o *UpdateDropRuleConflict) String() string
type UpdateDropRuleDefault ¶
type UpdateDropRuleDefault struct { Payload models.GenericError // contains filtered or unexported fields }
UpdateDropRuleDefault describes a response with status code -1, with default header values.
An undefined error response.
func NewUpdateDropRuleDefault ¶
func NewUpdateDropRuleDefault(code int) *UpdateDropRuleDefault
NewUpdateDropRuleDefault creates a UpdateDropRuleDefault with default headers values
func (*UpdateDropRuleDefault) Code ¶
func (o *UpdateDropRuleDefault) Code() int
Code gets the status code for the update drop rule default response
func (*UpdateDropRuleDefault) Error ¶
func (o *UpdateDropRuleDefault) Error() string
func (*UpdateDropRuleDefault) GetPayload ¶
func (o *UpdateDropRuleDefault) GetPayload() models.GenericError
func (*UpdateDropRuleDefault) IsClientError ¶
func (o *UpdateDropRuleDefault) IsClientError() bool
IsClientError returns true when this update drop rule default response has a 4xx status code
func (*UpdateDropRuleDefault) IsCode ¶
func (o *UpdateDropRuleDefault) IsCode(code int) bool
IsCode returns true when this update drop rule default response a status code equal to that given
func (*UpdateDropRuleDefault) IsRedirect ¶
func (o *UpdateDropRuleDefault) IsRedirect() bool
IsRedirect returns true when this update drop rule default response has a 3xx status code
func (*UpdateDropRuleDefault) IsServerError ¶
func (o *UpdateDropRuleDefault) IsServerError() bool
IsServerError returns true when this update drop rule default response has a 5xx status code
func (*UpdateDropRuleDefault) IsSuccess ¶
func (o *UpdateDropRuleDefault) IsSuccess() bool
IsSuccess returns true when this update drop rule default response has a 2xx status code
func (*UpdateDropRuleDefault) String ¶
func (o *UpdateDropRuleDefault) String() string
type UpdateDropRuleInternalServerError ¶
UpdateDropRuleInternalServerError describes a response with status code 500, with default header values.
An unexpected error response.
func NewUpdateDropRuleInternalServerError ¶
func NewUpdateDropRuleInternalServerError() *UpdateDropRuleInternalServerError
NewUpdateDropRuleInternalServerError creates a UpdateDropRuleInternalServerError with default headers values
func (*UpdateDropRuleInternalServerError) Code ¶
func (o *UpdateDropRuleInternalServerError) Code() int
Code gets the status code for the update drop rule internal server error response
func (*UpdateDropRuleInternalServerError) Error ¶
func (o *UpdateDropRuleInternalServerError) Error() string
func (*UpdateDropRuleInternalServerError) GetPayload ¶
func (o *UpdateDropRuleInternalServerError) GetPayload() *models.APIError
func (*UpdateDropRuleInternalServerError) IsClientError ¶
func (o *UpdateDropRuleInternalServerError) IsClientError() bool
IsClientError returns true when this update drop rule internal server error response has a 4xx status code
func (*UpdateDropRuleInternalServerError) IsCode ¶
func (o *UpdateDropRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this update drop rule internal server error response a status code equal to that given
func (*UpdateDropRuleInternalServerError) IsRedirect ¶
func (o *UpdateDropRuleInternalServerError) IsRedirect() bool
IsRedirect returns true when this update drop rule internal server error response has a 3xx status code
func (*UpdateDropRuleInternalServerError) IsServerError ¶
func (o *UpdateDropRuleInternalServerError) IsServerError() bool
IsServerError returns true when this update drop rule internal server error response has a 5xx status code
func (*UpdateDropRuleInternalServerError) IsSuccess ¶
func (o *UpdateDropRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this update drop rule internal server error response has a 2xx status code
func (*UpdateDropRuleInternalServerError) String ¶
func (o *UpdateDropRuleInternalServerError) String() string
type UpdateDropRuleNotFound ¶
UpdateDropRuleNotFound describes a response with status code 404, with default header values.
Cannot update the DropRule because the slug does not exist.
func NewUpdateDropRuleNotFound ¶
func NewUpdateDropRuleNotFound() *UpdateDropRuleNotFound
NewUpdateDropRuleNotFound creates a UpdateDropRuleNotFound with default headers values
func (*UpdateDropRuleNotFound) Code ¶
func (o *UpdateDropRuleNotFound) Code() int
Code gets the status code for the update drop rule not found response
func (*UpdateDropRuleNotFound) Error ¶
func (o *UpdateDropRuleNotFound) Error() string
func (*UpdateDropRuleNotFound) GetPayload ¶
func (o *UpdateDropRuleNotFound) GetPayload() *models.APIError
func (*UpdateDropRuleNotFound) IsClientError ¶
func (o *UpdateDropRuleNotFound) IsClientError() bool
IsClientError returns true when this update drop rule not found response has a 4xx status code
func (*UpdateDropRuleNotFound) IsCode ¶
func (o *UpdateDropRuleNotFound) IsCode(code int) bool
IsCode returns true when this update drop rule not found response a status code equal to that given
func (*UpdateDropRuleNotFound) IsRedirect ¶
func (o *UpdateDropRuleNotFound) IsRedirect() bool
IsRedirect returns true when this update drop rule not found response has a 3xx status code
func (*UpdateDropRuleNotFound) IsServerError ¶
func (o *UpdateDropRuleNotFound) IsServerError() bool
IsServerError returns true when this update drop rule not found response has a 5xx status code
func (*UpdateDropRuleNotFound) IsSuccess ¶
func (o *UpdateDropRuleNotFound) IsSuccess() bool
IsSuccess returns true when this update drop rule not found response has a 2xx status code
func (*UpdateDropRuleNotFound) String ¶
func (o *UpdateDropRuleNotFound) String() string
type UpdateDropRuleOK ¶
type UpdateDropRuleOK struct {
Payload *models.Configv1UpdateDropRuleResponse
}
UpdateDropRuleOK describes a response with status code 200, with default header values.
A successful response containing the updated DropRule.
func NewUpdateDropRuleOK ¶
func NewUpdateDropRuleOK() *UpdateDropRuleOK
NewUpdateDropRuleOK creates a UpdateDropRuleOK with default headers values
func (*UpdateDropRuleOK) Code ¶
func (o *UpdateDropRuleOK) Code() int
Code gets the status code for the update drop rule o k response
func (*UpdateDropRuleOK) Error ¶
func (o *UpdateDropRuleOK) Error() string
func (*UpdateDropRuleOK) GetPayload ¶
func (o *UpdateDropRuleOK) GetPayload() *models.Configv1UpdateDropRuleResponse
func (*UpdateDropRuleOK) IsClientError ¶
func (o *UpdateDropRuleOK) IsClientError() bool
IsClientError returns true when this update drop rule o k response has a 4xx status code
func (*UpdateDropRuleOK) IsCode ¶
func (o *UpdateDropRuleOK) IsCode(code int) bool
IsCode returns true when this update drop rule o k response a status code equal to that given
func (*UpdateDropRuleOK) IsRedirect ¶
func (o *UpdateDropRuleOK) IsRedirect() bool
IsRedirect returns true when this update drop rule o k response has a 3xx status code
func (*UpdateDropRuleOK) IsServerError ¶
func (o *UpdateDropRuleOK) IsServerError() bool
IsServerError returns true when this update drop rule o k response has a 5xx status code
func (*UpdateDropRuleOK) IsSuccess ¶
func (o *UpdateDropRuleOK) IsSuccess() bool
IsSuccess returns true when this update drop rule o k response has a 2xx status code
func (*UpdateDropRuleOK) String ¶
func (o *UpdateDropRuleOK) String() string
type UpdateDropRuleParams ¶
type UpdateDropRuleParams struct { // Body. Body *models.ConfigV1UpdateDropRuleBody // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateDropRuleParams contains all the parameters to send to the API endpoint
for the update drop rule operation. Typically these are written to a http.Request.
func NewUpdateDropRuleParams ¶
func NewUpdateDropRuleParams() *UpdateDropRuleParams
NewUpdateDropRuleParams creates a new UpdateDropRuleParams 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 NewUpdateDropRuleParamsWithContext ¶
func NewUpdateDropRuleParamsWithContext(ctx context.Context) *UpdateDropRuleParams
NewUpdateDropRuleParamsWithContext creates a new UpdateDropRuleParams object with the ability to set a context for a request.
func NewUpdateDropRuleParamsWithHTTPClient ¶
func NewUpdateDropRuleParamsWithHTTPClient(client *http.Client) *UpdateDropRuleParams
NewUpdateDropRuleParamsWithHTTPClient creates a new UpdateDropRuleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateDropRuleParamsWithTimeout ¶
func NewUpdateDropRuleParamsWithTimeout(timeout time.Duration) *UpdateDropRuleParams
NewUpdateDropRuleParamsWithTimeout creates a new UpdateDropRuleParams object with the ability to set a timeout on a request.
func (*UpdateDropRuleParams) SetBody ¶
func (o *UpdateDropRuleParams) SetBody(body *models.ConfigV1UpdateDropRuleBody)
SetBody adds the body to the update drop rule params
func (*UpdateDropRuleParams) SetContext ¶
func (o *UpdateDropRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update drop rule params
func (*UpdateDropRuleParams) SetDefaults ¶
func (o *UpdateDropRuleParams) SetDefaults()
SetDefaults hydrates default values in the update drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateDropRuleParams) SetHTTPClient ¶
func (o *UpdateDropRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update drop rule params
func (*UpdateDropRuleParams) SetSlug ¶
func (o *UpdateDropRuleParams) SetSlug(slug string)
SetSlug adds the slug to the update drop rule params
func (*UpdateDropRuleParams) SetTimeout ¶
func (o *UpdateDropRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update drop rule params
func (*UpdateDropRuleParams) WithBody ¶
func (o *UpdateDropRuleParams) WithBody(body *models.ConfigV1UpdateDropRuleBody) *UpdateDropRuleParams
WithBody adds the body to the update drop rule params
func (*UpdateDropRuleParams) WithContext ¶
func (o *UpdateDropRuleParams) WithContext(ctx context.Context) *UpdateDropRuleParams
WithContext adds the context to the update drop rule params
func (*UpdateDropRuleParams) WithDefaults ¶
func (o *UpdateDropRuleParams) WithDefaults() *UpdateDropRuleParams
WithDefaults hydrates default values in the update drop rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateDropRuleParams) WithHTTPClient ¶
func (o *UpdateDropRuleParams) WithHTTPClient(client *http.Client) *UpdateDropRuleParams
WithHTTPClient adds the HTTPClient to the update drop rule params
func (*UpdateDropRuleParams) WithSlug ¶
func (o *UpdateDropRuleParams) WithSlug(slug string) *UpdateDropRuleParams
WithSlug adds the slug to the update drop rule params
func (*UpdateDropRuleParams) WithTimeout ¶
func (o *UpdateDropRuleParams) WithTimeout(timeout time.Duration) *UpdateDropRuleParams
WithTimeout adds the timeout to the update drop rule params
func (*UpdateDropRuleParams) WriteToRequest ¶
func (o *UpdateDropRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateDropRuleReader ¶
type UpdateDropRuleReader struct {
// contains filtered or unexported fields
}
UpdateDropRuleReader is a Reader for the UpdateDropRule structure.
func (*UpdateDropRuleReader) ReadResponse ¶
func (o *UpdateDropRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_drop_rule_parameters.go
- create_drop_rule_responses.go
- delete_drop_rule_parameters.go
- delete_drop_rule_responses.go
- drop_rule_client.go
- list_drop_rules_parameters.go
- list_drop_rules_responses.go
- read_drop_rule_parameters.go
- read_drop_rule_responses.go
- update_drop_rule_parameters.go
- update_drop_rule_responses.go