mapping_rule

package
v0.0.0-...-4232bc2 Latest Latest
Warning

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

Go to latest
Published: May 1, 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 mapping rule API

func (*Client) CreateMappingRule

func (a *Client) CreateMappingRule(params *CreateMappingRuleParams, opts ...ClientOption) (*CreateMappingRuleOK, error)

CreateMappingRule create mapping rule API

func (*Client) DeleteMappingRule

func (a *Client) DeleteMappingRule(params *DeleteMappingRuleParams, opts ...ClientOption) (*DeleteMappingRuleOK, error)

DeleteMappingRule delete mapping rule API

func (*Client) ListMappingRules

func (a *Client) ListMappingRules(params *ListMappingRulesParams, opts ...ClientOption) (*ListMappingRulesOK, error)

ListMappingRules list mapping rules API

func (*Client) ReadMappingRule

func (a *Client) ReadMappingRule(params *ReadMappingRuleParams, opts ...ClientOption) (*ReadMappingRuleOK, error)

ReadMappingRule read mapping rule API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateMappingRule

func (a *Client) UpdateMappingRule(params *UpdateMappingRuleParams, opts ...ClientOption) (*UpdateMappingRuleOK, error)

UpdateMappingRule update mapping rule API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateMappingRule(params *CreateMappingRuleParams, opts ...ClientOption) (*CreateMappingRuleOK, error)

	DeleteMappingRule(params *DeleteMappingRuleParams, opts ...ClientOption) (*DeleteMappingRuleOK, error)

	ListMappingRules(params *ListMappingRulesParams, opts ...ClientOption) (*ListMappingRulesOK, error)

	ReadMappingRule(params *ReadMappingRuleParams, opts ...ClientOption) (*ReadMappingRuleOK, error)

	UpdateMappingRule(params *UpdateMappingRuleParams, opts ...ClientOption) (*UpdateMappingRuleOK, 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 mapping rule API client.

type CreateMappingRuleBadRequest

type CreateMappingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the MappingRule because the request is invalid.

func NewCreateMappingRuleBadRequest

func NewCreateMappingRuleBadRequest() *CreateMappingRuleBadRequest

NewCreateMappingRuleBadRequest creates a CreateMappingRuleBadRequest with default headers values

func (*CreateMappingRuleBadRequest) Code

func (o *CreateMappingRuleBadRequest) Code() int

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

func (*CreateMappingRuleBadRequest) Error

func (*CreateMappingRuleBadRequest) GetPayload

func (o *CreateMappingRuleBadRequest) GetPayload() *models.APIError

func (*CreateMappingRuleBadRequest) IsClientError

func (o *CreateMappingRuleBadRequest) IsClientError() bool

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

func (*CreateMappingRuleBadRequest) IsCode

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

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

func (*CreateMappingRuleBadRequest) IsRedirect

func (o *CreateMappingRuleBadRequest) IsRedirect() bool

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

func (*CreateMappingRuleBadRequest) IsServerError

func (o *CreateMappingRuleBadRequest) IsServerError() bool

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

func (*CreateMappingRuleBadRequest) IsSuccess

func (o *CreateMappingRuleBadRequest) IsSuccess() bool

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

func (*CreateMappingRuleBadRequest) String

func (o *CreateMappingRuleBadRequest) String() string

type CreateMappingRuleConflict

type CreateMappingRuleConflict struct {
	Payload *models.APIError
}

CreateMappingRuleConflict describes a response with status code 409, with default header values.

Cannot create the MappingRule because there is a conflict with an existing MappingRule.

func NewCreateMappingRuleConflict

func NewCreateMappingRuleConflict() *CreateMappingRuleConflict

NewCreateMappingRuleConflict creates a CreateMappingRuleConflict with default headers values

func (*CreateMappingRuleConflict) Code

func (o *CreateMappingRuleConflict) Code() int

Code gets the status code for the create mapping rule conflict response

func (*CreateMappingRuleConflict) Error

func (o *CreateMappingRuleConflict) Error() string

func (*CreateMappingRuleConflict) GetPayload

func (o *CreateMappingRuleConflict) GetPayload() *models.APIError

func (*CreateMappingRuleConflict) IsClientError

func (o *CreateMappingRuleConflict) IsClientError() bool

IsClientError returns true when this create mapping rule conflict response has a 4xx status code

func (*CreateMappingRuleConflict) IsCode

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

IsCode returns true when this create mapping rule conflict response a status code equal to that given

func (*CreateMappingRuleConflict) IsRedirect

func (o *CreateMappingRuleConflict) IsRedirect() bool

IsRedirect returns true when this create mapping rule conflict response has a 3xx status code

func (*CreateMappingRuleConflict) IsServerError

func (o *CreateMappingRuleConflict) IsServerError() bool

IsServerError returns true when this create mapping rule conflict response has a 5xx status code

func (*CreateMappingRuleConflict) IsSuccess

func (o *CreateMappingRuleConflict) IsSuccess() bool

IsSuccess returns true when this create mapping rule conflict response has a 2xx status code

func (*CreateMappingRuleConflict) String

func (o *CreateMappingRuleConflict) String() string

type CreateMappingRuleDefault

type CreateMappingRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateMappingRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateMappingRuleDefault

func NewCreateMappingRuleDefault(code int) *CreateMappingRuleDefault

NewCreateMappingRuleDefault creates a CreateMappingRuleDefault with default headers values

func (*CreateMappingRuleDefault) Code

func (o *CreateMappingRuleDefault) Code() int

Code gets the status code for the create mapping rule default response

func (*CreateMappingRuleDefault) Error

func (o *CreateMappingRuleDefault) Error() string

func (*CreateMappingRuleDefault) GetPayload

func (*CreateMappingRuleDefault) IsClientError

func (o *CreateMappingRuleDefault) IsClientError() bool

IsClientError returns true when this create mapping rule default response has a 4xx status code

func (*CreateMappingRuleDefault) IsCode

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

IsCode returns true when this create mapping rule default response a status code equal to that given

func (*CreateMappingRuleDefault) IsRedirect

func (o *CreateMappingRuleDefault) IsRedirect() bool

IsRedirect returns true when this create mapping rule default response has a 3xx status code

func (*CreateMappingRuleDefault) IsServerError

func (o *CreateMappingRuleDefault) IsServerError() bool

IsServerError returns true when this create mapping rule default response has a 5xx status code

func (*CreateMappingRuleDefault) IsSuccess

func (o *CreateMappingRuleDefault) IsSuccess() bool

IsSuccess returns true when this create mapping rule default response has a 2xx status code

func (*CreateMappingRuleDefault) String

func (o *CreateMappingRuleDefault) String() string

type CreateMappingRuleInternalServerError

type CreateMappingRuleInternalServerError struct {
	Payload *models.APIError
}

CreateMappingRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateMappingRuleInternalServerError

func NewCreateMappingRuleInternalServerError() *CreateMappingRuleInternalServerError

NewCreateMappingRuleInternalServerError creates a CreateMappingRuleInternalServerError with default headers values

func (*CreateMappingRuleInternalServerError) Code

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

func (*CreateMappingRuleInternalServerError) Error

func (*CreateMappingRuleInternalServerError) GetPayload

func (*CreateMappingRuleInternalServerError) IsClientError

func (o *CreateMappingRuleInternalServerError) IsClientError() bool

IsClientError returns true when this create mapping rule internal server error response has a 4xx status code

func (*CreateMappingRuleInternalServerError) IsCode

IsCode returns true when this create mapping rule internal server error response a status code equal to that given

func (*CreateMappingRuleInternalServerError) IsRedirect

IsRedirect returns true when this create mapping rule internal server error response has a 3xx status code

func (*CreateMappingRuleInternalServerError) IsServerError

func (o *CreateMappingRuleInternalServerError) IsServerError() bool

IsServerError returns true when this create mapping rule internal server error response has a 5xx status code

func (*CreateMappingRuleInternalServerError) IsSuccess

IsSuccess returns true when this create mapping rule internal server error response has a 2xx status code

func (*CreateMappingRuleInternalServerError) String

type CreateMappingRuleOK

type CreateMappingRuleOK struct {
	Payload *models.Configv1CreateMappingRuleResponse
}

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

A successful response containing the created MappingRule.

func NewCreateMappingRuleOK

func NewCreateMappingRuleOK() *CreateMappingRuleOK

NewCreateMappingRuleOK creates a CreateMappingRuleOK with default headers values

func (*CreateMappingRuleOK) Code

func (o *CreateMappingRuleOK) Code() int

Code gets the status code for the create mapping rule o k response

func (*CreateMappingRuleOK) Error

func (o *CreateMappingRuleOK) Error() string

func (*CreateMappingRuleOK) GetPayload

func (*CreateMappingRuleOK) IsClientError

func (o *CreateMappingRuleOK) IsClientError() bool

IsClientError returns true when this create mapping rule o k response has a 4xx status code

func (*CreateMappingRuleOK) IsCode

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

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

func (*CreateMappingRuleOK) IsRedirect

func (o *CreateMappingRuleOK) IsRedirect() bool

IsRedirect returns true when this create mapping rule o k response has a 3xx status code

func (*CreateMappingRuleOK) IsServerError

func (o *CreateMappingRuleOK) IsServerError() bool

IsServerError returns true when this create mapping rule o k response has a 5xx status code

func (*CreateMappingRuleOK) IsSuccess

func (o *CreateMappingRuleOK) IsSuccess() bool

IsSuccess returns true when this create mapping rule o k response has a 2xx status code

func (*CreateMappingRuleOK) String

func (o *CreateMappingRuleOK) String() string

type CreateMappingRuleParams

type CreateMappingRuleParams struct {

	// Body.
	Body *models.Configv1CreateMappingRuleRequest

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

CreateMappingRuleParams contains all the parameters to send to the API endpoint

for the create mapping rule operation.

Typically these are written to a http.Request.

func NewCreateMappingRuleParams

func NewCreateMappingRuleParams() *CreateMappingRuleParams

NewCreateMappingRuleParams creates a new CreateMappingRuleParams 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 NewCreateMappingRuleParamsWithContext

func NewCreateMappingRuleParamsWithContext(ctx context.Context) *CreateMappingRuleParams

NewCreateMappingRuleParamsWithContext creates a new CreateMappingRuleParams object with the ability to set a context for a request.

func NewCreateMappingRuleParamsWithHTTPClient

func NewCreateMappingRuleParamsWithHTTPClient(client *http.Client) *CreateMappingRuleParams

NewCreateMappingRuleParamsWithHTTPClient creates a new CreateMappingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMappingRuleParamsWithTimeout

func NewCreateMappingRuleParamsWithTimeout(timeout time.Duration) *CreateMappingRuleParams

NewCreateMappingRuleParamsWithTimeout creates a new CreateMappingRuleParams object with the ability to set a timeout on a request.

func (*CreateMappingRuleParams) SetBody

SetBody adds the body to the create mapping rule params

func (*CreateMappingRuleParams) SetContext

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

SetContext adds the context to the create mapping rule params

func (*CreateMappingRuleParams) SetDefaults

func (o *CreateMappingRuleParams) SetDefaults()

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

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

func (*CreateMappingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create mapping rule params

func (*CreateMappingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create mapping rule params

func (*CreateMappingRuleParams) WithBody

WithBody adds the body to the create mapping rule params

func (*CreateMappingRuleParams) WithContext

WithContext adds the context to the create mapping rule params

func (*CreateMappingRuleParams) WithDefaults

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

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

func (*CreateMappingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create mapping rule params

func (*CreateMappingRuleParams) WithTimeout

WithTimeout adds the timeout to the create mapping rule params

func (*CreateMappingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMappingRuleReader

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

CreateMappingRuleReader is a Reader for the CreateMappingRule structure.

func (*CreateMappingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMappingRuleBadRequest

type DeleteMappingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the MappingRule because it is in use.

func NewDeleteMappingRuleBadRequest

func NewDeleteMappingRuleBadRequest() *DeleteMappingRuleBadRequest

NewDeleteMappingRuleBadRequest creates a DeleteMappingRuleBadRequest with default headers values

func (*DeleteMappingRuleBadRequest) Code

func (o *DeleteMappingRuleBadRequest) Code() int

Code gets the status code for the delete mapping rule bad request response

func (*DeleteMappingRuleBadRequest) Error

func (*DeleteMappingRuleBadRequest) GetPayload

func (o *DeleteMappingRuleBadRequest) GetPayload() *models.APIError

func (*DeleteMappingRuleBadRequest) IsClientError

func (o *DeleteMappingRuleBadRequest) IsClientError() bool

IsClientError returns true when this delete mapping rule bad request response has a 4xx status code

func (*DeleteMappingRuleBadRequest) IsCode

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

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

func (*DeleteMappingRuleBadRequest) IsRedirect

func (o *DeleteMappingRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this delete mapping rule bad request response has a 3xx status code

func (*DeleteMappingRuleBadRequest) IsServerError

func (o *DeleteMappingRuleBadRequest) IsServerError() bool

IsServerError returns true when this delete mapping rule bad request response has a 5xx status code

func (*DeleteMappingRuleBadRequest) IsSuccess

func (o *DeleteMappingRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this delete mapping rule bad request response has a 2xx status code

func (*DeleteMappingRuleBadRequest) String

func (o *DeleteMappingRuleBadRequest) String() string

type DeleteMappingRuleDefault

type DeleteMappingRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteMappingRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteMappingRuleDefault

func NewDeleteMappingRuleDefault(code int) *DeleteMappingRuleDefault

NewDeleteMappingRuleDefault creates a DeleteMappingRuleDefault with default headers values

func (*DeleteMappingRuleDefault) Code

func (o *DeleteMappingRuleDefault) Code() int

Code gets the status code for the delete mapping rule default response

func (*DeleteMappingRuleDefault) Error

func (o *DeleteMappingRuleDefault) Error() string

func (*DeleteMappingRuleDefault) GetPayload

func (*DeleteMappingRuleDefault) IsClientError

func (o *DeleteMappingRuleDefault) IsClientError() bool

IsClientError returns true when this delete mapping rule default response has a 4xx status code

func (*DeleteMappingRuleDefault) IsCode

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

IsCode returns true when this delete mapping rule default response a status code equal to that given

func (*DeleteMappingRuleDefault) IsRedirect

func (o *DeleteMappingRuleDefault) IsRedirect() bool

IsRedirect returns true when this delete mapping rule default response has a 3xx status code

func (*DeleteMappingRuleDefault) IsServerError

func (o *DeleteMappingRuleDefault) IsServerError() bool

IsServerError returns true when this delete mapping rule default response has a 5xx status code

func (*DeleteMappingRuleDefault) IsSuccess

func (o *DeleteMappingRuleDefault) IsSuccess() bool

IsSuccess returns true when this delete mapping rule default response has a 2xx status code

func (*DeleteMappingRuleDefault) String

func (o *DeleteMappingRuleDefault) String() string

type DeleteMappingRuleInternalServerError

type DeleteMappingRuleInternalServerError struct {
	Payload *models.APIError
}

DeleteMappingRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteMappingRuleInternalServerError

func NewDeleteMappingRuleInternalServerError() *DeleteMappingRuleInternalServerError

NewDeleteMappingRuleInternalServerError creates a DeleteMappingRuleInternalServerError with default headers values

func (*DeleteMappingRuleInternalServerError) Code

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

func (*DeleteMappingRuleInternalServerError) Error

func (*DeleteMappingRuleInternalServerError) GetPayload

func (*DeleteMappingRuleInternalServerError) IsClientError

func (o *DeleteMappingRuleInternalServerError) IsClientError() bool

IsClientError returns true when this delete mapping rule internal server error response has a 4xx status code

func (*DeleteMappingRuleInternalServerError) IsCode

IsCode returns true when this delete mapping rule internal server error response a status code equal to that given

func (*DeleteMappingRuleInternalServerError) IsRedirect

IsRedirect returns true when this delete mapping rule internal server error response has a 3xx status code

func (*DeleteMappingRuleInternalServerError) IsServerError

func (o *DeleteMappingRuleInternalServerError) IsServerError() bool

IsServerError returns true when this delete mapping rule internal server error response has a 5xx status code

func (*DeleteMappingRuleInternalServerError) IsSuccess

IsSuccess returns true when this delete mapping rule internal server error response has a 2xx status code

func (*DeleteMappingRuleInternalServerError) String

type DeleteMappingRuleNotFound

type DeleteMappingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the MappingRule because the slug does not exist.

func NewDeleteMappingRuleNotFound

func NewDeleteMappingRuleNotFound() *DeleteMappingRuleNotFound

NewDeleteMappingRuleNotFound creates a DeleteMappingRuleNotFound with default headers values

func (*DeleteMappingRuleNotFound) Code

func (o *DeleteMappingRuleNotFound) Code() int

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

func (*DeleteMappingRuleNotFound) Error

func (o *DeleteMappingRuleNotFound) Error() string

func (*DeleteMappingRuleNotFound) GetPayload

func (o *DeleteMappingRuleNotFound) GetPayload() *models.APIError

func (*DeleteMappingRuleNotFound) IsClientError

func (o *DeleteMappingRuleNotFound) IsClientError() bool

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

func (*DeleteMappingRuleNotFound) IsCode

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

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

func (*DeleteMappingRuleNotFound) IsRedirect

func (o *DeleteMappingRuleNotFound) IsRedirect() bool

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

func (*DeleteMappingRuleNotFound) IsServerError

func (o *DeleteMappingRuleNotFound) IsServerError() bool

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

func (*DeleteMappingRuleNotFound) IsSuccess

func (o *DeleteMappingRuleNotFound) IsSuccess() bool

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

func (*DeleteMappingRuleNotFound) String

func (o *DeleteMappingRuleNotFound) String() string

type DeleteMappingRuleOK

type DeleteMappingRuleOK struct {
	Payload models.Configv1DeleteMappingRuleResponse
}

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

A successful response.

func NewDeleteMappingRuleOK

func NewDeleteMappingRuleOK() *DeleteMappingRuleOK

NewDeleteMappingRuleOK creates a DeleteMappingRuleOK with default headers values

func (*DeleteMappingRuleOK) Code

func (o *DeleteMappingRuleOK) Code() int

Code gets the status code for the delete mapping rule o k response

func (*DeleteMappingRuleOK) Error

func (o *DeleteMappingRuleOK) Error() string

func (*DeleteMappingRuleOK) GetPayload

func (*DeleteMappingRuleOK) IsClientError

func (o *DeleteMappingRuleOK) IsClientError() bool

IsClientError returns true when this delete mapping rule o k response has a 4xx status code

func (*DeleteMappingRuleOK) IsCode

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

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

func (*DeleteMappingRuleOK) IsRedirect

func (o *DeleteMappingRuleOK) IsRedirect() bool

IsRedirect returns true when this delete mapping rule o k response has a 3xx status code

func (*DeleteMappingRuleOK) IsServerError

func (o *DeleteMappingRuleOK) IsServerError() bool

IsServerError returns true when this delete mapping rule o k response has a 5xx status code

func (*DeleteMappingRuleOK) IsSuccess

func (o *DeleteMappingRuleOK) IsSuccess() bool

IsSuccess returns true when this delete mapping rule o k response has a 2xx status code

func (*DeleteMappingRuleOK) String

func (o *DeleteMappingRuleOK) String() string

type DeleteMappingRuleParams

type DeleteMappingRuleParams struct {

	// Slug.
	Slug string

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

DeleteMappingRuleParams contains all the parameters to send to the API endpoint

for the delete mapping rule operation.

Typically these are written to a http.Request.

func NewDeleteMappingRuleParams

func NewDeleteMappingRuleParams() *DeleteMappingRuleParams

NewDeleteMappingRuleParams creates a new DeleteMappingRuleParams 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 NewDeleteMappingRuleParamsWithContext

func NewDeleteMappingRuleParamsWithContext(ctx context.Context) *DeleteMappingRuleParams

NewDeleteMappingRuleParamsWithContext creates a new DeleteMappingRuleParams object with the ability to set a context for a request.

func NewDeleteMappingRuleParamsWithHTTPClient

func NewDeleteMappingRuleParamsWithHTTPClient(client *http.Client) *DeleteMappingRuleParams

NewDeleteMappingRuleParamsWithHTTPClient creates a new DeleteMappingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMappingRuleParamsWithTimeout

func NewDeleteMappingRuleParamsWithTimeout(timeout time.Duration) *DeleteMappingRuleParams

NewDeleteMappingRuleParamsWithTimeout creates a new DeleteMappingRuleParams object with the ability to set a timeout on a request.

func (*DeleteMappingRuleParams) SetContext

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

SetContext adds the context to the delete mapping rule params

func (*DeleteMappingRuleParams) SetDefaults

func (o *DeleteMappingRuleParams) SetDefaults()

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

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

func (*DeleteMappingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete mapping rule params

func (*DeleteMappingRuleParams) SetSlug

func (o *DeleteMappingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the delete mapping rule params

func (*DeleteMappingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete mapping rule params

func (*DeleteMappingRuleParams) WithContext

WithContext adds the context to the delete mapping rule params

func (*DeleteMappingRuleParams) WithDefaults

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

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

func (*DeleteMappingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete mapping rule params

func (*DeleteMappingRuleParams) WithSlug

WithSlug adds the slug to the delete mapping rule params

func (*DeleteMappingRuleParams) WithTimeout

WithTimeout adds the timeout to the delete mapping rule params

func (*DeleteMappingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMappingRuleReader

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

DeleteMappingRuleReader is a Reader for the DeleteMappingRule structure.

func (*DeleteMappingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListMappingRulesDefault

type ListMappingRulesDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListMappingRulesDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListMappingRulesDefault

func NewListMappingRulesDefault(code int) *ListMappingRulesDefault

NewListMappingRulesDefault creates a ListMappingRulesDefault with default headers values

func (*ListMappingRulesDefault) Code

func (o *ListMappingRulesDefault) Code() int

Code gets the status code for the list mapping rules default response

func (*ListMappingRulesDefault) Error

func (o *ListMappingRulesDefault) Error() string

func (*ListMappingRulesDefault) GetPayload

func (*ListMappingRulesDefault) IsClientError

func (o *ListMappingRulesDefault) IsClientError() bool

IsClientError returns true when this list mapping rules default response has a 4xx status code

func (*ListMappingRulesDefault) IsCode

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

IsCode returns true when this list mapping rules default response a status code equal to that given

func (*ListMappingRulesDefault) IsRedirect

func (o *ListMappingRulesDefault) IsRedirect() bool

IsRedirect returns true when this list mapping rules default response has a 3xx status code

func (*ListMappingRulesDefault) IsServerError

func (o *ListMappingRulesDefault) IsServerError() bool

IsServerError returns true when this list mapping rules default response has a 5xx status code

func (*ListMappingRulesDefault) IsSuccess

func (o *ListMappingRulesDefault) IsSuccess() bool

IsSuccess returns true when this list mapping rules default response has a 2xx status code

func (*ListMappingRulesDefault) String

func (o *ListMappingRulesDefault) String() string

type ListMappingRulesInternalServerError

type ListMappingRulesInternalServerError struct {
	Payload *models.APIError
}

ListMappingRulesInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListMappingRulesInternalServerError

func NewListMappingRulesInternalServerError() *ListMappingRulesInternalServerError

NewListMappingRulesInternalServerError creates a ListMappingRulesInternalServerError with default headers values

func (*ListMappingRulesInternalServerError) Code

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

func (*ListMappingRulesInternalServerError) Error

func (*ListMappingRulesInternalServerError) GetPayload

func (*ListMappingRulesInternalServerError) IsClientError

func (o *ListMappingRulesInternalServerError) IsClientError() bool

IsClientError returns true when this list mapping rules internal server error response has a 4xx status code

func (*ListMappingRulesInternalServerError) IsCode

IsCode returns true when this list mapping rules internal server error response a status code equal to that given

func (*ListMappingRulesInternalServerError) IsRedirect

func (o *ListMappingRulesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list mapping rules internal server error response has a 3xx status code

func (*ListMappingRulesInternalServerError) IsServerError

func (o *ListMappingRulesInternalServerError) IsServerError() bool

IsServerError returns true when this list mapping rules internal server error response has a 5xx status code

func (*ListMappingRulesInternalServerError) IsSuccess

IsSuccess returns true when this list mapping rules internal server error response has a 2xx status code

func (*ListMappingRulesInternalServerError) String

type ListMappingRulesOK

type ListMappingRulesOK struct {
	Payload *models.Configv1ListMappingRulesResponse
}

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

A successful response.

func NewListMappingRulesOK

func NewListMappingRulesOK() *ListMappingRulesOK

NewListMappingRulesOK creates a ListMappingRulesOK with default headers values

func (*ListMappingRulesOK) Code

func (o *ListMappingRulesOK) Code() int

Code gets the status code for the list mapping rules o k response

func (*ListMappingRulesOK) Error

func (o *ListMappingRulesOK) Error() string

func (*ListMappingRulesOK) GetPayload

func (*ListMappingRulesOK) IsClientError

func (o *ListMappingRulesOK) IsClientError() bool

IsClientError returns true when this list mapping rules o k response has a 4xx status code

func (*ListMappingRulesOK) IsCode

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

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

func (*ListMappingRulesOK) IsRedirect

func (o *ListMappingRulesOK) IsRedirect() bool

IsRedirect returns true when this list mapping rules o k response has a 3xx status code

func (*ListMappingRulesOK) IsServerError

func (o *ListMappingRulesOK) IsServerError() bool

IsServerError returns true when this list mapping rules o k response has a 5xx status code

func (*ListMappingRulesOK) IsSuccess

func (o *ListMappingRulesOK) IsSuccess() bool

IsSuccess returns true when this list mapping rules o k response has a 2xx status code

func (*ListMappingRulesOK) String

func (o *ListMappingRulesOK) String() string

type ListMappingRulesParams

type ListMappingRulesParams struct {

	/* BucketSlugs.

	   Filters results by bucket_slug, where any MappingRule with a matching bucket_slug in the given list (and matches all other filters) is returned.
	*/
	BucketSlugs []string

	/* Names.

	   Filters results by name, where any MappingRule 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 MappingRule 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
}

ListMappingRulesParams contains all the parameters to send to the API endpoint

for the list mapping rules operation.

Typically these are written to a http.Request.

func NewListMappingRulesParams

func NewListMappingRulesParams() *ListMappingRulesParams

NewListMappingRulesParams creates a new ListMappingRulesParams 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 NewListMappingRulesParamsWithContext

func NewListMappingRulesParamsWithContext(ctx context.Context) *ListMappingRulesParams

NewListMappingRulesParamsWithContext creates a new ListMappingRulesParams object with the ability to set a context for a request.

func NewListMappingRulesParamsWithHTTPClient

func NewListMappingRulesParamsWithHTTPClient(client *http.Client) *ListMappingRulesParams

NewListMappingRulesParamsWithHTTPClient creates a new ListMappingRulesParams object with the ability to set a custom HTTPClient for a request.

func NewListMappingRulesParamsWithTimeout

func NewListMappingRulesParamsWithTimeout(timeout time.Duration) *ListMappingRulesParams

NewListMappingRulesParamsWithTimeout creates a new ListMappingRulesParams object with the ability to set a timeout on a request.

func (*ListMappingRulesParams) SetBucketSlugs

func (o *ListMappingRulesParams) SetBucketSlugs(bucketSlugs []string)

SetBucketSlugs adds the bucketSlugs to the list mapping rules params

func (*ListMappingRulesParams) SetContext

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

SetContext adds the context to the list mapping rules params

func (*ListMappingRulesParams) SetDefaults

func (o *ListMappingRulesParams) SetDefaults()

SetDefaults hydrates default values in the list mapping rules params (not the query body).

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

func (*ListMappingRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list mapping rules params

func (*ListMappingRulesParams) SetNames

func (o *ListMappingRulesParams) SetNames(names []string)

SetNames adds the names to the list mapping rules params

func (*ListMappingRulesParams) SetPageMaxSize

func (o *ListMappingRulesParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list mapping rules params

func (*ListMappingRulesParams) SetPageToken

func (o *ListMappingRulesParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list mapping rules params

func (*ListMappingRulesParams) SetSlugs

func (o *ListMappingRulesParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list mapping rules params

func (*ListMappingRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list mapping rules params

func (*ListMappingRulesParams) WithBucketSlugs

func (o *ListMappingRulesParams) WithBucketSlugs(bucketSlugs []string) *ListMappingRulesParams

WithBucketSlugs adds the bucketSlugs to the list mapping rules params

func (*ListMappingRulesParams) WithContext

WithContext adds the context to the list mapping rules params

func (*ListMappingRulesParams) WithDefaults

WithDefaults hydrates default values in the list mapping rules params (not the query body).

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

func (*ListMappingRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list mapping rules params

func (*ListMappingRulesParams) WithNames

func (o *ListMappingRulesParams) WithNames(names []string) *ListMappingRulesParams

WithNames adds the names to the list mapping rules params

func (*ListMappingRulesParams) WithPageMaxSize

func (o *ListMappingRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListMappingRulesParams

WithPageMaxSize adds the pageMaxSize to the list mapping rules params

func (*ListMappingRulesParams) WithPageToken

func (o *ListMappingRulesParams) WithPageToken(pageToken *string) *ListMappingRulesParams

WithPageToken adds the pageToken to the list mapping rules params

func (*ListMappingRulesParams) WithSlugs

func (o *ListMappingRulesParams) WithSlugs(slugs []string) *ListMappingRulesParams

WithSlugs adds the slugs to the list mapping rules params

func (*ListMappingRulesParams) WithTimeout

WithTimeout adds the timeout to the list mapping rules params

func (*ListMappingRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListMappingRulesReader

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

ListMappingRulesReader is a Reader for the ListMappingRules structure.

func (*ListMappingRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadMappingRuleDefault

type ReadMappingRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadMappingRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadMappingRuleDefault

func NewReadMappingRuleDefault(code int) *ReadMappingRuleDefault

NewReadMappingRuleDefault creates a ReadMappingRuleDefault with default headers values

func (*ReadMappingRuleDefault) Code

func (o *ReadMappingRuleDefault) Code() int

Code gets the status code for the read mapping rule default response

func (*ReadMappingRuleDefault) Error

func (o *ReadMappingRuleDefault) Error() string

func (*ReadMappingRuleDefault) GetPayload

func (o *ReadMappingRuleDefault) GetPayload() models.GenericError

func (*ReadMappingRuleDefault) IsClientError

func (o *ReadMappingRuleDefault) IsClientError() bool

IsClientError returns true when this read mapping rule default response has a 4xx status code

func (*ReadMappingRuleDefault) IsCode

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

IsCode returns true when this read mapping rule default response a status code equal to that given

func (*ReadMappingRuleDefault) IsRedirect

func (o *ReadMappingRuleDefault) IsRedirect() bool

IsRedirect returns true when this read mapping rule default response has a 3xx status code

func (*ReadMappingRuleDefault) IsServerError

func (o *ReadMappingRuleDefault) IsServerError() bool

IsServerError returns true when this read mapping rule default response has a 5xx status code

func (*ReadMappingRuleDefault) IsSuccess

func (o *ReadMappingRuleDefault) IsSuccess() bool

IsSuccess returns true when this read mapping rule default response has a 2xx status code

func (*ReadMappingRuleDefault) String

func (o *ReadMappingRuleDefault) String() string

type ReadMappingRuleInternalServerError

type ReadMappingRuleInternalServerError struct {
	Payload *models.APIError
}

ReadMappingRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadMappingRuleInternalServerError

func NewReadMappingRuleInternalServerError() *ReadMappingRuleInternalServerError

NewReadMappingRuleInternalServerError creates a ReadMappingRuleInternalServerError with default headers values

func (*ReadMappingRuleInternalServerError) Code

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

func (*ReadMappingRuleInternalServerError) Error

func (*ReadMappingRuleInternalServerError) GetPayload

func (*ReadMappingRuleInternalServerError) IsClientError

func (o *ReadMappingRuleInternalServerError) IsClientError() bool

IsClientError returns true when this read mapping rule internal server error response has a 4xx status code

func (*ReadMappingRuleInternalServerError) IsCode

IsCode returns true when this read mapping rule internal server error response a status code equal to that given

func (*ReadMappingRuleInternalServerError) IsRedirect

func (o *ReadMappingRuleInternalServerError) IsRedirect() bool

IsRedirect returns true when this read mapping rule internal server error response has a 3xx status code

func (*ReadMappingRuleInternalServerError) IsServerError

func (o *ReadMappingRuleInternalServerError) IsServerError() bool

IsServerError returns true when this read mapping rule internal server error response has a 5xx status code

func (*ReadMappingRuleInternalServerError) IsSuccess

IsSuccess returns true when this read mapping rule internal server error response has a 2xx status code

func (*ReadMappingRuleInternalServerError) String

type ReadMappingRuleNotFound

type ReadMappingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot read the MappingRule because the slug does not exist.

func NewReadMappingRuleNotFound

func NewReadMappingRuleNotFound() *ReadMappingRuleNotFound

NewReadMappingRuleNotFound creates a ReadMappingRuleNotFound with default headers values

func (*ReadMappingRuleNotFound) Code

func (o *ReadMappingRuleNotFound) Code() int

Code gets the status code for the read mapping rule not found response

func (*ReadMappingRuleNotFound) Error

func (o *ReadMappingRuleNotFound) Error() string

func (*ReadMappingRuleNotFound) GetPayload

func (o *ReadMappingRuleNotFound) GetPayload() *models.APIError

func (*ReadMappingRuleNotFound) IsClientError

func (o *ReadMappingRuleNotFound) IsClientError() bool

IsClientError returns true when this read mapping rule not found response has a 4xx status code

func (*ReadMappingRuleNotFound) IsCode

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

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

func (*ReadMappingRuleNotFound) IsRedirect

func (o *ReadMappingRuleNotFound) IsRedirect() bool

IsRedirect returns true when this read mapping rule not found response has a 3xx status code

func (*ReadMappingRuleNotFound) IsServerError

func (o *ReadMappingRuleNotFound) IsServerError() bool

IsServerError returns true when this read mapping rule not found response has a 5xx status code

func (*ReadMappingRuleNotFound) IsSuccess

func (o *ReadMappingRuleNotFound) IsSuccess() bool

IsSuccess returns true when this read mapping rule not found response has a 2xx status code

func (*ReadMappingRuleNotFound) String

func (o *ReadMappingRuleNotFound) String() string

type ReadMappingRuleOK

type ReadMappingRuleOK struct {
	Payload *models.Configv1ReadMappingRuleResponse
}

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

A successful response.

func NewReadMappingRuleOK

func NewReadMappingRuleOK() *ReadMappingRuleOK

NewReadMappingRuleOK creates a ReadMappingRuleOK with default headers values

func (*ReadMappingRuleOK) Code

func (o *ReadMappingRuleOK) Code() int

Code gets the status code for the read mapping rule o k response

func (*ReadMappingRuleOK) Error

func (o *ReadMappingRuleOK) Error() string

func (*ReadMappingRuleOK) GetPayload

func (*ReadMappingRuleOK) IsClientError

func (o *ReadMappingRuleOK) IsClientError() bool

IsClientError returns true when this read mapping rule o k response has a 4xx status code

func (*ReadMappingRuleOK) IsCode

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

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

func (*ReadMappingRuleOK) IsRedirect

func (o *ReadMappingRuleOK) IsRedirect() bool

IsRedirect returns true when this read mapping rule o k response has a 3xx status code

func (*ReadMappingRuleOK) IsServerError

func (o *ReadMappingRuleOK) IsServerError() bool

IsServerError returns true when this read mapping rule o k response has a 5xx status code

func (*ReadMappingRuleOK) IsSuccess

func (o *ReadMappingRuleOK) IsSuccess() bool

IsSuccess returns true when this read mapping rule o k response has a 2xx status code

func (*ReadMappingRuleOK) String

func (o *ReadMappingRuleOK) String() string

type ReadMappingRuleParams

type ReadMappingRuleParams struct {

	// Slug.
	Slug string

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

ReadMappingRuleParams contains all the parameters to send to the API endpoint

for the read mapping rule operation.

Typically these are written to a http.Request.

func NewReadMappingRuleParams

func NewReadMappingRuleParams() *ReadMappingRuleParams

NewReadMappingRuleParams creates a new ReadMappingRuleParams 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 NewReadMappingRuleParamsWithContext

func NewReadMappingRuleParamsWithContext(ctx context.Context) *ReadMappingRuleParams

NewReadMappingRuleParamsWithContext creates a new ReadMappingRuleParams object with the ability to set a context for a request.

func NewReadMappingRuleParamsWithHTTPClient

func NewReadMappingRuleParamsWithHTTPClient(client *http.Client) *ReadMappingRuleParams

NewReadMappingRuleParamsWithHTTPClient creates a new ReadMappingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReadMappingRuleParamsWithTimeout

func NewReadMappingRuleParamsWithTimeout(timeout time.Duration) *ReadMappingRuleParams

NewReadMappingRuleParamsWithTimeout creates a new ReadMappingRuleParams object with the ability to set a timeout on a request.

func (*ReadMappingRuleParams) SetContext

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

SetContext adds the context to the read mapping rule params

func (*ReadMappingRuleParams) SetDefaults

func (o *ReadMappingRuleParams) SetDefaults()

SetDefaults hydrates default values in the read mapping rule params (not the query body).

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

func (*ReadMappingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read mapping rule params

func (*ReadMappingRuleParams) SetSlug

func (o *ReadMappingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the read mapping rule params

func (*ReadMappingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the read mapping rule params

func (*ReadMappingRuleParams) WithContext

WithContext adds the context to the read mapping rule params

func (*ReadMappingRuleParams) WithDefaults

func (o *ReadMappingRuleParams) WithDefaults() *ReadMappingRuleParams

WithDefaults hydrates default values in the read mapping rule params (not the query body).

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

func (*ReadMappingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read mapping rule params

func (*ReadMappingRuleParams) WithSlug

WithSlug adds the slug to the read mapping rule params

func (*ReadMappingRuleParams) WithTimeout

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

WithTimeout adds the timeout to the read mapping rule params

func (*ReadMappingRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadMappingRuleReader

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

ReadMappingRuleReader is a Reader for the ReadMappingRule structure.

func (*ReadMappingRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateMappingRuleBadRequest

type UpdateMappingRuleBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the MappingRule because the request is invalid.

func NewUpdateMappingRuleBadRequest

func NewUpdateMappingRuleBadRequest() *UpdateMappingRuleBadRequest

NewUpdateMappingRuleBadRequest creates a UpdateMappingRuleBadRequest with default headers values

func (*UpdateMappingRuleBadRequest) Code

func (o *UpdateMappingRuleBadRequest) Code() int

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

func (*UpdateMappingRuleBadRequest) Error

func (*UpdateMappingRuleBadRequest) GetPayload

func (o *UpdateMappingRuleBadRequest) GetPayload() *models.APIError

func (*UpdateMappingRuleBadRequest) IsClientError

func (o *UpdateMappingRuleBadRequest) IsClientError() bool

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

func (*UpdateMappingRuleBadRequest) IsCode

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

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

func (*UpdateMappingRuleBadRequest) IsRedirect

func (o *UpdateMappingRuleBadRequest) IsRedirect() bool

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

func (*UpdateMappingRuleBadRequest) IsServerError

func (o *UpdateMappingRuleBadRequest) IsServerError() bool

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

func (*UpdateMappingRuleBadRequest) IsSuccess

func (o *UpdateMappingRuleBadRequest) IsSuccess() bool

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

func (*UpdateMappingRuleBadRequest) String

func (o *UpdateMappingRuleBadRequest) String() string

type UpdateMappingRuleBody

type UpdateMappingRuleBody struct {

	// If true, the MappingRule will be created if it does not already exist, identified by slug. If false, an error will be returned if the MappingRule does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the MappingRule will not be created nor updated, and no response MappingRule will be returned. The response will return an error if the given MappingRule is invalid.
	DryRun bool `json:"dry_run,omitempty"`

	// mapping rule
	MappingRule *models.Configv1MappingRule `json:"mapping_rule,omitempty"`
}

UpdateMappingRuleBody update mapping rule body swagger:model UpdateMappingRuleBody

func (*UpdateMappingRuleBody) ContextValidate

func (o *UpdateMappingRuleBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update mapping rule body based on the context it is used

func (*UpdateMappingRuleBody) MarshalBinary

func (o *UpdateMappingRuleBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateMappingRuleBody) UnmarshalBinary

func (o *UpdateMappingRuleBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateMappingRuleBody) Validate

func (o *UpdateMappingRuleBody) Validate(formats strfmt.Registry) error

Validate validates this update mapping rule body

type UpdateMappingRuleConflict

type UpdateMappingRuleConflict struct {
	Payload *models.APIError
}

UpdateMappingRuleConflict describes a response with status code 409, with default header values.

Cannot update the MappingRule because there is a conflict with an existing MappingRule.

func NewUpdateMappingRuleConflict

func NewUpdateMappingRuleConflict() *UpdateMappingRuleConflict

NewUpdateMappingRuleConflict creates a UpdateMappingRuleConflict with default headers values

func (*UpdateMappingRuleConflict) Code

func (o *UpdateMappingRuleConflict) Code() int

Code gets the status code for the update mapping rule conflict response

func (*UpdateMappingRuleConflict) Error

func (o *UpdateMappingRuleConflict) Error() string

func (*UpdateMappingRuleConflict) GetPayload

func (o *UpdateMappingRuleConflict) GetPayload() *models.APIError

func (*UpdateMappingRuleConflict) IsClientError

func (o *UpdateMappingRuleConflict) IsClientError() bool

IsClientError returns true when this update mapping rule conflict response has a 4xx status code

func (*UpdateMappingRuleConflict) IsCode

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

IsCode returns true when this update mapping rule conflict response a status code equal to that given

func (*UpdateMappingRuleConflict) IsRedirect

func (o *UpdateMappingRuleConflict) IsRedirect() bool

IsRedirect returns true when this update mapping rule conflict response has a 3xx status code

func (*UpdateMappingRuleConflict) IsServerError

func (o *UpdateMappingRuleConflict) IsServerError() bool

IsServerError returns true when this update mapping rule conflict response has a 5xx status code

func (*UpdateMappingRuleConflict) IsSuccess

func (o *UpdateMappingRuleConflict) IsSuccess() bool

IsSuccess returns true when this update mapping rule conflict response has a 2xx status code

func (*UpdateMappingRuleConflict) String

func (o *UpdateMappingRuleConflict) String() string

type UpdateMappingRuleDefault

type UpdateMappingRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateMappingRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateMappingRuleDefault

func NewUpdateMappingRuleDefault(code int) *UpdateMappingRuleDefault

NewUpdateMappingRuleDefault creates a UpdateMappingRuleDefault with default headers values

func (*UpdateMappingRuleDefault) Code

func (o *UpdateMappingRuleDefault) Code() int

Code gets the status code for the update mapping rule default response

func (*UpdateMappingRuleDefault) Error

func (o *UpdateMappingRuleDefault) Error() string

func (*UpdateMappingRuleDefault) GetPayload

func (*UpdateMappingRuleDefault) IsClientError

func (o *UpdateMappingRuleDefault) IsClientError() bool

IsClientError returns true when this update mapping rule default response has a 4xx status code

func (*UpdateMappingRuleDefault) IsCode

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

IsCode returns true when this update mapping rule default response a status code equal to that given

func (*UpdateMappingRuleDefault) IsRedirect

func (o *UpdateMappingRuleDefault) IsRedirect() bool

IsRedirect returns true when this update mapping rule default response has a 3xx status code

func (*UpdateMappingRuleDefault) IsServerError

func (o *UpdateMappingRuleDefault) IsServerError() bool

IsServerError returns true when this update mapping rule default response has a 5xx status code

func (*UpdateMappingRuleDefault) IsSuccess

func (o *UpdateMappingRuleDefault) IsSuccess() bool

IsSuccess returns true when this update mapping rule default response has a 2xx status code

func (*UpdateMappingRuleDefault) String

func (o *UpdateMappingRuleDefault) String() string

type UpdateMappingRuleInternalServerError

type UpdateMappingRuleInternalServerError struct {
	Payload *models.APIError
}

UpdateMappingRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateMappingRuleInternalServerError

func NewUpdateMappingRuleInternalServerError() *UpdateMappingRuleInternalServerError

NewUpdateMappingRuleInternalServerError creates a UpdateMappingRuleInternalServerError with default headers values

func (*UpdateMappingRuleInternalServerError) Code

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

func (*UpdateMappingRuleInternalServerError) Error

func (*UpdateMappingRuleInternalServerError) GetPayload

func (*UpdateMappingRuleInternalServerError) IsClientError

func (o *UpdateMappingRuleInternalServerError) IsClientError() bool

IsClientError returns true when this update mapping rule internal server error response has a 4xx status code

func (*UpdateMappingRuleInternalServerError) IsCode

IsCode returns true when this update mapping rule internal server error response a status code equal to that given

func (*UpdateMappingRuleInternalServerError) IsRedirect

IsRedirect returns true when this update mapping rule internal server error response has a 3xx status code

func (*UpdateMappingRuleInternalServerError) IsServerError

func (o *UpdateMappingRuleInternalServerError) IsServerError() bool

IsServerError returns true when this update mapping rule internal server error response has a 5xx status code

func (*UpdateMappingRuleInternalServerError) IsSuccess

IsSuccess returns true when this update mapping rule internal server error response has a 2xx status code

func (*UpdateMappingRuleInternalServerError) String

type UpdateMappingRuleNotFound

type UpdateMappingRuleNotFound struct {
	Payload *models.APIError
}

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

Cannot update the MappingRule because the slug does not exist.

func NewUpdateMappingRuleNotFound

func NewUpdateMappingRuleNotFound() *UpdateMappingRuleNotFound

NewUpdateMappingRuleNotFound creates a UpdateMappingRuleNotFound with default headers values

func (*UpdateMappingRuleNotFound) Code

func (o *UpdateMappingRuleNotFound) Code() int

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

func (*UpdateMappingRuleNotFound) Error

func (o *UpdateMappingRuleNotFound) Error() string

func (*UpdateMappingRuleNotFound) GetPayload

func (o *UpdateMappingRuleNotFound) GetPayload() *models.APIError

func (*UpdateMappingRuleNotFound) IsClientError

func (o *UpdateMappingRuleNotFound) IsClientError() bool

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

func (*UpdateMappingRuleNotFound) IsCode

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

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

func (*UpdateMappingRuleNotFound) IsRedirect

func (o *UpdateMappingRuleNotFound) IsRedirect() bool

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

func (*UpdateMappingRuleNotFound) IsServerError

func (o *UpdateMappingRuleNotFound) IsServerError() bool

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

func (*UpdateMappingRuleNotFound) IsSuccess

func (o *UpdateMappingRuleNotFound) IsSuccess() bool

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

func (*UpdateMappingRuleNotFound) String

func (o *UpdateMappingRuleNotFound) String() string

type UpdateMappingRuleOK

type UpdateMappingRuleOK struct {
	Payload *models.Configv1UpdateMappingRuleResponse
}

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

A successful response containing the updated MappingRule.

func NewUpdateMappingRuleOK

func NewUpdateMappingRuleOK() *UpdateMappingRuleOK

NewUpdateMappingRuleOK creates a UpdateMappingRuleOK with default headers values

func (*UpdateMappingRuleOK) Code

func (o *UpdateMappingRuleOK) Code() int

Code gets the status code for the update mapping rule o k response

func (*UpdateMappingRuleOK) Error

func (o *UpdateMappingRuleOK) Error() string

func (*UpdateMappingRuleOK) GetPayload

func (*UpdateMappingRuleOK) IsClientError

func (o *UpdateMappingRuleOK) IsClientError() bool

IsClientError returns true when this update mapping rule o k response has a 4xx status code

func (*UpdateMappingRuleOK) IsCode

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

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

func (*UpdateMappingRuleOK) IsRedirect

func (o *UpdateMappingRuleOK) IsRedirect() bool

IsRedirect returns true when this update mapping rule o k response has a 3xx status code

func (*UpdateMappingRuleOK) IsServerError

func (o *UpdateMappingRuleOK) IsServerError() bool

IsServerError returns true when this update mapping rule o k response has a 5xx status code

func (*UpdateMappingRuleOK) IsSuccess

func (o *UpdateMappingRuleOK) IsSuccess() bool

IsSuccess returns true when this update mapping rule o k response has a 2xx status code

func (*UpdateMappingRuleOK) String

func (o *UpdateMappingRuleOK) String() string

type UpdateMappingRuleParams

type UpdateMappingRuleParams struct {

	// Body.
	Body UpdateMappingRuleBody

	// Slug.
	Slug string

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

UpdateMappingRuleParams contains all the parameters to send to the API endpoint

for the update mapping rule operation.

Typically these are written to a http.Request.

func NewUpdateMappingRuleParams

func NewUpdateMappingRuleParams() *UpdateMappingRuleParams

NewUpdateMappingRuleParams creates a new UpdateMappingRuleParams 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 NewUpdateMappingRuleParamsWithContext

func NewUpdateMappingRuleParamsWithContext(ctx context.Context) *UpdateMappingRuleParams

NewUpdateMappingRuleParamsWithContext creates a new UpdateMappingRuleParams object with the ability to set a context for a request.

func NewUpdateMappingRuleParamsWithHTTPClient

func NewUpdateMappingRuleParamsWithHTTPClient(client *http.Client) *UpdateMappingRuleParams

NewUpdateMappingRuleParamsWithHTTPClient creates a new UpdateMappingRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMappingRuleParamsWithTimeout

func NewUpdateMappingRuleParamsWithTimeout(timeout time.Duration) *UpdateMappingRuleParams

NewUpdateMappingRuleParamsWithTimeout creates a new UpdateMappingRuleParams object with the ability to set a timeout on a request.

func (*UpdateMappingRuleParams) SetBody

SetBody adds the body to the update mapping rule params

func (*UpdateMappingRuleParams) SetContext

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

SetContext adds the context to the update mapping rule params

func (*UpdateMappingRuleParams) SetDefaults

func (o *UpdateMappingRuleParams) SetDefaults()

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

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

func (*UpdateMappingRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update mapping rule params

func (*UpdateMappingRuleParams) SetSlug

func (o *UpdateMappingRuleParams) SetSlug(slug string)

SetSlug adds the slug to the update mapping rule params

func (*UpdateMappingRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update mapping rule params

func (*UpdateMappingRuleParams) WithBody

WithBody adds the body to the update mapping rule params

func (*UpdateMappingRuleParams) WithContext

WithContext adds the context to the update mapping rule params

func (*UpdateMappingRuleParams) WithDefaults

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

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

func (*UpdateMappingRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update mapping rule params

func (*UpdateMappingRuleParams) WithSlug

WithSlug adds the slug to the update mapping rule params

func (*UpdateMappingRuleParams) WithTimeout

WithTimeout adds the timeout to the update mapping rule params

func (*UpdateMappingRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateMappingRuleReader

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

UpdateMappingRuleReader is a Reader for the UpdateMappingRule structure.

func (*UpdateMappingRuleReader) ReadResponse

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