Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateMappingRule(params *CreateMappingRuleParams, opts ...ClientOption) (*CreateMappingRuleOK, error)
- func (a *Client) DeleteMappingRule(params *DeleteMappingRuleParams, opts ...ClientOption) (*DeleteMappingRuleOK, error)
- func (a *Client) ListMappingRules(params *ListMappingRulesParams, opts ...ClientOption) (*ListMappingRulesOK, error)
- func (a *Client) ReadMappingRule(params *ReadMappingRuleParams, opts ...ClientOption) (*ReadMappingRuleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateMappingRule(params *UpdateMappingRuleParams, opts ...ClientOption) (*UpdateMappingRuleOK, error)
- type ClientOption
- type ClientService
- type CreateMappingRuleBadRequest
- func (o *CreateMappingRuleBadRequest) Code() int
- func (o *CreateMappingRuleBadRequest) Error() string
- func (o *CreateMappingRuleBadRequest) GetPayload() *models.APIError
- func (o *CreateMappingRuleBadRequest) IsClientError() bool
- func (o *CreateMappingRuleBadRequest) IsCode(code int) bool
- func (o *CreateMappingRuleBadRequest) IsRedirect() bool
- func (o *CreateMappingRuleBadRequest) IsServerError() bool
- func (o *CreateMappingRuleBadRequest) IsSuccess() bool
- func (o *CreateMappingRuleBadRequest) String() string
- type CreateMappingRuleConflict
- func (o *CreateMappingRuleConflict) Code() int
- func (o *CreateMappingRuleConflict) Error() string
- func (o *CreateMappingRuleConflict) GetPayload() *models.APIError
- func (o *CreateMappingRuleConflict) IsClientError() bool
- func (o *CreateMappingRuleConflict) IsCode(code int) bool
- func (o *CreateMappingRuleConflict) IsRedirect() bool
- func (o *CreateMappingRuleConflict) IsServerError() bool
- func (o *CreateMappingRuleConflict) IsSuccess() bool
- func (o *CreateMappingRuleConflict) String() string
- type CreateMappingRuleDefault
- func (o *CreateMappingRuleDefault) Code() int
- func (o *CreateMappingRuleDefault) Error() string
- func (o *CreateMappingRuleDefault) GetPayload() models.GenericError
- func (o *CreateMappingRuleDefault) IsClientError() bool
- func (o *CreateMappingRuleDefault) IsCode(code int) bool
- func (o *CreateMappingRuleDefault) IsRedirect() bool
- func (o *CreateMappingRuleDefault) IsServerError() bool
- func (o *CreateMappingRuleDefault) IsSuccess() bool
- func (o *CreateMappingRuleDefault) String() string
- type CreateMappingRuleInternalServerError
- func (o *CreateMappingRuleInternalServerError) Code() int
- func (o *CreateMappingRuleInternalServerError) Error() string
- func (o *CreateMappingRuleInternalServerError) GetPayload() *models.APIError
- func (o *CreateMappingRuleInternalServerError) IsClientError() bool
- func (o *CreateMappingRuleInternalServerError) IsCode(code int) bool
- func (o *CreateMappingRuleInternalServerError) IsRedirect() bool
- func (o *CreateMappingRuleInternalServerError) IsServerError() bool
- func (o *CreateMappingRuleInternalServerError) IsSuccess() bool
- func (o *CreateMappingRuleInternalServerError) String() string
- type CreateMappingRuleOK
- func (o *CreateMappingRuleOK) Code() int
- func (o *CreateMappingRuleOK) Error() string
- func (o *CreateMappingRuleOK) GetPayload() *models.Configv1CreateMappingRuleResponse
- func (o *CreateMappingRuleOK) IsClientError() bool
- func (o *CreateMappingRuleOK) IsCode(code int) bool
- func (o *CreateMappingRuleOK) IsRedirect() bool
- func (o *CreateMappingRuleOK) IsServerError() bool
- func (o *CreateMappingRuleOK) IsSuccess() bool
- func (o *CreateMappingRuleOK) String() string
- type CreateMappingRuleParams
- func NewCreateMappingRuleParams() *CreateMappingRuleParams
- func NewCreateMappingRuleParamsWithContext(ctx context.Context) *CreateMappingRuleParams
- func NewCreateMappingRuleParamsWithHTTPClient(client *http.Client) *CreateMappingRuleParams
- func NewCreateMappingRuleParamsWithTimeout(timeout time.Duration) *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) SetBody(body *models.Configv1CreateMappingRuleRequest)
- func (o *CreateMappingRuleParams) SetContext(ctx context.Context)
- func (o *CreateMappingRuleParams) SetDefaults()
- func (o *CreateMappingRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateMappingRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateMappingRuleParams) WithBody(body *models.Configv1CreateMappingRuleRequest) *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) WithContext(ctx context.Context) *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) WithDefaults() *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) WithHTTPClient(client *http.Client) *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) WithTimeout(timeout time.Duration) *CreateMappingRuleParams
- func (o *CreateMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMappingRuleReader
- type DeleteMappingRuleBadRequest
- func (o *DeleteMappingRuleBadRequest) Code() int
- func (o *DeleteMappingRuleBadRequest) Error() string
- func (o *DeleteMappingRuleBadRequest) GetPayload() *models.APIError
- func (o *DeleteMappingRuleBadRequest) IsClientError() bool
- func (o *DeleteMappingRuleBadRequest) IsCode(code int) bool
- func (o *DeleteMappingRuleBadRequest) IsRedirect() bool
- func (o *DeleteMappingRuleBadRequest) IsServerError() bool
- func (o *DeleteMappingRuleBadRequest) IsSuccess() bool
- func (o *DeleteMappingRuleBadRequest) String() string
- type DeleteMappingRuleDefault
- func (o *DeleteMappingRuleDefault) Code() int
- func (o *DeleteMappingRuleDefault) Error() string
- func (o *DeleteMappingRuleDefault) GetPayload() models.GenericError
- func (o *DeleteMappingRuleDefault) IsClientError() bool
- func (o *DeleteMappingRuleDefault) IsCode(code int) bool
- func (o *DeleteMappingRuleDefault) IsRedirect() bool
- func (o *DeleteMappingRuleDefault) IsServerError() bool
- func (o *DeleteMappingRuleDefault) IsSuccess() bool
- func (o *DeleteMappingRuleDefault) String() string
- type DeleteMappingRuleInternalServerError
- func (o *DeleteMappingRuleInternalServerError) Code() int
- func (o *DeleteMappingRuleInternalServerError) Error() string
- func (o *DeleteMappingRuleInternalServerError) GetPayload() *models.APIError
- func (o *DeleteMappingRuleInternalServerError) IsClientError() bool
- func (o *DeleteMappingRuleInternalServerError) IsCode(code int) bool
- func (o *DeleteMappingRuleInternalServerError) IsRedirect() bool
- func (o *DeleteMappingRuleInternalServerError) IsServerError() bool
- func (o *DeleteMappingRuleInternalServerError) IsSuccess() bool
- func (o *DeleteMappingRuleInternalServerError) String() string
- type DeleteMappingRuleNotFound
- func (o *DeleteMappingRuleNotFound) Code() int
- func (o *DeleteMappingRuleNotFound) Error() string
- func (o *DeleteMappingRuleNotFound) GetPayload() *models.APIError
- func (o *DeleteMappingRuleNotFound) IsClientError() bool
- func (o *DeleteMappingRuleNotFound) IsCode(code int) bool
- func (o *DeleteMappingRuleNotFound) IsRedirect() bool
- func (o *DeleteMappingRuleNotFound) IsServerError() bool
- func (o *DeleteMappingRuleNotFound) IsSuccess() bool
- func (o *DeleteMappingRuleNotFound) String() string
- type DeleteMappingRuleOK
- func (o *DeleteMappingRuleOK) Code() int
- func (o *DeleteMappingRuleOK) Error() string
- func (o *DeleteMappingRuleOK) GetPayload() models.Configv1DeleteMappingRuleResponse
- func (o *DeleteMappingRuleOK) IsClientError() bool
- func (o *DeleteMappingRuleOK) IsCode(code int) bool
- func (o *DeleteMappingRuleOK) IsRedirect() bool
- func (o *DeleteMappingRuleOK) IsServerError() bool
- func (o *DeleteMappingRuleOK) IsSuccess() bool
- func (o *DeleteMappingRuleOK) String() string
- type DeleteMappingRuleParams
- func NewDeleteMappingRuleParams() *DeleteMappingRuleParams
- func NewDeleteMappingRuleParamsWithContext(ctx context.Context) *DeleteMappingRuleParams
- func NewDeleteMappingRuleParamsWithHTTPClient(client *http.Client) *DeleteMappingRuleParams
- func NewDeleteMappingRuleParamsWithTimeout(timeout time.Duration) *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) SetContext(ctx context.Context)
- func (o *DeleteMappingRuleParams) SetDefaults()
- func (o *DeleteMappingRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMappingRuleParams) SetSlug(slug string)
- func (o *DeleteMappingRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMappingRuleParams) WithContext(ctx context.Context) *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) WithDefaults() *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) WithHTTPClient(client *http.Client) *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) WithSlug(slug string) *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) WithTimeout(timeout time.Duration) *DeleteMappingRuleParams
- func (o *DeleteMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMappingRuleReader
- type ListMappingRulesDefault
- func (o *ListMappingRulesDefault) Code() int
- func (o *ListMappingRulesDefault) Error() string
- func (o *ListMappingRulesDefault) GetPayload() models.GenericError
- func (o *ListMappingRulesDefault) IsClientError() bool
- func (o *ListMappingRulesDefault) IsCode(code int) bool
- func (o *ListMappingRulesDefault) IsRedirect() bool
- func (o *ListMappingRulesDefault) IsServerError() bool
- func (o *ListMappingRulesDefault) IsSuccess() bool
- func (o *ListMappingRulesDefault) String() string
- type ListMappingRulesInternalServerError
- func (o *ListMappingRulesInternalServerError) Code() int
- func (o *ListMappingRulesInternalServerError) Error() string
- func (o *ListMappingRulesInternalServerError) GetPayload() *models.APIError
- func (o *ListMappingRulesInternalServerError) IsClientError() bool
- func (o *ListMappingRulesInternalServerError) IsCode(code int) bool
- func (o *ListMappingRulesInternalServerError) IsRedirect() bool
- func (o *ListMappingRulesInternalServerError) IsServerError() bool
- func (o *ListMappingRulesInternalServerError) IsSuccess() bool
- func (o *ListMappingRulesInternalServerError) String() string
- type ListMappingRulesOK
- func (o *ListMappingRulesOK) Code() int
- func (o *ListMappingRulesOK) Error() string
- func (o *ListMappingRulesOK) GetPayload() *models.Configv1ListMappingRulesResponse
- func (o *ListMappingRulesOK) IsClientError() bool
- func (o *ListMappingRulesOK) IsCode(code int) bool
- func (o *ListMappingRulesOK) IsRedirect() bool
- func (o *ListMappingRulesOK) IsServerError() bool
- func (o *ListMappingRulesOK) IsSuccess() bool
- func (o *ListMappingRulesOK) String() string
- type ListMappingRulesParams
- func NewListMappingRulesParams() *ListMappingRulesParams
- func NewListMappingRulesParamsWithContext(ctx context.Context) *ListMappingRulesParams
- func NewListMappingRulesParamsWithHTTPClient(client *http.Client) *ListMappingRulesParams
- func NewListMappingRulesParamsWithTimeout(timeout time.Duration) *ListMappingRulesParams
- func (o *ListMappingRulesParams) SetBucketSlugs(bucketSlugs []string)
- func (o *ListMappingRulesParams) SetContext(ctx context.Context)
- func (o *ListMappingRulesParams) SetDefaults()
- func (o *ListMappingRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListMappingRulesParams) SetNames(names []string)
- func (o *ListMappingRulesParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListMappingRulesParams) SetPageToken(pageToken *string)
- func (o *ListMappingRulesParams) SetSlugs(slugs []string)
- func (o *ListMappingRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListMappingRulesParams) WithBucketSlugs(bucketSlugs []string) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithContext(ctx context.Context) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithDefaults() *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithHTTPClient(client *http.Client) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithNames(names []string) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithPageMaxSize(pageMaxSize *int64) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithPageToken(pageToken *string) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithSlugs(slugs []string) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WithTimeout(timeout time.Duration) *ListMappingRulesParams
- func (o *ListMappingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListMappingRulesReader
- type ReadMappingRuleDefault
- func (o *ReadMappingRuleDefault) Code() int
- func (o *ReadMappingRuleDefault) Error() string
- func (o *ReadMappingRuleDefault) GetPayload() models.GenericError
- func (o *ReadMappingRuleDefault) IsClientError() bool
- func (o *ReadMappingRuleDefault) IsCode(code int) bool
- func (o *ReadMappingRuleDefault) IsRedirect() bool
- func (o *ReadMappingRuleDefault) IsServerError() bool
- func (o *ReadMappingRuleDefault) IsSuccess() bool
- func (o *ReadMappingRuleDefault) String() string
- type ReadMappingRuleInternalServerError
- func (o *ReadMappingRuleInternalServerError) Code() int
- func (o *ReadMappingRuleInternalServerError) Error() string
- func (o *ReadMappingRuleInternalServerError) GetPayload() *models.APIError
- func (o *ReadMappingRuleInternalServerError) IsClientError() bool
- func (o *ReadMappingRuleInternalServerError) IsCode(code int) bool
- func (o *ReadMappingRuleInternalServerError) IsRedirect() bool
- func (o *ReadMappingRuleInternalServerError) IsServerError() bool
- func (o *ReadMappingRuleInternalServerError) IsSuccess() bool
- func (o *ReadMappingRuleInternalServerError) String() string
- type ReadMappingRuleNotFound
- func (o *ReadMappingRuleNotFound) Code() int
- func (o *ReadMappingRuleNotFound) Error() string
- func (o *ReadMappingRuleNotFound) GetPayload() *models.APIError
- func (o *ReadMappingRuleNotFound) IsClientError() bool
- func (o *ReadMappingRuleNotFound) IsCode(code int) bool
- func (o *ReadMappingRuleNotFound) IsRedirect() bool
- func (o *ReadMappingRuleNotFound) IsServerError() bool
- func (o *ReadMappingRuleNotFound) IsSuccess() bool
- func (o *ReadMappingRuleNotFound) String() string
- type ReadMappingRuleOK
- func (o *ReadMappingRuleOK) Code() int
- func (o *ReadMappingRuleOK) Error() string
- func (o *ReadMappingRuleOK) GetPayload() *models.Configv1ReadMappingRuleResponse
- func (o *ReadMappingRuleOK) IsClientError() bool
- func (o *ReadMappingRuleOK) IsCode(code int) bool
- func (o *ReadMappingRuleOK) IsRedirect() bool
- func (o *ReadMappingRuleOK) IsServerError() bool
- func (o *ReadMappingRuleOK) IsSuccess() bool
- func (o *ReadMappingRuleOK) String() string
- type ReadMappingRuleParams
- func NewReadMappingRuleParams() *ReadMappingRuleParams
- func NewReadMappingRuleParamsWithContext(ctx context.Context) *ReadMappingRuleParams
- func NewReadMappingRuleParamsWithHTTPClient(client *http.Client) *ReadMappingRuleParams
- func NewReadMappingRuleParamsWithTimeout(timeout time.Duration) *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) SetContext(ctx context.Context)
- func (o *ReadMappingRuleParams) SetDefaults()
- func (o *ReadMappingRuleParams) SetHTTPClient(client *http.Client)
- func (o *ReadMappingRuleParams) SetSlug(slug string)
- func (o *ReadMappingRuleParams) SetTimeout(timeout time.Duration)
- func (o *ReadMappingRuleParams) WithContext(ctx context.Context) *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) WithDefaults() *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) WithHTTPClient(client *http.Client) *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) WithSlug(slug string) *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) WithTimeout(timeout time.Duration) *ReadMappingRuleParams
- func (o *ReadMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadMappingRuleReader
- type UpdateMappingRuleBadRequest
- func (o *UpdateMappingRuleBadRequest) Code() int
- func (o *UpdateMappingRuleBadRequest) Error() string
- func (o *UpdateMappingRuleBadRequest) GetPayload() *models.APIError
- func (o *UpdateMappingRuleBadRequest) IsClientError() bool
- func (o *UpdateMappingRuleBadRequest) IsCode(code int) bool
- func (o *UpdateMappingRuleBadRequest) IsRedirect() bool
- func (o *UpdateMappingRuleBadRequest) IsServerError() bool
- func (o *UpdateMappingRuleBadRequest) IsSuccess() bool
- func (o *UpdateMappingRuleBadRequest) String() string
- type UpdateMappingRuleBody
- type UpdateMappingRuleConflict
- func (o *UpdateMappingRuleConflict) Code() int
- func (o *UpdateMappingRuleConflict) Error() string
- func (o *UpdateMappingRuleConflict) GetPayload() *models.APIError
- func (o *UpdateMappingRuleConflict) IsClientError() bool
- func (o *UpdateMappingRuleConflict) IsCode(code int) bool
- func (o *UpdateMappingRuleConflict) IsRedirect() bool
- func (o *UpdateMappingRuleConflict) IsServerError() bool
- func (o *UpdateMappingRuleConflict) IsSuccess() bool
- func (o *UpdateMappingRuleConflict) String() string
- type UpdateMappingRuleDefault
- func (o *UpdateMappingRuleDefault) Code() int
- func (o *UpdateMappingRuleDefault) Error() string
- func (o *UpdateMappingRuleDefault) GetPayload() models.GenericError
- func (o *UpdateMappingRuleDefault) IsClientError() bool
- func (o *UpdateMappingRuleDefault) IsCode(code int) bool
- func (o *UpdateMappingRuleDefault) IsRedirect() bool
- func (o *UpdateMappingRuleDefault) IsServerError() bool
- func (o *UpdateMappingRuleDefault) IsSuccess() bool
- func (o *UpdateMappingRuleDefault) String() string
- type UpdateMappingRuleInternalServerError
- func (o *UpdateMappingRuleInternalServerError) Code() int
- func (o *UpdateMappingRuleInternalServerError) Error() string
- func (o *UpdateMappingRuleInternalServerError) GetPayload() *models.APIError
- func (o *UpdateMappingRuleInternalServerError) IsClientError() bool
- func (o *UpdateMappingRuleInternalServerError) IsCode(code int) bool
- func (o *UpdateMappingRuleInternalServerError) IsRedirect() bool
- func (o *UpdateMappingRuleInternalServerError) IsServerError() bool
- func (o *UpdateMappingRuleInternalServerError) IsSuccess() bool
- func (o *UpdateMappingRuleInternalServerError) String() string
- type UpdateMappingRuleNotFound
- func (o *UpdateMappingRuleNotFound) Code() int
- func (o *UpdateMappingRuleNotFound) Error() string
- func (o *UpdateMappingRuleNotFound) GetPayload() *models.APIError
- func (o *UpdateMappingRuleNotFound) IsClientError() bool
- func (o *UpdateMappingRuleNotFound) IsCode(code int) bool
- func (o *UpdateMappingRuleNotFound) IsRedirect() bool
- func (o *UpdateMappingRuleNotFound) IsServerError() bool
- func (o *UpdateMappingRuleNotFound) IsSuccess() bool
- func (o *UpdateMappingRuleNotFound) String() string
- type UpdateMappingRuleOK
- func (o *UpdateMappingRuleOK) Code() int
- func (o *UpdateMappingRuleOK) Error() string
- func (o *UpdateMappingRuleOK) GetPayload() *models.Configv1UpdateMappingRuleResponse
- func (o *UpdateMappingRuleOK) IsClientError() bool
- func (o *UpdateMappingRuleOK) IsCode(code int) bool
- func (o *UpdateMappingRuleOK) IsRedirect() bool
- func (o *UpdateMappingRuleOK) IsServerError() bool
- func (o *UpdateMappingRuleOK) IsSuccess() bool
- func (o *UpdateMappingRuleOK) String() string
- type UpdateMappingRuleParams
- func NewUpdateMappingRuleParams() *UpdateMappingRuleParams
- func NewUpdateMappingRuleParamsWithContext(ctx context.Context) *UpdateMappingRuleParams
- func NewUpdateMappingRuleParamsWithHTTPClient(client *http.Client) *UpdateMappingRuleParams
- func NewUpdateMappingRuleParamsWithTimeout(timeout time.Duration) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) SetBody(body UpdateMappingRuleBody)
- func (o *UpdateMappingRuleParams) SetContext(ctx context.Context)
- func (o *UpdateMappingRuleParams) SetDefaults()
- func (o *UpdateMappingRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMappingRuleParams) SetSlug(slug string)
- func (o *UpdateMappingRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMappingRuleParams) WithBody(body UpdateMappingRuleBody) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WithContext(ctx context.Context) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WithDefaults() *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WithHTTPClient(client *http.Client) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WithSlug(slug string) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WithTimeout(timeout time.Duration) *UpdateMappingRuleParams
- func (o *UpdateMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMappingRuleReader
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 ¶
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 (o *CreateMappingRuleBadRequest) Error() string
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 ¶
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 (o *CreateMappingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *CreateMappingRuleInternalServerError) Code() int
Code gets the status code for the create mapping rule internal server error response
func (*CreateMappingRuleInternalServerError) Error ¶
func (o *CreateMappingRuleInternalServerError) Error() string
func (*CreateMappingRuleInternalServerError) GetPayload ¶
func (o *CreateMappingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *CreateMappingRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this create mapping rule internal server error response a status code equal to that given
func (*CreateMappingRuleInternalServerError) IsRedirect ¶
func (o *CreateMappingRuleInternalServerError) IsRedirect() bool
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 ¶
func (o *CreateMappingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this create mapping rule internal server error response has a 2xx status code
func (*CreateMappingRuleInternalServerError) String ¶
func (o *CreateMappingRuleInternalServerError) String() 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 (o *CreateMappingRuleOK) GetPayload() *models.Configv1CreateMappingRuleResponse
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 ¶
func (o *CreateMappingRuleParams) SetBody(body *models.Configv1CreateMappingRuleRequest)
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 ¶
func (o *CreateMappingRuleParams) WithBody(body *models.Configv1CreateMappingRuleRequest) *CreateMappingRuleParams
WithBody adds the body to the create mapping rule params
func (*CreateMappingRuleParams) WithContext ¶
func (o *CreateMappingRuleParams) WithContext(ctx context.Context) *CreateMappingRuleParams
WithContext adds the context to the create mapping rule params
func (*CreateMappingRuleParams) WithDefaults ¶
func (o *CreateMappingRuleParams) WithDefaults() *CreateMappingRuleParams
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 ¶
func (o *CreateMappingRuleParams) WithTimeout(timeout time.Duration) *CreateMappingRuleParams
WithTimeout adds the timeout to the create mapping rule params
func (*CreateMappingRuleParams) WriteToRequest ¶
func (o *CreateMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *DeleteMappingRuleBadRequest) Error() string
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 (o *DeleteMappingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *DeleteMappingRuleInternalServerError) Code() int
Code gets the status code for the delete mapping rule internal server error response
func (*DeleteMappingRuleInternalServerError) Error ¶
func (o *DeleteMappingRuleInternalServerError) Error() string
func (*DeleteMappingRuleInternalServerError) GetPayload ¶
func (o *DeleteMappingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *DeleteMappingRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this delete mapping rule internal server error response a status code equal to that given
func (*DeleteMappingRuleInternalServerError) IsRedirect ¶
func (o *DeleteMappingRuleInternalServerError) IsRedirect() bool
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 ¶
func (o *DeleteMappingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete mapping rule internal server error response has a 2xx status code
func (*DeleteMappingRuleInternalServerError) String ¶
func (o *DeleteMappingRuleInternalServerError) String() string
type DeleteMappingRuleNotFound ¶
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 (o *DeleteMappingRuleOK) GetPayload() models.Configv1DeleteMappingRuleResponse
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 ¶
func (o *DeleteMappingRuleParams) WithContext(ctx context.Context) *DeleteMappingRuleParams
WithContext adds the context to the delete mapping rule params
func (*DeleteMappingRuleParams) WithDefaults ¶
func (o *DeleteMappingRuleParams) WithDefaults() *DeleteMappingRuleParams
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 ¶
func (o *DeleteMappingRuleParams) WithSlug(slug string) *DeleteMappingRuleParams
WithSlug adds the slug to the delete mapping rule params
func (*DeleteMappingRuleParams) WithTimeout ¶
func (o *DeleteMappingRuleParams) WithTimeout(timeout time.Duration) *DeleteMappingRuleParams
WithTimeout adds the timeout to the delete mapping rule params
func (*DeleteMappingRuleParams) WriteToRequest ¶
func (o *DeleteMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ListMappingRulesDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *ListMappingRulesInternalServerError) Code() int
Code gets the status code for the list mapping rules internal server error response
func (*ListMappingRulesInternalServerError) Error ¶
func (o *ListMappingRulesInternalServerError) Error() string
func (*ListMappingRulesInternalServerError) GetPayload ¶
func (o *ListMappingRulesInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ListMappingRulesInternalServerError) IsCode(code int) bool
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 ¶
func (o *ListMappingRulesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list mapping rules internal server error response has a 2xx status code
func (*ListMappingRulesInternalServerError) String ¶
func (o *ListMappingRulesInternalServerError) String() 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 (o *ListMappingRulesOK) GetPayload() *models.Configv1ListMappingRulesResponse
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 ¶
func (o *ListMappingRulesParams) WithContext(ctx context.Context) *ListMappingRulesParams
WithContext adds the context to the list mapping rules params
func (*ListMappingRulesParams) WithDefaults ¶
func (o *ListMappingRulesParams) WithDefaults() *ListMappingRulesParams
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 ¶
func (o *ListMappingRulesParams) WithTimeout(timeout time.Duration) *ListMappingRulesParams
WithTimeout adds the timeout to the list mapping rules params
func (*ListMappingRulesParams) WriteToRequest ¶
func (o *ListMappingRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *ReadMappingRuleInternalServerError) Code() int
Code gets the status code for the read mapping rule internal server error response
func (*ReadMappingRuleInternalServerError) Error ¶
func (o *ReadMappingRuleInternalServerError) Error() string
func (*ReadMappingRuleInternalServerError) GetPayload ¶
func (o *ReadMappingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadMappingRuleInternalServerError) IsCode(code int) bool
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 ¶
func (o *ReadMappingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this read mapping rule internal server error response has a 2xx status code
func (*ReadMappingRuleInternalServerError) String ¶
func (o *ReadMappingRuleInternalServerError) String() string
type ReadMappingRuleNotFound ¶
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 (o *ReadMappingRuleOK) GetPayload() *models.Configv1ReadMappingRuleResponse
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 ¶
func (o *ReadMappingRuleParams) WithContext(ctx context.Context) *ReadMappingRuleParams
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 ¶
func (o *ReadMappingRuleParams) WithSlug(slug string) *ReadMappingRuleParams
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 ¶
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 (o *UpdateMappingRuleBadRequest) Error() string
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 ¶
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
type UpdateMappingRuleConflict ¶
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 (o *UpdateMappingRuleDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *UpdateMappingRuleInternalServerError) Code() int
Code gets the status code for the update mapping rule internal server error response
func (*UpdateMappingRuleInternalServerError) Error ¶
func (o *UpdateMappingRuleInternalServerError) Error() string
func (*UpdateMappingRuleInternalServerError) GetPayload ¶
func (o *UpdateMappingRuleInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *UpdateMappingRuleInternalServerError) IsCode(code int) bool
IsCode returns true when this update mapping rule internal server error response a status code equal to that given
func (*UpdateMappingRuleInternalServerError) IsRedirect ¶
func (o *UpdateMappingRuleInternalServerError) IsRedirect() bool
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 ¶
func (o *UpdateMappingRuleInternalServerError) IsSuccess() bool
IsSuccess returns true when this update mapping rule internal server error response has a 2xx status code
func (*UpdateMappingRuleInternalServerError) String ¶
func (o *UpdateMappingRuleInternalServerError) String() string
type UpdateMappingRuleNotFound ¶
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 (o *UpdateMappingRuleOK) GetPayload() *models.Configv1UpdateMappingRuleResponse
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 ¶
func (o *UpdateMappingRuleParams) SetBody(body UpdateMappingRuleBody)
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 ¶
func (o *UpdateMappingRuleParams) WithBody(body UpdateMappingRuleBody) *UpdateMappingRuleParams
WithBody adds the body to the update mapping rule params
func (*UpdateMappingRuleParams) WithContext ¶
func (o *UpdateMappingRuleParams) WithContext(ctx context.Context) *UpdateMappingRuleParams
WithContext adds the context to the update mapping rule params
func (*UpdateMappingRuleParams) WithDefaults ¶
func (o *UpdateMappingRuleParams) WithDefaults() *UpdateMappingRuleParams
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 ¶
func (o *UpdateMappingRuleParams) WithSlug(slug string) *UpdateMappingRuleParams
WithSlug adds the slug to the update mapping rule params
func (*UpdateMappingRuleParams) WithTimeout ¶
func (o *UpdateMappingRuleParams) WithTimeout(timeout time.Duration) *UpdateMappingRuleParams
WithTimeout adds the timeout to the update mapping rule params
func (*UpdateMappingRuleParams) WriteToRequest ¶
func (o *UpdateMappingRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- create_mapping_rule_parameters.go
- create_mapping_rule_responses.go
- delete_mapping_rule_parameters.go
- delete_mapping_rule_responses.go
- list_mapping_rules_parameters.go
- list_mapping_rules_responses.go
- mapping_rule_client.go
- read_mapping_rule_parameters.go
- read_mapping_rule_responses.go
- update_mapping_rule_parameters.go
- update_mapping_rule_responses.go