drop_rule

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

type CreateDropRuleBadRequest struct {
	Payload *models.APIError
}

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

type CreateDropRuleConflict struct {
	Payload *models.APIError
}

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

type CreateDropRuleInternalServerError struct {
	Payload *models.APIError
}

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

Code gets the status code for the create drop rule internal server error response

func (*CreateDropRuleInternalServerError) Error

func (*CreateDropRuleInternalServerError) GetPayload

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

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 (*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

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

WithBody adds the body to the create drop rule params

func (*CreateDropRuleParams) WithContext

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

type DeleteDropRuleBadRequest struct {
	Payload *models.APIError
}

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

type DeleteDropRuleInternalServerError struct {
	Payload *models.APIError
}

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

Code gets the status code for the delete drop rule internal server error response

func (*DeleteDropRuleInternalServerError) Error

func (*DeleteDropRuleInternalServerError) GetPayload

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

type DeleteDropRuleNotFound

type DeleteDropRuleNotFound struct {
	Payload *models.APIError
}

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 (*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

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

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

type ListDropRulesInternalServerError struct {
	Payload *models.APIError
}

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

Code gets the status code for the list drop rules internal server error response

func (*ListDropRulesInternalServerError) Error

func (*ListDropRulesInternalServerError) GetPayload

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

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 (*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

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

type ReadDropRuleInternalServerError struct {
	Payload *models.APIError
}

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

Code gets the status code for the read drop rule internal server error response

func (*ReadDropRuleInternalServerError) Error

func (*ReadDropRuleInternalServerError) GetPayload

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

type ReadDropRuleNotFound

type ReadDropRuleNotFound struct {
	Payload *models.APIError
}

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 (*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

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

type UpdateDropRuleBadRequest struct {
	Payload *models.APIError
}

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

type UpdateDropRuleConflict struct {
	Payload *models.APIError
}

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

type UpdateDropRuleInternalServerError struct {
	Payload *models.APIError
}

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

Code gets the status code for the update drop rule internal server error response

func (*UpdateDropRuleInternalServerError) Error

func (*UpdateDropRuleInternalServerError) GetPayload

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

type UpdateDropRuleNotFound

type UpdateDropRuleNotFound struct {
	Payload *models.APIError
}

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 (*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

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

WithBody adds the body to the update drop rule params

func (*UpdateDropRuleParams) WithContext

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

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.

Jump to

Keyboard shortcuts

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