http_response_rule

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 12 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 http response rule API

func (*Client) CreateHTTPResponseRule

CreateHTTPResponseRule adds a new HTTP response rule

Adds a new HTTP Response Rule of the specified type in the specified parent.

func (*Client) DeleteHTTPResponseRule

DeleteHTTPResponseRule deletes a HTTP response rule

Deletes a HTTP Response Rule configuration by it's index from the specified parent.

func (*Client) GetHTTPResponseRule

func (a *Client) GetHTTPResponseRule(params *GetHTTPResponseRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPResponseRuleOK, error)

GetHTTPResponseRule returns one HTTP response rule

Returns one HTTP Response Rule configuration by it's index in the specified parent.

func (*Client) GetHTTPResponseRules

func (a *Client) GetHTTPResponseRules(params *GetHTTPResponseRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPResponseRulesOK, error)

GetHTTPResponseRules returns an array of all HTTP response rules

Returns all HTTP Response Rules that are configured in specified parent.

func (*Client) ReplaceHTTPResponseRule

ReplaceHTTPResponseRule replaces a HTTP response rule

Replaces a HTTP Response Rule configuration by it's index in the specified parent.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new http response rule API client.

type CreateHTTPResponseRuleAccepted

type CreateHTTPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.HTTPResponseRule
}

CreateHTTPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateHTTPResponseRuleAccepted

func NewCreateHTTPResponseRuleAccepted() *CreateHTTPResponseRuleAccepted

NewCreateHTTPResponseRuleAccepted creates a CreateHTTPResponseRuleAccepted with default headers values

func (*CreateHTTPResponseRuleAccepted) Error

func (*CreateHTTPResponseRuleAccepted) GetPayload added in v0.2.0

type CreateHTTPResponseRuleBadRequest

type CreateHTTPResponseRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateHTTPResponseRuleBadRequest handles this case with default header values.

Bad request

func NewCreateHTTPResponseRuleBadRequest

func NewCreateHTTPResponseRuleBadRequest() *CreateHTTPResponseRuleBadRequest

NewCreateHTTPResponseRuleBadRequest creates a CreateHTTPResponseRuleBadRequest with default headers values

func (*CreateHTTPResponseRuleBadRequest) Error

func (*CreateHTTPResponseRuleBadRequest) GetPayload added in v0.2.0

type CreateHTTPResponseRuleConflict

type CreateHTTPResponseRuleConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateHTTPResponseRuleConflict handles this case with default header values.

The specified resource already exists

func NewCreateHTTPResponseRuleConflict

func NewCreateHTTPResponseRuleConflict() *CreateHTTPResponseRuleConflict

NewCreateHTTPResponseRuleConflict creates a CreateHTTPResponseRuleConflict with default headers values

func (*CreateHTTPResponseRuleConflict) Error

func (*CreateHTTPResponseRuleConflict) GetPayload added in v0.2.0

func (o *CreateHTTPResponseRuleConflict) GetPayload() *models.Error

type CreateHTTPResponseRuleCreated

type CreateHTTPResponseRuleCreated struct {
	Payload *models.HTTPResponseRule
}

CreateHTTPResponseRuleCreated handles this case with default header values.

HTTP Response Rule created

func NewCreateHTTPResponseRuleCreated

func NewCreateHTTPResponseRuleCreated() *CreateHTTPResponseRuleCreated

NewCreateHTTPResponseRuleCreated creates a CreateHTTPResponseRuleCreated with default headers values

func (*CreateHTTPResponseRuleCreated) Error

func (*CreateHTTPResponseRuleCreated) GetPayload added in v0.2.0

type CreateHTTPResponseRuleDefault

type CreateHTTPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateHTTPResponseRuleDefault handles this case with default header values.

General Error

func NewCreateHTTPResponseRuleDefault

func NewCreateHTTPResponseRuleDefault(code int) *CreateHTTPResponseRuleDefault

NewCreateHTTPResponseRuleDefault creates a CreateHTTPResponseRuleDefault with default headers values

func (*CreateHTTPResponseRuleDefault) Code

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

func (*CreateHTTPResponseRuleDefault) Error

func (*CreateHTTPResponseRuleDefault) GetPayload added in v0.2.0

func (o *CreateHTTPResponseRuleDefault) GetPayload() *models.Error

type CreateHTTPResponseRuleParams

type CreateHTTPResponseRuleParams struct {

	/*Data*/
	Data *models.HTTPResponseRule
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

CreateHTTPResponseRuleParams contains all the parameters to send to the API endpoint for the create HTTP response rule operation typically these are written to a http.Request

func NewCreateHTTPResponseRuleParams

func NewCreateHTTPResponseRuleParams() *CreateHTTPResponseRuleParams

NewCreateHTTPResponseRuleParams creates a new CreateHTTPResponseRuleParams object with the default values initialized.

func NewCreateHTTPResponseRuleParamsWithContext

func NewCreateHTTPResponseRuleParamsWithContext(ctx context.Context) *CreateHTTPResponseRuleParams

NewCreateHTTPResponseRuleParamsWithContext creates a new CreateHTTPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateHTTPResponseRuleParamsWithHTTPClient

func NewCreateHTTPResponseRuleParamsWithHTTPClient(client *http.Client) *CreateHTTPResponseRuleParams

NewCreateHTTPResponseRuleParamsWithHTTPClient creates a new CreateHTTPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateHTTPResponseRuleParamsWithTimeout

func NewCreateHTTPResponseRuleParamsWithTimeout(timeout time.Duration) *CreateHTTPResponseRuleParams

NewCreateHTTPResponseRuleParamsWithTimeout creates a new CreateHTTPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateHTTPResponseRuleParams) SetContext

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

SetContext adds the context to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetData

SetData adds the data to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetForceReload

func (o *CreateHTTPResponseRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetParentName

func (o *CreateHTTPResponseRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetParentType

func (o *CreateHTTPResponseRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetTransactionID

func (o *CreateHTTPResponseRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) SetVersion

func (o *CreateHTTPResponseRuleParams) SetVersion(version *int64)

SetVersion adds the version to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithContext

WithContext adds the context to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithData

WithData adds the data to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithForceReload

func (o *CreateHTTPResponseRuleParams) WithForceReload(forceReload *bool) *CreateHTTPResponseRuleParams

WithForceReload adds the forceReload to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithParentName

func (o *CreateHTTPResponseRuleParams) WithParentName(parentName string) *CreateHTTPResponseRuleParams

WithParentName adds the parentName to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithParentType

func (o *CreateHTTPResponseRuleParams) WithParentType(parentType string) *CreateHTTPResponseRuleParams

WithParentType adds the parentType to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithTransactionID

func (o *CreateHTTPResponseRuleParams) WithTransactionID(transactionID *string) *CreateHTTPResponseRuleParams

WithTransactionID adds the transactionID to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WithVersion

WithVersion adds the version to the create HTTP response rule params

func (*CreateHTTPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateHTTPResponseRuleReader

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

CreateHTTPResponseRuleReader is a Reader for the CreateHTTPResponseRule structure.

func (*CreateHTTPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteHTTPResponseRuleAccepted

type DeleteHTTPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeleteHTTPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteHTTPResponseRuleAccepted

func NewDeleteHTTPResponseRuleAccepted() *DeleteHTTPResponseRuleAccepted

NewDeleteHTTPResponseRuleAccepted creates a DeleteHTTPResponseRuleAccepted with default headers values

func (*DeleteHTTPResponseRuleAccepted) Error

type DeleteHTTPResponseRuleDefault

type DeleteHTTPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteHTTPResponseRuleDefault handles this case with default header values.

General Error

func NewDeleteHTTPResponseRuleDefault

func NewDeleteHTTPResponseRuleDefault(code int) *DeleteHTTPResponseRuleDefault

NewDeleteHTTPResponseRuleDefault creates a DeleteHTTPResponseRuleDefault with default headers values

func (*DeleteHTTPResponseRuleDefault) Code

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

func (*DeleteHTTPResponseRuleDefault) Error

func (*DeleteHTTPResponseRuleDefault) GetPayload added in v0.2.0

func (o *DeleteHTTPResponseRuleDefault) GetPayload() *models.Error

type DeleteHTTPResponseRuleNoContent

type DeleteHTTPResponseRuleNoContent struct {
}

DeleteHTTPResponseRuleNoContent handles this case with default header values.

HTTP Response Rule deleted

func NewDeleteHTTPResponseRuleNoContent

func NewDeleteHTTPResponseRuleNoContent() *DeleteHTTPResponseRuleNoContent

NewDeleteHTTPResponseRuleNoContent creates a DeleteHTTPResponseRuleNoContent with default headers values

func (*DeleteHTTPResponseRuleNoContent) Error

type DeleteHTTPResponseRuleNotFound

type DeleteHTTPResponseRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

DeleteHTTPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteHTTPResponseRuleNotFound

func NewDeleteHTTPResponseRuleNotFound() *DeleteHTTPResponseRuleNotFound

NewDeleteHTTPResponseRuleNotFound creates a DeleteHTTPResponseRuleNotFound with default headers values

func (*DeleteHTTPResponseRuleNotFound) Error

func (*DeleteHTTPResponseRuleNotFound) GetPayload added in v0.2.0

func (o *DeleteHTTPResponseRuleNotFound) GetPayload() *models.Error

type DeleteHTTPResponseRuleParams

type DeleteHTTPResponseRuleParams struct {

	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Index
	  HTTP Response Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

DeleteHTTPResponseRuleParams contains all the parameters to send to the API endpoint for the delete HTTP response rule operation typically these are written to a http.Request

func NewDeleteHTTPResponseRuleParams

func NewDeleteHTTPResponseRuleParams() *DeleteHTTPResponseRuleParams

NewDeleteHTTPResponseRuleParams creates a new DeleteHTTPResponseRuleParams object with the default values initialized.

func NewDeleteHTTPResponseRuleParamsWithContext

func NewDeleteHTTPResponseRuleParamsWithContext(ctx context.Context) *DeleteHTTPResponseRuleParams

NewDeleteHTTPResponseRuleParamsWithContext creates a new DeleteHTTPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteHTTPResponseRuleParamsWithHTTPClient

func NewDeleteHTTPResponseRuleParamsWithHTTPClient(client *http.Client) *DeleteHTTPResponseRuleParams

NewDeleteHTTPResponseRuleParamsWithHTTPClient creates a new DeleteHTTPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteHTTPResponseRuleParamsWithTimeout

func NewDeleteHTTPResponseRuleParamsWithTimeout(timeout time.Duration) *DeleteHTTPResponseRuleParams

NewDeleteHTTPResponseRuleParamsWithTimeout creates a new DeleteHTTPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteHTTPResponseRuleParams) SetContext

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

SetContext adds the context to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetForceReload

func (o *DeleteHTTPResponseRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetIndex

func (o *DeleteHTTPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetParentName

func (o *DeleteHTTPResponseRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetParentType

func (o *DeleteHTTPResponseRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetTransactionID

func (o *DeleteHTTPResponseRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) SetVersion

func (o *DeleteHTTPResponseRuleParams) SetVersion(version *int64)

SetVersion adds the version to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithContext

WithContext adds the context to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithForceReload

func (o *DeleteHTTPResponseRuleParams) WithForceReload(forceReload *bool) *DeleteHTTPResponseRuleParams

WithForceReload adds the forceReload to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithIndex

WithIndex adds the index to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithParentName

func (o *DeleteHTTPResponseRuleParams) WithParentName(parentName string) *DeleteHTTPResponseRuleParams

WithParentName adds the parentName to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithParentType

func (o *DeleteHTTPResponseRuleParams) WithParentType(parentType string) *DeleteHTTPResponseRuleParams

WithParentType adds the parentType to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithTransactionID

func (o *DeleteHTTPResponseRuleParams) WithTransactionID(transactionID *string) *DeleteHTTPResponseRuleParams

WithTransactionID adds the transactionID to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WithVersion

WithVersion adds the version to the delete HTTP response rule params

func (*DeleteHTTPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteHTTPResponseRuleReader

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

DeleteHTTPResponseRuleReader is a Reader for the DeleteHTTPResponseRule structure.

func (*DeleteHTTPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPResponseRuleDefault

type GetHTTPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetHTTPResponseRuleDefault handles this case with default header values.

General Error

func NewGetHTTPResponseRuleDefault

func NewGetHTTPResponseRuleDefault(code int) *GetHTTPResponseRuleDefault

NewGetHTTPResponseRuleDefault creates a GetHTTPResponseRuleDefault with default headers values

func (*GetHTTPResponseRuleDefault) Code

func (o *GetHTTPResponseRuleDefault) Code() int

Code gets the status code for the get HTTP response rule default response

func (*GetHTTPResponseRuleDefault) Error

func (*GetHTTPResponseRuleDefault) GetPayload added in v0.2.0

func (o *GetHTTPResponseRuleDefault) GetPayload() *models.Error

type GetHTTPResponseRuleNotFound

type GetHTTPResponseRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetHTTPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewGetHTTPResponseRuleNotFound

func NewGetHTTPResponseRuleNotFound() *GetHTTPResponseRuleNotFound

NewGetHTTPResponseRuleNotFound creates a GetHTTPResponseRuleNotFound with default headers values

func (*GetHTTPResponseRuleNotFound) Error

func (*GetHTTPResponseRuleNotFound) GetPayload added in v0.2.0

func (o *GetHTTPResponseRuleNotFound) GetPayload() *models.Error

type GetHTTPResponseRuleOK

type GetHTTPResponseRuleOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetHTTPResponseRuleOKBody
}

GetHTTPResponseRuleOK handles this case with default header values.

Successful operation

func NewGetHTTPResponseRuleOK

func NewGetHTTPResponseRuleOK() *GetHTTPResponseRuleOK

NewGetHTTPResponseRuleOK creates a GetHTTPResponseRuleOK with default headers values

func (*GetHTTPResponseRuleOK) Error

func (o *GetHTTPResponseRuleOK) Error() string

func (*GetHTTPResponseRuleOK) GetPayload added in v0.2.0

type GetHTTPResponseRuleOKBody

type GetHTTPResponseRuleOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.HTTPResponseRule `json:"data,omitempty"`
}

GetHTTPResponseRuleOKBody get HTTP response rule o k body swagger:model GetHTTPResponseRuleOKBody

func (*GetHTTPResponseRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPResponseRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPResponseRuleOKBody) Validate

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

Validate validates this get HTTP response rule o k body

type GetHTTPResponseRuleParams

type GetHTTPResponseRuleParams struct {

	/*Index
	  HTTP Response Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

GetHTTPResponseRuleParams contains all the parameters to send to the API endpoint for the get HTTP response rule operation typically these are written to a http.Request

func NewGetHTTPResponseRuleParams

func NewGetHTTPResponseRuleParams() *GetHTTPResponseRuleParams

NewGetHTTPResponseRuleParams creates a new GetHTTPResponseRuleParams object with the default values initialized.

func NewGetHTTPResponseRuleParamsWithContext

func NewGetHTTPResponseRuleParamsWithContext(ctx context.Context) *GetHTTPResponseRuleParams

NewGetHTTPResponseRuleParamsWithContext creates a new GetHTTPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewGetHTTPResponseRuleParamsWithHTTPClient

func NewGetHTTPResponseRuleParamsWithHTTPClient(client *http.Client) *GetHTTPResponseRuleParams

NewGetHTTPResponseRuleParamsWithHTTPClient creates a new GetHTTPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetHTTPResponseRuleParamsWithTimeout

func NewGetHTTPResponseRuleParamsWithTimeout(timeout time.Duration) *GetHTTPResponseRuleParams

NewGetHTTPResponseRuleParamsWithTimeout creates a new GetHTTPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetHTTPResponseRuleParams) SetContext

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

SetContext adds the context to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetIndex

func (o *GetHTTPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetParentName

func (o *GetHTTPResponseRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetParentType

func (o *GetHTTPResponseRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) SetTransactionID

func (o *GetHTTPResponseRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithContext

WithContext adds the context to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithIndex

WithIndex adds the index to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithParentName

func (o *GetHTTPResponseRuleParams) WithParentName(parentName string) *GetHTTPResponseRuleParams

WithParentName adds the parentName to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithParentType

func (o *GetHTTPResponseRuleParams) WithParentType(parentType string) *GetHTTPResponseRuleParams

WithParentType adds the parentType to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WithTransactionID

func (o *GetHTTPResponseRuleParams) WithTransactionID(transactionID *string) *GetHTTPResponseRuleParams

WithTransactionID adds the transactionID to the get HTTP response rule params

func (*GetHTTPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHTTPResponseRuleReader

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

GetHTTPResponseRuleReader is a Reader for the GetHTTPResponseRule structure.

func (*GetHTTPResponseRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPResponseRulesDefault

type GetHTTPResponseRulesDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetHTTPResponseRulesDefault handles this case with default header values.

General Error

func NewGetHTTPResponseRulesDefault

func NewGetHTTPResponseRulesDefault(code int) *GetHTTPResponseRulesDefault

NewGetHTTPResponseRulesDefault creates a GetHTTPResponseRulesDefault with default headers values

func (*GetHTTPResponseRulesDefault) Code

func (o *GetHTTPResponseRulesDefault) Code() int

Code gets the status code for the get HTTP response rules default response

func (*GetHTTPResponseRulesDefault) Error

func (*GetHTTPResponseRulesDefault) GetPayload added in v0.2.0

func (o *GetHTTPResponseRulesDefault) GetPayload() *models.Error

type GetHTTPResponseRulesOK

type GetHTTPResponseRulesOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetHTTPResponseRulesOKBody
}

GetHTTPResponseRulesOK handles this case with default header values.

Successful operation

func NewGetHTTPResponseRulesOK

func NewGetHTTPResponseRulesOK() *GetHTTPResponseRulesOK

NewGetHTTPResponseRulesOK creates a GetHTTPResponseRulesOK with default headers values

func (*GetHTTPResponseRulesOK) Error

func (o *GetHTTPResponseRulesOK) Error() string

func (*GetHTTPResponseRulesOK) GetPayload added in v0.2.0

type GetHTTPResponseRulesOKBody

type GetHTTPResponseRulesOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.HTTPResponseRules `json:"data"`
}

GetHTTPResponseRulesOKBody get HTTP response rules o k body swagger:model GetHTTPResponseRulesOKBody

func (*GetHTTPResponseRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPResponseRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPResponseRulesOKBody) Validate

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

Validate validates this get HTTP response rules o k body

type GetHTTPResponseRulesParams

type GetHTTPResponseRulesParams struct {

	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

GetHTTPResponseRulesParams contains all the parameters to send to the API endpoint for the get HTTP response rules operation typically these are written to a http.Request

func NewGetHTTPResponseRulesParams

func NewGetHTTPResponseRulesParams() *GetHTTPResponseRulesParams

NewGetHTTPResponseRulesParams creates a new GetHTTPResponseRulesParams object with the default values initialized.

func NewGetHTTPResponseRulesParamsWithContext

func NewGetHTTPResponseRulesParamsWithContext(ctx context.Context) *GetHTTPResponseRulesParams

NewGetHTTPResponseRulesParamsWithContext creates a new GetHTTPResponseRulesParams object with the default values initialized, and the ability to set a context for a request

func NewGetHTTPResponseRulesParamsWithHTTPClient

func NewGetHTTPResponseRulesParamsWithHTTPClient(client *http.Client) *GetHTTPResponseRulesParams

NewGetHTTPResponseRulesParamsWithHTTPClient creates a new GetHTTPResponseRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetHTTPResponseRulesParamsWithTimeout

func NewGetHTTPResponseRulesParamsWithTimeout(timeout time.Duration) *GetHTTPResponseRulesParams

NewGetHTTPResponseRulesParamsWithTimeout creates a new GetHTTPResponseRulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetHTTPResponseRulesParams) SetContext

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

SetContext adds the context to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) SetParentName

func (o *GetHTTPResponseRulesParams) SetParentName(parentName string)

SetParentName adds the parentName to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) SetParentType

func (o *GetHTTPResponseRulesParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) SetTransactionID

func (o *GetHTTPResponseRulesParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithContext

WithContext adds the context to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithParentName

func (o *GetHTTPResponseRulesParams) WithParentName(parentName string) *GetHTTPResponseRulesParams

WithParentName adds the parentName to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithParentType

func (o *GetHTTPResponseRulesParams) WithParentType(parentType string) *GetHTTPResponseRulesParams

WithParentType adds the parentType to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithTimeout

WithTimeout adds the timeout to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WithTransactionID

func (o *GetHTTPResponseRulesParams) WithTransactionID(transactionID *string) *GetHTTPResponseRulesParams

WithTransactionID adds the transactionID to the get HTTP response rules params

func (*GetHTTPResponseRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHTTPResponseRulesReader

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

GetHTTPResponseRulesReader is a Reader for the GetHTTPResponseRules structure.

func (*GetHTTPResponseRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceHTTPResponseRuleAccepted

type ReplaceHTTPResponseRuleAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.HTTPResponseRule
}

ReplaceHTTPResponseRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceHTTPResponseRuleAccepted

func NewReplaceHTTPResponseRuleAccepted() *ReplaceHTTPResponseRuleAccepted

NewReplaceHTTPResponseRuleAccepted creates a ReplaceHTTPResponseRuleAccepted with default headers values

func (*ReplaceHTTPResponseRuleAccepted) Error

func (*ReplaceHTTPResponseRuleAccepted) GetPayload added in v0.2.0

type ReplaceHTTPResponseRuleBadRequest

type ReplaceHTTPResponseRuleBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceHTTPResponseRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceHTTPResponseRuleBadRequest

func NewReplaceHTTPResponseRuleBadRequest() *ReplaceHTTPResponseRuleBadRequest

NewReplaceHTTPResponseRuleBadRequest creates a ReplaceHTTPResponseRuleBadRequest with default headers values

func (*ReplaceHTTPResponseRuleBadRequest) Error

func (*ReplaceHTTPResponseRuleBadRequest) GetPayload added in v0.2.0

type ReplaceHTTPResponseRuleDefault

type ReplaceHTTPResponseRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceHTTPResponseRuleDefault handles this case with default header values.

General Error

func NewReplaceHTTPResponseRuleDefault

func NewReplaceHTTPResponseRuleDefault(code int) *ReplaceHTTPResponseRuleDefault

NewReplaceHTTPResponseRuleDefault creates a ReplaceHTTPResponseRuleDefault with default headers values

func (*ReplaceHTTPResponseRuleDefault) Code

Code gets the status code for the replace HTTP response rule default response

func (*ReplaceHTTPResponseRuleDefault) Error

func (*ReplaceHTTPResponseRuleDefault) GetPayload added in v0.2.0

func (o *ReplaceHTTPResponseRuleDefault) GetPayload() *models.Error

type ReplaceHTTPResponseRuleNotFound

type ReplaceHTTPResponseRuleNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceHTTPResponseRuleNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceHTTPResponseRuleNotFound

func NewReplaceHTTPResponseRuleNotFound() *ReplaceHTTPResponseRuleNotFound

NewReplaceHTTPResponseRuleNotFound creates a ReplaceHTTPResponseRuleNotFound with default headers values

func (*ReplaceHTTPResponseRuleNotFound) Error

func (*ReplaceHTTPResponseRuleNotFound) GetPayload added in v0.2.0

func (o *ReplaceHTTPResponseRuleNotFound) GetPayload() *models.Error

type ReplaceHTTPResponseRuleOK

type ReplaceHTTPResponseRuleOK struct {
	Payload *models.HTTPResponseRule
}

ReplaceHTTPResponseRuleOK handles this case with default header values.

HTTP Response Rule replaced

func NewReplaceHTTPResponseRuleOK

func NewReplaceHTTPResponseRuleOK() *ReplaceHTTPResponseRuleOK

NewReplaceHTTPResponseRuleOK creates a ReplaceHTTPResponseRuleOK with default headers values

func (*ReplaceHTTPResponseRuleOK) Error

func (o *ReplaceHTTPResponseRuleOK) Error() string

func (*ReplaceHTTPResponseRuleOK) GetPayload added in v0.2.0

type ReplaceHTTPResponseRuleParams

type ReplaceHTTPResponseRuleParams struct {

	/*Data*/
	Data *models.HTTPResponseRule
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Index
	  HTTP Response Rule Index

	*/
	Index int64
	/*ParentName
	  Parent name

	*/
	ParentName string
	/*ParentType
	  Parent type

	*/
	ParentType string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

ReplaceHTTPResponseRuleParams contains all the parameters to send to the API endpoint for the replace HTTP response rule operation typically these are written to a http.Request

func NewReplaceHTTPResponseRuleParams

func NewReplaceHTTPResponseRuleParams() *ReplaceHTTPResponseRuleParams

NewReplaceHTTPResponseRuleParams creates a new ReplaceHTTPResponseRuleParams object with the default values initialized.

func NewReplaceHTTPResponseRuleParamsWithContext

func NewReplaceHTTPResponseRuleParamsWithContext(ctx context.Context) *ReplaceHTTPResponseRuleParams

NewReplaceHTTPResponseRuleParamsWithContext creates a new ReplaceHTTPResponseRuleParams object with the default values initialized, and the ability to set a context for a request

func NewReplaceHTTPResponseRuleParamsWithHTTPClient

func NewReplaceHTTPResponseRuleParamsWithHTTPClient(client *http.Client) *ReplaceHTTPResponseRuleParams

NewReplaceHTTPResponseRuleParamsWithHTTPClient creates a new ReplaceHTTPResponseRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReplaceHTTPResponseRuleParamsWithTimeout

func NewReplaceHTTPResponseRuleParamsWithTimeout(timeout time.Duration) *ReplaceHTTPResponseRuleParams

NewReplaceHTTPResponseRuleParamsWithTimeout creates a new ReplaceHTTPResponseRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReplaceHTTPResponseRuleParams) SetContext

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

SetContext adds the context to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetData

SetData adds the data to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetForceReload

func (o *ReplaceHTTPResponseRuleParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetIndex

func (o *ReplaceHTTPResponseRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetParentName

func (o *ReplaceHTTPResponseRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetParentType

func (o *ReplaceHTTPResponseRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetTimeout

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

SetTimeout adds the timeout to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetTransactionID

func (o *ReplaceHTTPResponseRuleParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) SetVersion

func (o *ReplaceHTTPResponseRuleParams) SetVersion(version *int64)

SetVersion adds the version to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithContext

WithContext adds the context to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithData

WithData adds the data to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithForceReload

func (o *ReplaceHTTPResponseRuleParams) WithForceReload(forceReload *bool) *ReplaceHTTPResponseRuleParams

WithForceReload adds the forceReload to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithIndex

WithIndex adds the index to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithParentName

WithParentName adds the parentName to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithParentType

WithParentType adds the parentType to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithTimeout

WithTimeout adds the timeout to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithTransactionID

func (o *ReplaceHTTPResponseRuleParams) WithTransactionID(transactionID *string) *ReplaceHTTPResponseRuleParams

WithTransactionID adds the transactionID to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WithVersion

WithVersion adds the version to the replace HTTP response rule params

func (*ReplaceHTTPResponseRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceHTTPResponseRuleReader

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

ReplaceHTTPResponseRuleReader is a Reader for the ReplaceHTTPResponseRule structure.

func (*ReplaceHTTPResponseRuleReader) ReadResponse

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