http_request_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 request rule API

func (*Client) CreateHTTPRequestRule

CreateHTTPRequestRule adds a new HTTP request rule

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

func (*Client) DeleteHTTPRequestRule

DeleteHTTPRequestRule deletes a HTTP request rule

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

func (*Client) GetHTTPRequestRule

func (a *Client) GetHTTPRequestRule(params *GetHTTPRequestRuleParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPRequestRuleOK, error)

GetHTTPRequestRule returns one HTTP request rule

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

func (*Client) GetHTTPRequestRules

func (a *Client) GetHTTPRequestRules(params *GetHTTPRequestRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetHTTPRequestRulesOK, error)

GetHTTPRequestRules returns an array of all HTTP request rules

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

func (*Client) ReplaceHTTPRequestRule

ReplaceHTTPRequestRule replaces a HTTP request rule

Replaces a HTTP Request 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 request rule API client.

type CreateHTTPRequestRuleAccepted

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

	Payload *models.HTTPRequestRule
}

CreateHTTPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateHTTPRequestRuleAccepted

func NewCreateHTTPRequestRuleAccepted() *CreateHTTPRequestRuleAccepted

NewCreateHTTPRequestRuleAccepted creates a CreateHTTPRequestRuleAccepted with default headers values

func (*CreateHTTPRequestRuleAccepted) Error

func (*CreateHTTPRequestRuleAccepted) GetPayload added in v0.2.0

type CreateHTTPRequestRuleBadRequest

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

	Payload *models.Error
}

CreateHTTPRequestRuleBadRequest handles this case with default header values.

Bad request

func NewCreateHTTPRequestRuleBadRequest

func NewCreateHTTPRequestRuleBadRequest() *CreateHTTPRequestRuleBadRequest

NewCreateHTTPRequestRuleBadRequest creates a CreateHTTPRequestRuleBadRequest with default headers values

func (*CreateHTTPRequestRuleBadRequest) Error

func (*CreateHTTPRequestRuleBadRequest) GetPayload added in v0.2.0

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

type CreateHTTPRequestRuleConflict

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

	Payload *models.Error
}

CreateHTTPRequestRuleConflict handles this case with default header values.

The specified resource already exists

func NewCreateHTTPRequestRuleConflict

func NewCreateHTTPRequestRuleConflict() *CreateHTTPRequestRuleConflict

NewCreateHTTPRequestRuleConflict creates a CreateHTTPRequestRuleConflict with default headers values

func (*CreateHTTPRequestRuleConflict) Error

func (*CreateHTTPRequestRuleConflict) GetPayload added in v0.2.0

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

type CreateHTTPRequestRuleCreated

type CreateHTTPRequestRuleCreated struct {
	Payload *models.HTTPRequestRule
}

CreateHTTPRequestRuleCreated handles this case with default header values.

HTTP Request Rule created

func NewCreateHTTPRequestRuleCreated

func NewCreateHTTPRequestRuleCreated() *CreateHTTPRequestRuleCreated

NewCreateHTTPRequestRuleCreated creates a CreateHTTPRequestRuleCreated with default headers values

func (*CreateHTTPRequestRuleCreated) Error

func (*CreateHTTPRequestRuleCreated) GetPayload added in v0.2.0

type CreateHTTPRequestRuleDefault

type CreateHTTPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

CreateHTTPRequestRuleDefault handles this case with default header values.

General Error

func NewCreateHTTPRequestRuleDefault

func NewCreateHTTPRequestRuleDefault(code int) *CreateHTTPRequestRuleDefault

NewCreateHTTPRequestRuleDefault creates a CreateHTTPRequestRuleDefault with default headers values

func (*CreateHTTPRequestRuleDefault) Code

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

func (*CreateHTTPRequestRuleDefault) Error

func (*CreateHTTPRequestRuleDefault) GetPayload added in v0.2.0

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

type CreateHTTPRequestRuleParams

type CreateHTTPRequestRuleParams struct {

	/*Data*/
	Data *models.HTTPRequestRule
	/*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
}

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

func NewCreateHTTPRequestRuleParams

func NewCreateHTTPRequestRuleParams() *CreateHTTPRequestRuleParams

NewCreateHTTPRequestRuleParams creates a new CreateHTTPRequestRuleParams object with the default values initialized.

func NewCreateHTTPRequestRuleParamsWithContext

func NewCreateHTTPRequestRuleParamsWithContext(ctx context.Context) *CreateHTTPRequestRuleParams

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

func NewCreateHTTPRequestRuleParamsWithHTTPClient

func NewCreateHTTPRequestRuleParamsWithHTTPClient(client *http.Client) *CreateHTTPRequestRuleParams

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

func NewCreateHTTPRequestRuleParamsWithTimeout

func NewCreateHTTPRequestRuleParamsWithTimeout(timeout time.Duration) *CreateHTTPRequestRuleParams

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

func (*CreateHTTPRequestRuleParams) SetContext

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

SetContext adds the context to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetData

SetData adds the data to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetParentName

func (o *CreateHTTPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetParentType

func (o *CreateHTTPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) SetVersion

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

SetVersion adds the version to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithContext

WithContext adds the context to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithData

WithData adds the data to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithParentName

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

WithParentName adds the parentName to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithParentType

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

WithParentType adds the parentType to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WithVersion

WithVersion adds the version to the create HTTP request rule params

func (*CreateHTTPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateHTTPRequestRuleReader

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

CreateHTTPRequestRuleReader is a Reader for the CreateHTTPRequestRule structure.

func (*CreateHTTPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteHTTPRequestRuleAccepted

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

DeleteHTTPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteHTTPRequestRuleAccepted

func NewDeleteHTTPRequestRuleAccepted() *DeleteHTTPRequestRuleAccepted

NewDeleteHTTPRequestRuleAccepted creates a DeleteHTTPRequestRuleAccepted with default headers values

func (*DeleteHTTPRequestRuleAccepted) Error

type DeleteHTTPRequestRuleDefault

type DeleteHTTPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

DeleteHTTPRequestRuleDefault handles this case with default header values.

General Error

func NewDeleteHTTPRequestRuleDefault

func NewDeleteHTTPRequestRuleDefault(code int) *DeleteHTTPRequestRuleDefault

NewDeleteHTTPRequestRuleDefault creates a DeleteHTTPRequestRuleDefault with default headers values

func (*DeleteHTTPRequestRuleDefault) Code

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

func (*DeleteHTTPRequestRuleDefault) Error

func (*DeleteHTTPRequestRuleDefault) GetPayload added in v0.2.0

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

type DeleteHTTPRequestRuleNoContent

type DeleteHTTPRequestRuleNoContent struct {
}

DeleteHTTPRequestRuleNoContent handles this case with default header values.

HTTP Request Rule deleted

func NewDeleteHTTPRequestRuleNoContent

func NewDeleteHTTPRequestRuleNoContent() *DeleteHTTPRequestRuleNoContent

NewDeleteHTTPRequestRuleNoContent creates a DeleteHTTPRequestRuleNoContent with default headers values

func (*DeleteHTTPRequestRuleNoContent) Error

type DeleteHTTPRequestRuleNotFound

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

	Payload *models.Error
}

DeleteHTTPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteHTTPRequestRuleNotFound

func NewDeleteHTTPRequestRuleNotFound() *DeleteHTTPRequestRuleNotFound

NewDeleteHTTPRequestRuleNotFound creates a DeleteHTTPRequestRuleNotFound with default headers values

func (*DeleteHTTPRequestRuleNotFound) Error

func (*DeleteHTTPRequestRuleNotFound) GetPayload added in v0.2.0

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

type DeleteHTTPRequestRuleParams

type DeleteHTTPRequestRuleParams 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 Request 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
}

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

func NewDeleteHTTPRequestRuleParams

func NewDeleteHTTPRequestRuleParams() *DeleteHTTPRequestRuleParams

NewDeleteHTTPRequestRuleParams creates a new DeleteHTTPRequestRuleParams object with the default values initialized.

func NewDeleteHTTPRequestRuleParamsWithContext

func NewDeleteHTTPRequestRuleParamsWithContext(ctx context.Context) *DeleteHTTPRequestRuleParams

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

func NewDeleteHTTPRequestRuleParamsWithHTTPClient

func NewDeleteHTTPRequestRuleParamsWithHTTPClient(client *http.Client) *DeleteHTTPRequestRuleParams

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

func NewDeleteHTTPRequestRuleParamsWithTimeout

func NewDeleteHTTPRequestRuleParamsWithTimeout(timeout time.Duration) *DeleteHTTPRequestRuleParams

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

func (*DeleteHTTPRequestRuleParams) SetContext

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

SetContext adds the context to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetIndex

func (o *DeleteHTTPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetParentName

func (o *DeleteHTTPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetParentType

func (o *DeleteHTTPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) SetVersion

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

SetVersion adds the version to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithContext

WithContext adds the context to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithIndex

WithIndex adds the index to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithParentName

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

WithParentName adds the parentName to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithParentType

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

WithParentType adds the parentType to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WithVersion

WithVersion adds the version to the delete HTTP request rule params

func (*DeleteHTTPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteHTTPRequestRuleReader

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

DeleteHTTPRequestRuleReader is a Reader for the DeleteHTTPRequestRule structure.

func (*DeleteHTTPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPRequestRuleDefault

type GetHTTPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetHTTPRequestRuleDefault handles this case with default header values.

General Error

func NewGetHTTPRequestRuleDefault

func NewGetHTTPRequestRuleDefault(code int) *GetHTTPRequestRuleDefault

NewGetHTTPRequestRuleDefault creates a GetHTTPRequestRuleDefault with default headers values

func (*GetHTTPRequestRuleDefault) Code

func (o *GetHTTPRequestRuleDefault) Code() int

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

func (*GetHTTPRequestRuleDefault) Error

func (o *GetHTTPRequestRuleDefault) Error() string

func (*GetHTTPRequestRuleDefault) GetPayload added in v0.2.0

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

type GetHTTPRequestRuleNotFound

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

	Payload *models.Error
}

GetHTTPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewGetHTTPRequestRuleNotFound

func NewGetHTTPRequestRuleNotFound() *GetHTTPRequestRuleNotFound

NewGetHTTPRequestRuleNotFound creates a GetHTTPRequestRuleNotFound with default headers values

func (*GetHTTPRequestRuleNotFound) Error

func (*GetHTTPRequestRuleNotFound) GetPayload added in v0.2.0

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

type GetHTTPRequestRuleOK

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

	Payload *GetHTTPRequestRuleOKBody
}

GetHTTPRequestRuleOK handles this case with default header values.

Successful operation

func NewGetHTTPRequestRuleOK

func NewGetHTTPRequestRuleOK() *GetHTTPRequestRuleOK

NewGetHTTPRequestRuleOK creates a GetHTTPRequestRuleOK with default headers values

func (*GetHTTPRequestRuleOK) Error

func (o *GetHTTPRequestRuleOK) Error() string

func (*GetHTTPRequestRuleOK) GetPayload added in v0.2.0

type GetHTTPRequestRuleOKBody

type GetHTTPRequestRuleOKBody struct {

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

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

GetHTTPRequestRuleOKBody get HTTP request rule o k body swagger:model GetHTTPRequestRuleOKBody

func (*GetHTTPRequestRuleOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPRequestRuleOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPRequestRuleOKBody) Validate

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

Validate validates this get HTTP request rule o k body

type GetHTTPRequestRuleParams

type GetHTTPRequestRuleParams struct {

	/*Index
	  HTTP Request 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
}

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

func NewGetHTTPRequestRuleParams

func NewGetHTTPRequestRuleParams() *GetHTTPRequestRuleParams

NewGetHTTPRequestRuleParams creates a new GetHTTPRequestRuleParams object with the default values initialized.

func NewGetHTTPRequestRuleParamsWithContext

func NewGetHTTPRequestRuleParamsWithContext(ctx context.Context) *GetHTTPRequestRuleParams

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

func NewGetHTTPRequestRuleParamsWithHTTPClient

func NewGetHTTPRequestRuleParamsWithHTTPClient(client *http.Client) *GetHTTPRequestRuleParams

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

func NewGetHTTPRequestRuleParamsWithTimeout

func NewGetHTTPRequestRuleParamsWithTimeout(timeout time.Duration) *GetHTTPRequestRuleParams

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

func (*GetHTTPRequestRuleParams) SetContext

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

SetContext adds the context to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetIndex

func (o *GetHTTPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetParentName

func (o *GetHTTPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetParentType

func (o *GetHTTPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithContext

WithContext adds the context to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithIndex

WithIndex adds the index to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithParentName

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

WithParentName adds the parentName to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithParentType

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

WithParentType adds the parentType to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get HTTP request rule params

func (*GetHTTPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHTTPRequestRuleReader

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

GetHTTPRequestRuleReader is a Reader for the GetHTTPRequestRule structure.

func (*GetHTTPRequestRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHTTPRequestRulesDefault

type GetHTTPRequestRulesDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

GetHTTPRequestRulesDefault handles this case with default header values.

General Error

func NewGetHTTPRequestRulesDefault

func NewGetHTTPRequestRulesDefault(code int) *GetHTTPRequestRulesDefault

NewGetHTTPRequestRulesDefault creates a GetHTTPRequestRulesDefault with default headers values

func (*GetHTTPRequestRulesDefault) Code

func (o *GetHTTPRequestRulesDefault) Code() int

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

func (*GetHTTPRequestRulesDefault) Error

func (*GetHTTPRequestRulesDefault) GetPayload added in v0.2.0

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

type GetHTTPRequestRulesOK

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

	Payload *GetHTTPRequestRulesOKBody
}

GetHTTPRequestRulesOK handles this case with default header values.

Successful operation

func NewGetHTTPRequestRulesOK

func NewGetHTTPRequestRulesOK() *GetHTTPRequestRulesOK

NewGetHTTPRequestRulesOK creates a GetHTTPRequestRulesOK with default headers values

func (*GetHTTPRequestRulesOK) Error

func (o *GetHTTPRequestRulesOK) Error() string

func (*GetHTTPRequestRulesOK) GetPayload added in v0.2.0

type GetHTTPRequestRulesOKBody

type GetHTTPRequestRulesOKBody struct {

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

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

GetHTTPRequestRulesOKBody get HTTP request rules o k body swagger:model GetHTTPRequestRulesOKBody

func (*GetHTTPRequestRulesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetHTTPRequestRulesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetHTTPRequestRulesOKBody) Validate

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

Validate validates this get HTTP request rules o k body

type GetHTTPRequestRulesParams

type GetHTTPRequestRulesParams 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
}

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

func NewGetHTTPRequestRulesParams

func NewGetHTTPRequestRulesParams() *GetHTTPRequestRulesParams

NewGetHTTPRequestRulesParams creates a new GetHTTPRequestRulesParams object with the default values initialized.

func NewGetHTTPRequestRulesParamsWithContext

func NewGetHTTPRequestRulesParamsWithContext(ctx context.Context) *GetHTTPRequestRulesParams

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

func NewGetHTTPRequestRulesParamsWithHTTPClient

func NewGetHTTPRequestRulesParamsWithHTTPClient(client *http.Client) *GetHTTPRequestRulesParams

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

func NewGetHTTPRequestRulesParamsWithTimeout

func NewGetHTTPRequestRulesParamsWithTimeout(timeout time.Duration) *GetHTTPRequestRulesParams

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

func (*GetHTTPRequestRulesParams) SetContext

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

SetContext adds the context to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) SetParentName

func (o *GetHTTPRequestRulesParams) SetParentName(parentName string)

SetParentName adds the parentName to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) SetParentType

func (o *GetHTTPRequestRulesParams) SetParentType(parentType string)

SetParentType adds the parentType to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithContext

WithContext adds the context to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithParentName

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

WithParentName adds the parentName to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithParentType

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

WithParentType adds the parentType to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithTimeout

WithTimeout adds the timeout to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get HTTP request rules params

func (*GetHTTPRequestRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHTTPRequestRulesReader

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

GetHTTPRequestRulesReader is a Reader for the GetHTTPRequestRules structure.

func (*GetHTTPRequestRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceHTTPRequestRuleAccepted

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

	Payload *models.HTTPRequestRule
}

ReplaceHTTPRequestRuleAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceHTTPRequestRuleAccepted

func NewReplaceHTTPRequestRuleAccepted() *ReplaceHTTPRequestRuleAccepted

NewReplaceHTTPRequestRuleAccepted creates a ReplaceHTTPRequestRuleAccepted with default headers values

func (*ReplaceHTTPRequestRuleAccepted) Error

func (*ReplaceHTTPRequestRuleAccepted) GetPayload added in v0.2.0

type ReplaceHTTPRequestRuleBadRequest

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

	Payload *models.Error
}

ReplaceHTTPRequestRuleBadRequest handles this case with default header values.

Bad request

func NewReplaceHTTPRequestRuleBadRequest

func NewReplaceHTTPRequestRuleBadRequest() *ReplaceHTTPRequestRuleBadRequest

NewReplaceHTTPRequestRuleBadRequest creates a ReplaceHTTPRequestRuleBadRequest with default headers values

func (*ReplaceHTTPRequestRuleBadRequest) Error

func (*ReplaceHTTPRequestRuleBadRequest) GetPayload added in v0.2.0

type ReplaceHTTPRequestRuleDefault

type ReplaceHTTPRequestRuleDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

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

ReplaceHTTPRequestRuleDefault handles this case with default header values.

General Error

func NewReplaceHTTPRequestRuleDefault

func NewReplaceHTTPRequestRuleDefault(code int) *ReplaceHTTPRequestRuleDefault

NewReplaceHTTPRequestRuleDefault creates a ReplaceHTTPRequestRuleDefault with default headers values

func (*ReplaceHTTPRequestRuleDefault) Code

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

func (*ReplaceHTTPRequestRuleDefault) Error

func (*ReplaceHTTPRequestRuleDefault) GetPayload added in v0.2.0

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

type ReplaceHTTPRequestRuleNotFound

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

	Payload *models.Error
}

ReplaceHTTPRequestRuleNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceHTTPRequestRuleNotFound

func NewReplaceHTTPRequestRuleNotFound() *ReplaceHTTPRequestRuleNotFound

NewReplaceHTTPRequestRuleNotFound creates a ReplaceHTTPRequestRuleNotFound with default headers values

func (*ReplaceHTTPRequestRuleNotFound) Error

func (*ReplaceHTTPRequestRuleNotFound) GetPayload added in v0.2.0

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

type ReplaceHTTPRequestRuleOK

type ReplaceHTTPRequestRuleOK struct {
	Payload *models.HTTPRequestRule
}

ReplaceHTTPRequestRuleOK handles this case with default header values.

HTTP Request Rule replaced

func NewReplaceHTTPRequestRuleOK

func NewReplaceHTTPRequestRuleOK() *ReplaceHTTPRequestRuleOK

NewReplaceHTTPRequestRuleOK creates a ReplaceHTTPRequestRuleOK with default headers values

func (*ReplaceHTTPRequestRuleOK) Error

func (o *ReplaceHTTPRequestRuleOK) Error() string

func (*ReplaceHTTPRequestRuleOK) GetPayload added in v0.2.0

type ReplaceHTTPRequestRuleParams

type ReplaceHTTPRequestRuleParams struct {

	/*Data*/
	Data *models.HTTPRequestRule
	/*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 Request 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
}

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

func NewReplaceHTTPRequestRuleParams

func NewReplaceHTTPRequestRuleParams() *ReplaceHTTPRequestRuleParams

NewReplaceHTTPRequestRuleParams creates a new ReplaceHTTPRequestRuleParams object with the default values initialized.

func NewReplaceHTTPRequestRuleParamsWithContext

func NewReplaceHTTPRequestRuleParamsWithContext(ctx context.Context) *ReplaceHTTPRequestRuleParams

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

func NewReplaceHTTPRequestRuleParamsWithHTTPClient

func NewReplaceHTTPRequestRuleParamsWithHTTPClient(client *http.Client) *ReplaceHTTPRequestRuleParams

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

func NewReplaceHTTPRequestRuleParamsWithTimeout

func NewReplaceHTTPRequestRuleParamsWithTimeout(timeout time.Duration) *ReplaceHTTPRequestRuleParams

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

func (*ReplaceHTTPRequestRuleParams) SetContext

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

SetContext adds the context to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetData

SetData adds the data to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetForceReload

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

SetForceReload adds the forceReload to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetIndex

func (o *ReplaceHTTPRequestRuleParams) SetIndex(index int64)

SetIndex adds the index to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetParentName

func (o *ReplaceHTTPRequestRuleParams) SetParentName(parentName string)

SetParentName adds the parentName to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetParentType

func (o *ReplaceHTTPRequestRuleParams) SetParentType(parentType string)

SetParentType adds the parentType to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetTimeout

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

SetTimeout adds the timeout to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) SetVersion

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

SetVersion adds the version to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithContext

WithContext adds the context to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithData

WithData adds the data to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithForceReload

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

WithForceReload adds the forceReload to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithIndex

WithIndex adds the index to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithParentName

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

WithParentName adds the parentName to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithParentType

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

WithParentType adds the parentType to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithTimeout

WithTimeout adds the timeout to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WithVersion

WithVersion adds the version to the replace HTTP request rule params

func (*ReplaceHTTPRequestRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceHTTPRequestRuleReader

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

ReplaceHTTPRequestRuleReader is a Reader for the ReplaceHTTPRequestRule structure.

func (*ReplaceHTTPRequestRuleReader) ReadResponse

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