server

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 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 server API

func (*Client) CreateServer

CreateServer adds a new server

Adds a new server in the specified backend in the configuration file.

func (*Client) DeleteServer

DeleteServer deletes a server

Deletes a server configuration by it's name in the specified backend.

func (*Client) GetRuntimeServer

func (a *Client) GetRuntimeServer(params *GetRuntimeServerParams, authInfo runtime.ClientAuthInfoWriter) (*GetRuntimeServerOK, error)

GetRuntimeServer returns one server runtime settings

Returns one server runtime settings by it's name in the specified backend.

func (*Client) GetRuntimeServers

func (a *Client) GetRuntimeServers(params *GetRuntimeServersParams, authInfo runtime.ClientAuthInfoWriter) (*GetRuntimeServersOK, error)

GetRuntimeServers returns an array of runtime servers settings

Returns an array of all servers' runtime settings.

func (*Client) GetServer

func (a *Client) GetServer(params *GetServerParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerOK, error)

GetServer returns one server

Returns one server configuration by it's name in the specified backend.

func (*Client) GetServers

func (a *Client) GetServers(params *GetServersParams, authInfo runtime.ClientAuthInfoWriter) (*GetServersOK, error)

GetServers returns an array of servers

Returns an array of all servers that are configured in specified backend.

func (*Client) ReplaceRuntimeServer

func (a *Client) ReplaceRuntimeServer(params *ReplaceRuntimeServerParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceRuntimeServerOK, error)

ReplaceRuntimeServer replaces server transient settings

Replaces a server transient settings by it's name in the specified backend.

func (*Client) ReplaceServer

ReplaceServer replaces a server

Replaces a server configuration by it's name in the specified backend.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new server API client.

type CreateServerAccepted

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

	Payload *models.Server
}

CreateServerAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateServerAccepted

func NewCreateServerAccepted() *CreateServerAccepted

NewCreateServerAccepted creates a CreateServerAccepted with default headers values

func (*CreateServerAccepted) Error

func (o *CreateServerAccepted) Error() string

func (*CreateServerAccepted) GetPayload

func (o *CreateServerAccepted) GetPayload() *models.Server

type CreateServerBadRequest

type CreateServerBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateServerBadRequest handles this case with default header values.

Bad request

func NewCreateServerBadRequest

func NewCreateServerBadRequest() *CreateServerBadRequest

NewCreateServerBadRequest creates a CreateServerBadRequest with default headers values

func (*CreateServerBadRequest) Error

func (o *CreateServerBadRequest) Error() string

func (*CreateServerBadRequest) GetPayload

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

type CreateServerConflict

type CreateServerConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateServerConflict handles this case with default header values.

The specified resource already exists

func NewCreateServerConflict

func NewCreateServerConflict() *CreateServerConflict

NewCreateServerConflict creates a CreateServerConflict with default headers values

func (*CreateServerConflict) Error

func (o *CreateServerConflict) Error() string

func (*CreateServerConflict) GetPayload

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

type CreateServerCreated

type CreateServerCreated struct {
	Payload *models.Server
}

CreateServerCreated handles this case with default header values.

Server created

func NewCreateServerCreated

func NewCreateServerCreated() *CreateServerCreated

NewCreateServerCreated creates a CreateServerCreated with default headers values

func (*CreateServerCreated) Error

func (o *CreateServerCreated) Error() string

func (*CreateServerCreated) GetPayload

func (o *CreateServerCreated) GetPayload() *models.Server

type CreateServerDefault

type CreateServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateServerDefault handles this case with default header values.

General Error

func NewCreateServerDefault

func NewCreateServerDefault(code int) *CreateServerDefault

NewCreateServerDefault creates a CreateServerDefault with default headers values

func (*CreateServerDefault) Code

func (o *CreateServerDefault) Code() int

Code gets the status code for the create server default response

func (*CreateServerDefault) Error

func (o *CreateServerDefault) Error() string

func (*CreateServerDefault) GetPayload

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

type CreateServerParams

type CreateServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Data*/
	Data *models.Server
	/*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
	/*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
}

CreateServerParams contains all the parameters to send to the API endpoint for the create server operation typically these are written to a http.Request

func NewCreateServerParams

func NewCreateServerParams() *CreateServerParams

NewCreateServerParams creates a new CreateServerParams object with the default values initialized.

func NewCreateServerParamsWithContext

func NewCreateServerParamsWithContext(ctx context.Context) *CreateServerParams

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

func NewCreateServerParamsWithHTTPClient

func NewCreateServerParamsWithHTTPClient(client *http.Client) *CreateServerParams

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

func NewCreateServerParamsWithTimeout

func NewCreateServerParamsWithTimeout(timeout time.Duration) *CreateServerParams

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

func (*CreateServerParams) SetBackend

func (o *CreateServerParams) SetBackend(backend string)

SetBackend adds the backend to the create server params

func (*CreateServerParams) SetContext

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

SetContext adds the context to the create server params

func (*CreateServerParams) SetData

func (o *CreateServerParams) SetData(data *models.Server)

SetData adds the data to the create server params

func (*CreateServerParams) SetForceReload

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

SetForceReload adds the forceReload to the create server params

func (*CreateServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create server params

func (*CreateServerParams) SetTimeout

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

SetTimeout adds the timeout to the create server params

func (*CreateServerParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create server params

func (*CreateServerParams) SetVersion

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

SetVersion adds the version to the create server params

func (*CreateServerParams) WithBackend

func (o *CreateServerParams) WithBackend(backend string) *CreateServerParams

WithBackend adds the backend to the create server params

func (*CreateServerParams) WithContext

WithContext adds the context to the create server params

func (*CreateServerParams) WithData

func (o *CreateServerParams) WithData(data *models.Server) *CreateServerParams

WithData adds the data to the create server params

func (*CreateServerParams) WithForceReload

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

WithForceReload adds the forceReload to the create server params

func (*CreateServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create server params

func (*CreateServerParams) WithTimeout

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

WithTimeout adds the timeout to the create server params

func (*CreateServerParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create server params

func (*CreateServerParams) WithVersion

func (o *CreateServerParams) WithVersion(version *int64) *CreateServerParams

WithVersion adds the version to the create server params

func (*CreateServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateServerReader

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

CreateServerReader is a Reader for the CreateServer structure.

func (*CreateServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServerAccepted

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

DeleteServerAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteServerAccepted

func NewDeleteServerAccepted() *DeleteServerAccepted

NewDeleteServerAccepted creates a DeleteServerAccepted with default headers values

func (*DeleteServerAccepted) Error

func (o *DeleteServerAccepted) Error() string

type DeleteServerDefault

type DeleteServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteServerDefault handles this case with default header values.

General Error

func NewDeleteServerDefault

func NewDeleteServerDefault(code int) *DeleteServerDefault

NewDeleteServerDefault creates a DeleteServerDefault with default headers values

func (*DeleteServerDefault) Code

func (o *DeleteServerDefault) Code() int

Code gets the status code for the delete server default response

func (*DeleteServerDefault) Error

func (o *DeleteServerDefault) Error() string

func (*DeleteServerDefault) GetPayload

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

type DeleteServerNoContent

type DeleteServerNoContent struct {
}

DeleteServerNoContent handles this case with default header values.

Server deleted

func NewDeleteServerNoContent

func NewDeleteServerNoContent() *DeleteServerNoContent

NewDeleteServerNoContent creates a DeleteServerNoContent with default headers values

func (*DeleteServerNoContent) Error

func (o *DeleteServerNoContent) Error() string

type DeleteServerNotFound

type DeleteServerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteServerNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteServerNotFound

func NewDeleteServerNotFound() *DeleteServerNotFound

NewDeleteServerNotFound creates a DeleteServerNotFound with default headers values

func (*DeleteServerNotFound) Error

func (o *DeleteServerNotFound) Error() string

func (*DeleteServerNotFound) GetPayload

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

type DeleteServerParams

type DeleteServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*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
	/*Name
	  Server name

	*/
	Name 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
}

DeleteServerParams contains all the parameters to send to the API endpoint for the delete server operation typically these are written to a http.Request

func NewDeleteServerParams

func NewDeleteServerParams() *DeleteServerParams

NewDeleteServerParams creates a new DeleteServerParams object with the default values initialized.

func NewDeleteServerParamsWithContext

func NewDeleteServerParamsWithContext(ctx context.Context) *DeleteServerParams

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

func NewDeleteServerParamsWithHTTPClient

func NewDeleteServerParamsWithHTTPClient(client *http.Client) *DeleteServerParams

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

func NewDeleteServerParamsWithTimeout

func NewDeleteServerParamsWithTimeout(timeout time.Duration) *DeleteServerParams

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

func (*DeleteServerParams) SetBackend

func (o *DeleteServerParams) SetBackend(backend string)

SetBackend adds the backend to the delete server params

func (*DeleteServerParams) SetContext

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

SetContext adds the context to the delete server params

func (*DeleteServerParams) SetForceReload

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

SetForceReload adds the forceReload to the delete server params

func (*DeleteServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete server params

func (*DeleteServerParams) SetName

func (o *DeleteServerParams) SetName(name string)

SetName adds the name to the delete server params

func (*DeleteServerParams) SetTimeout

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

SetTimeout adds the timeout to the delete server params

func (*DeleteServerParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete server params

func (*DeleteServerParams) SetVersion

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

SetVersion adds the version to the delete server params

func (*DeleteServerParams) WithBackend

func (o *DeleteServerParams) WithBackend(backend string) *DeleteServerParams

WithBackend adds the backend to the delete server params

func (*DeleteServerParams) WithContext

WithContext adds the context to the delete server params

func (*DeleteServerParams) WithForceReload

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

WithForceReload adds the forceReload to the delete server params

func (*DeleteServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete server params

func (*DeleteServerParams) WithName

func (o *DeleteServerParams) WithName(name string) *DeleteServerParams

WithName adds the name to the delete server params

func (*DeleteServerParams) WithTimeout

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

WithTimeout adds the timeout to the delete server params

func (*DeleteServerParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete server params

func (*DeleteServerParams) WithVersion

func (o *DeleteServerParams) WithVersion(version *int64) *DeleteServerParams

WithVersion adds the version to the delete server params

func (*DeleteServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteServerReader

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

DeleteServerReader is a Reader for the DeleteServer structure.

func (*DeleteServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuntimeServerDefault

type GetRuntimeServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetRuntimeServerDefault handles this case with default header values.

General Error

func NewGetRuntimeServerDefault

func NewGetRuntimeServerDefault(code int) *GetRuntimeServerDefault

NewGetRuntimeServerDefault creates a GetRuntimeServerDefault with default headers values

func (*GetRuntimeServerDefault) Code

func (o *GetRuntimeServerDefault) Code() int

Code gets the status code for the get runtime server default response

func (*GetRuntimeServerDefault) Error

func (o *GetRuntimeServerDefault) Error() string

func (*GetRuntimeServerDefault) GetPayload

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

type GetRuntimeServerNotFound

type GetRuntimeServerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetRuntimeServerNotFound handles this case with default header values.

The specified resource was not found

func NewGetRuntimeServerNotFound

func NewGetRuntimeServerNotFound() *GetRuntimeServerNotFound

NewGetRuntimeServerNotFound creates a GetRuntimeServerNotFound with default headers values

func (*GetRuntimeServerNotFound) Error

func (o *GetRuntimeServerNotFound) Error() string

func (*GetRuntimeServerNotFound) GetPayload

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

type GetRuntimeServerOK

type GetRuntimeServerOK struct {
	Payload *models.RuntimeServer
}

GetRuntimeServerOK handles this case with default header values.

Successful operation

func NewGetRuntimeServerOK

func NewGetRuntimeServerOK() *GetRuntimeServerOK

NewGetRuntimeServerOK creates a GetRuntimeServerOK with default headers values

func (*GetRuntimeServerOK) Error

func (o *GetRuntimeServerOK) Error() string

func (*GetRuntimeServerOK) GetPayload

func (o *GetRuntimeServerOK) GetPayload() *models.RuntimeServer

type GetRuntimeServerParams

type GetRuntimeServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Name
	  Server name

	*/
	Name string

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

GetRuntimeServerParams contains all the parameters to send to the API endpoint for the get runtime server operation typically these are written to a http.Request

func NewGetRuntimeServerParams

func NewGetRuntimeServerParams() *GetRuntimeServerParams

NewGetRuntimeServerParams creates a new GetRuntimeServerParams object with the default values initialized.

func NewGetRuntimeServerParamsWithContext

func NewGetRuntimeServerParamsWithContext(ctx context.Context) *GetRuntimeServerParams

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

func NewGetRuntimeServerParamsWithHTTPClient

func NewGetRuntimeServerParamsWithHTTPClient(client *http.Client) *GetRuntimeServerParams

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

func NewGetRuntimeServerParamsWithTimeout

func NewGetRuntimeServerParamsWithTimeout(timeout time.Duration) *GetRuntimeServerParams

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

func (*GetRuntimeServerParams) SetBackend

func (o *GetRuntimeServerParams) SetBackend(backend string)

SetBackend adds the backend to the get runtime server params

func (*GetRuntimeServerParams) SetContext

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

SetContext adds the context to the get runtime server params

func (*GetRuntimeServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runtime server params

func (*GetRuntimeServerParams) SetName

func (o *GetRuntimeServerParams) SetName(name string)

SetName adds the name to the get runtime server params

func (*GetRuntimeServerParams) SetTimeout

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

SetTimeout adds the timeout to the get runtime server params

func (*GetRuntimeServerParams) WithBackend

func (o *GetRuntimeServerParams) WithBackend(backend string) *GetRuntimeServerParams

WithBackend adds the backend to the get runtime server params

func (*GetRuntimeServerParams) WithContext

WithContext adds the context to the get runtime server params

func (*GetRuntimeServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runtime server params

func (*GetRuntimeServerParams) WithName

WithName adds the name to the get runtime server params

func (*GetRuntimeServerParams) WithTimeout

WithTimeout adds the timeout to the get runtime server params

func (*GetRuntimeServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRuntimeServerReader

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

GetRuntimeServerReader is a Reader for the GetRuntimeServer structure.

func (*GetRuntimeServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRuntimeServersDefault

type GetRuntimeServersDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetRuntimeServersDefault handles this case with default header values.

General Error

func NewGetRuntimeServersDefault

func NewGetRuntimeServersDefault(code int) *GetRuntimeServersDefault

NewGetRuntimeServersDefault creates a GetRuntimeServersDefault with default headers values

func (*GetRuntimeServersDefault) Code

func (o *GetRuntimeServersDefault) Code() int

Code gets the status code for the get runtime servers default response

func (*GetRuntimeServersDefault) Error

func (o *GetRuntimeServersDefault) Error() string

func (*GetRuntimeServersDefault) GetPayload

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

type GetRuntimeServersOK

type GetRuntimeServersOK struct {
	Payload models.RuntimeServers
}

GetRuntimeServersOK handles this case with default header values.

Successful operation

func NewGetRuntimeServersOK

func NewGetRuntimeServersOK() *GetRuntimeServersOK

NewGetRuntimeServersOK creates a GetRuntimeServersOK with default headers values

func (*GetRuntimeServersOK) Error

func (o *GetRuntimeServersOK) Error() string

func (*GetRuntimeServersOK) GetPayload

func (o *GetRuntimeServersOK) GetPayload() models.RuntimeServers

type GetRuntimeServersParams

type GetRuntimeServersParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string

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

GetRuntimeServersParams contains all the parameters to send to the API endpoint for the get runtime servers operation typically these are written to a http.Request

func NewGetRuntimeServersParams

func NewGetRuntimeServersParams() *GetRuntimeServersParams

NewGetRuntimeServersParams creates a new GetRuntimeServersParams object with the default values initialized.

func NewGetRuntimeServersParamsWithContext

func NewGetRuntimeServersParamsWithContext(ctx context.Context) *GetRuntimeServersParams

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

func NewGetRuntimeServersParamsWithHTTPClient

func NewGetRuntimeServersParamsWithHTTPClient(client *http.Client) *GetRuntimeServersParams

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

func NewGetRuntimeServersParamsWithTimeout

func NewGetRuntimeServersParamsWithTimeout(timeout time.Duration) *GetRuntimeServersParams

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

func (*GetRuntimeServersParams) SetBackend

func (o *GetRuntimeServersParams) SetBackend(backend string)

SetBackend adds the backend to the get runtime servers params

func (*GetRuntimeServersParams) SetContext

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

SetContext adds the context to the get runtime servers params

func (*GetRuntimeServersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get runtime servers params

func (*GetRuntimeServersParams) SetTimeout

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

SetTimeout adds the timeout to the get runtime servers params

func (*GetRuntimeServersParams) WithBackend

func (o *GetRuntimeServersParams) WithBackend(backend string) *GetRuntimeServersParams

WithBackend adds the backend to the get runtime servers params

func (*GetRuntimeServersParams) WithContext

WithContext adds the context to the get runtime servers params

func (*GetRuntimeServersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get runtime servers params

func (*GetRuntimeServersParams) WithTimeout

WithTimeout adds the timeout to the get runtime servers params

func (*GetRuntimeServersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRuntimeServersReader

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

GetRuntimeServersReader is a Reader for the GetRuntimeServers structure.

func (*GetRuntimeServersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServerDefault

type GetServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetServerDefault handles this case with default header values.

General Error

func NewGetServerDefault

func NewGetServerDefault(code int) *GetServerDefault

NewGetServerDefault creates a GetServerDefault with default headers values

func (*GetServerDefault) Code

func (o *GetServerDefault) Code() int

Code gets the status code for the get server default response

func (*GetServerDefault) Error

func (o *GetServerDefault) Error() string

func (*GetServerDefault) GetPayload

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

type GetServerNotFound

type GetServerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetServerNotFound handles this case with default header values.

The specified resource was not found

func NewGetServerNotFound

func NewGetServerNotFound() *GetServerNotFound

NewGetServerNotFound creates a GetServerNotFound with default headers values

func (*GetServerNotFound) Error

func (o *GetServerNotFound) Error() string

func (*GetServerNotFound) GetPayload

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

type GetServerOK

type GetServerOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetServerOKBody
}

GetServerOK handles this case with default header values.

Successful operation

func NewGetServerOK

func NewGetServerOK() *GetServerOK

NewGetServerOK creates a GetServerOK with default headers values

func (*GetServerOK) Error

func (o *GetServerOK) Error() string

func (*GetServerOK) GetPayload

func (o *GetServerOK) GetPayload() *GetServerOKBody

type GetServerOKBody

type GetServerOKBody struct {

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

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

GetServerOKBody get server o k body swagger:model GetServerOKBody

func (*GetServerOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServerOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServerOKBody) Validate

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

Validate validates this get server o k body

type GetServerParams

type GetServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Name
	  Server name

	*/
	Name 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
}

GetServerParams contains all the parameters to send to the API endpoint for the get server operation typically these are written to a http.Request

func NewGetServerParams

func NewGetServerParams() *GetServerParams

NewGetServerParams creates a new GetServerParams object with the default values initialized.

func NewGetServerParamsWithContext

func NewGetServerParamsWithContext(ctx context.Context) *GetServerParams

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

func NewGetServerParamsWithHTTPClient

func NewGetServerParamsWithHTTPClient(client *http.Client) *GetServerParams

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

func NewGetServerParamsWithTimeout

func NewGetServerParamsWithTimeout(timeout time.Duration) *GetServerParams

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

func (*GetServerParams) SetBackend

func (o *GetServerParams) SetBackend(backend string)

SetBackend adds the backend to the get server params

func (*GetServerParams) SetContext

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

SetContext adds the context to the get server params

func (*GetServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get server params

func (*GetServerParams) SetName

func (o *GetServerParams) SetName(name string)

SetName adds the name to the get server params

func (*GetServerParams) SetTimeout

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

SetTimeout adds the timeout to the get server params

func (*GetServerParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get server params

func (*GetServerParams) WithBackend

func (o *GetServerParams) WithBackend(backend string) *GetServerParams

WithBackend adds the backend to the get server params

func (*GetServerParams) WithContext

func (o *GetServerParams) WithContext(ctx context.Context) *GetServerParams

WithContext adds the context to the get server params

func (*GetServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get server params

func (*GetServerParams) WithName

func (o *GetServerParams) WithName(name string) *GetServerParams

WithName adds the name to the get server params

func (*GetServerParams) WithTimeout

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

WithTimeout adds the timeout to the get server params

func (*GetServerParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get server params

func (*GetServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServerReader

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

GetServerReader is a Reader for the GetServer structure.

func (*GetServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServersDefault

type GetServersDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

GetServersDefault handles this case with default header values.

General Error

func NewGetServersDefault

func NewGetServersDefault(code int) *GetServersDefault

NewGetServersDefault creates a GetServersDefault with default headers values

func (*GetServersDefault) Code

func (o *GetServersDefault) Code() int

Code gets the status code for the get servers default response

func (*GetServersDefault) Error

func (o *GetServersDefault) Error() string

func (*GetServersDefault) GetPayload

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

type GetServersOK

type GetServersOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetServersOKBody
}

GetServersOK handles this case with default header values.

Successful operation

func NewGetServersOK

func NewGetServersOK() *GetServersOK

NewGetServersOK creates a GetServersOK with default headers values

func (*GetServersOK) Error

func (o *GetServersOK) Error() string

func (*GetServersOK) GetPayload

func (o *GetServersOK) GetPayload() *GetServersOKBody

type GetServersOKBody

type GetServersOKBody struct {

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

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

GetServersOKBody get servers o k body swagger:model GetServersOKBody

func (*GetServersOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServersOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServersOKBody) Validate

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

Validate validates this get servers o k body

type GetServersParams

type GetServersParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend 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
}

GetServersParams contains all the parameters to send to the API endpoint for the get servers operation typically these are written to a http.Request

func NewGetServersParams

func NewGetServersParams() *GetServersParams

NewGetServersParams creates a new GetServersParams object with the default values initialized.

func NewGetServersParamsWithContext

func NewGetServersParamsWithContext(ctx context.Context) *GetServersParams

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

func NewGetServersParamsWithHTTPClient

func NewGetServersParamsWithHTTPClient(client *http.Client) *GetServersParams

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

func NewGetServersParamsWithTimeout

func NewGetServersParamsWithTimeout(timeout time.Duration) *GetServersParams

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

func (*GetServersParams) SetBackend

func (o *GetServersParams) SetBackend(backend string)

SetBackend adds the backend to the get servers params

func (*GetServersParams) SetContext

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

SetContext adds the context to the get servers params

func (*GetServersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get servers params

func (*GetServersParams) SetTimeout

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

SetTimeout adds the timeout to the get servers params

func (*GetServersParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get servers params

func (*GetServersParams) WithBackend

func (o *GetServersParams) WithBackend(backend string) *GetServersParams

WithBackend adds the backend to the get servers params

func (*GetServersParams) WithContext

func (o *GetServersParams) WithContext(ctx context.Context) *GetServersParams

WithContext adds the context to the get servers params

func (*GetServersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get servers params

func (*GetServersParams) WithTimeout

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

WithTimeout adds the timeout to the get servers params

func (*GetServersParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get servers params

func (*GetServersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServersReader

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

GetServersReader is a Reader for the GetServers structure.

func (*GetServersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceRuntimeServerBadRequest

type ReplaceRuntimeServerBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceRuntimeServerBadRequest handles this case with default header values.

Bad request

func NewReplaceRuntimeServerBadRequest

func NewReplaceRuntimeServerBadRequest() *ReplaceRuntimeServerBadRequest

NewReplaceRuntimeServerBadRequest creates a ReplaceRuntimeServerBadRequest with default headers values

func (*ReplaceRuntimeServerBadRequest) Error

func (*ReplaceRuntimeServerBadRequest) GetPayload

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

type ReplaceRuntimeServerDefault

type ReplaceRuntimeServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceRuntimeServerDefault handles this case with default header values.

General Error

func NewReplaceRuntimeServerDefault

func NewReplaceRuntimeServerDefault(code int) *ReplaceRuntimeServerDefault

NewReplaceRuntimeServerDefault creates a ReplaceRuntimeServerDefault with default headers values

func (*ReplaceRuntimeServerDefault) Code

func (o *ReplaceRuntimeServerDefault) Code() int

Code gets the status code for the replace runtime server default response

func (*ReplaceRuntimeServerDefault) Error

func (*ReplaceRuntimeServerDefault) GetPayload

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

type ReplaceRuntimeServerNotFound

type ReplaceRuntimeServerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceRuntimeServerNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceRuntimeServerNotFound

func NewReplaceRuntimeServerNotFound() *ReplaceRuntimeServerNotFound

NewReplaceRuntimeServerNotFound creates a ReplaceRuntimeServerNotFound with default headers values

func (*ReplaceRuntimeServerNotFound) Error

func (*ReplaceRuntimeServerNotFound) GetPayload

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

type ReplaceRuntimeServerOK

type ReplaceRuntimeServerOK struct {
	Payload *models.RuntimeServer
}

ReplaceRuntimeServerOK handles this case with default header values.

Server transient settings replaced

func NewReplaceRuntimeServerOK

func NewReplaceRuntimeServerOK() *ReplaceRuntimeServerOK

NewReplaceRuntimeServerOK creates a ReplaceRuntimeServerOK with default headers values

func (*ReplaceRuntimeServerOK) Error

func (o *ReplaceRuntimeServerOK) Error() string

func (*ReplaceRuntimeServerOK) GetPayload

func (o *ReplaceRuntimeServerOK) GetPayload() *models.RuntimeServer

type ReplaceRuntimeServerParams

type ReplaceRuntimeServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Data*/
	Data *models.RuntimeServer
	/*Name
	  Server name

	*/
	Name string

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

ReplaceRuntimeServerParams contains all the parameters to send to the API endpoint for the replace runtime server operation typically these are written to a http.Request

func NewReplaceRuntimeServerParams

func NewReplaceRuntimeServerParams() *ReplaceRuntimeServerParams

NewReplaceRuntimeServerParams creates a new ReplaceRuntimeServerParams object with the default values initialized.

func NewReplaceRuntimeServerParamsWithContext

func NewReplaceRuntimeServerParamsWithContext(ctx context.Context) *ReplaceRuntimeServerParams

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

func NewReplaceRuntimeServerParamsWithHTTPClient

func NewReplaceRuntimeServerParamsWithHTTPClient(client *http.Client) *ReplaceRuntimeServerParams

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

func NewReplaceRuntimeServerParamsWithTimeout

func NewReplaceRuntimeServerParamsWithTimeout(timeout time.Duration) *ReplaceRuntimeServerParams

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

func (*ReplaceRuntimeServerParams) SetBackend

func (o *ReplaceRuntimeServerParams) SetBackend(backend string)

SetBackend adds the backend to the replace runtime server params

func (*ReplaceRuntimeServerParams) SetContext

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

SetContext adds the context to the replace runtime server params

func (*ReplaceRuntimeServerParams) SetData

SetData adds the data to the replace runtime server params

func (*ReplaceRuntimeServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace runtime server params

func (*ReplaceRuntimeServerParams) SetName

func (o *ReplaceRuntimeServerParams) SetName(name string)

SetName adds the name to the replace runtime server params

func (*ReplaceRuntimeServerParams) SetTimeout

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

SetTimeout adds the timeout to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithBackend

WithBackend adds the backend to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithContext

WithContext adds the context to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithData

WithData adds the data to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithName

WithName adds the name to the replace runtime server params

func (*ReplaceRuntimeServerParams) WithTimeout

WithTimeout adds the timeout to the replace runtime server params

func (*ReplaceRuntimeServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceRuntimeServerReader

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

ReplaceRuntimeServerReader is a Reader for the ReplaceRuntimeServer structure.

func (*ReplaceRuntimeServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceServerAccepted

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

	Payload *models.Server
}

ReplaceServerAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceServerAccepted

func NewReplaceServerAccepted() *ReplaceServerAccepted

NewReplaceServerAccepted creates a ReplaceServerAccepted with default headers values

func (*ReplaceServerAccepted) Error

func (o *ReplaceServerAccepted) Error() string

func (*ReplaceServerAccepted) GetPayload

func (o *ReplaceServerAccepted) GetPayload() *models.Server

type ReplaceServerBadRequest

type ReplaceServerBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceServerBadRequest handles this case with default header values.

Bad request

func NewReplaceServerBadRequest

func NewReplaceServerBadRequest() *ReplaceServerBadRequest

NewReplaceServerBadRequest creates a ReplaceServerBadRequest with default headers values

func (*ReplaceServerBadRequest) Error

func (o *ReplaceServerBadRequest) Error() string

func (*ReplaceServerBadRequest) GetPayload

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

type ReplaceServerDefault

type ReplaceServerDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceServerDefault handles this case with default header values.

General Error

func NewReplaceServerDefault

func NewReplaceServerDefault(code int) *ReplaceServerDefault

NewReplaceServerDefault creates a ReplaceServerDefault with default headers values

func (*ReplaceServerDefault) Code

func (o *ReplaceServerDefault) Code() int

Code gets the status code for the replace server default response

func (*ReplaceServerDefault) Error

func (o *ReplaceServerDefault) Error() string

func (*ReplaceServerDefault) GetPayload

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

type ReplaceServerNotFound

type ReplaceServerNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceServerNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceServerNotFound

func NewReplaceServerNotFound() *ReplaceServerNotFound

NewReplaceServerNotFound creates a ReplaceServerNotFound with default headers values

func (*ReplaceServerNotFound) Error

func (o *ReplaceServerNotFound) Error() string

func (*ReplaceServerNotFound) GetPayload

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

type ReplaceServerOK

type ReplaceServerOK struct {
	Payload *models.Server
}

ReplaceServerOK handles this case with default header values.

Server replaced

func NewReplaceServerOK

func NewReplaceServerOK() *ReplaceServerOK

NewReplaceServerOK creates a ReplaceServerOK with default headers values

func (*ReplaceServerOK) Error

func (o *ReplaceServerOK) Error() string

func (*ReplaceServerOK) GetPayload

func (o *ReplaceServerOK) GetPayload() *models.Server

type ReplaceServerParams

type ReplaceServerParams struct {

	/*Backend
	  Parent backend name

	*/
	Backend string
	/*Data*/
	Data *models.Server
	/*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
	/*Name
	  Server name

	*/
	Name 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
}

ReplaceServerParams contains all the parameters to send to the API endpoint for the replace server operation typically these are written to a http.Request

func NewReplaceServerParams

func NewReplaceServerParams() *ReplaceServerParams

NewReplaceServerParams creates a new ReplaceServerParams object with the default values initialized.

func NewReplaceServerParamsWithContext

func NewReplaceServerParamsWithContext(ctx context.Context) *ReplaceServerParams

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

func NewReplaceServerParamsWithHTTPClient

func NewReplaceServerParamsWithHTTPClient(client *http.Client) *ReplaceServerParams

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

func NewReplaceServerParamsWithTimeout

func NewReplaceServerParamsWithTimeout(timeout time.Duration) *ReplaceServerParams

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

func (*ReplaceServerParams) SetBackend

func (o *ReplaceServerParams) SetBackend(backend string)

SetBackend adds the backend to the replace server params

func (*ReplaceServerParams) SetContext

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

SetContext adds the context to the replace server params

func (*ReplaceServerParams) SetData

func (o *ReplaceServerParams) SetData(data *models.Server)

SetData adds the data to the replace server params

func (*ReplaceServerParams) SetForceReload

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

SetForceReload adds the forceReload to the replace server params

func (*ReplaceServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace server params

func (*ReplaceServerParams) SetName

func (o *ReplaceServerParams) SetName(name string)

SetName adds the name to the replace server params

func (*ReplaceServerParams) SetTimeout

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

SetTimeout adds the timeout to the replace server params

func (*ReplaceServerParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace server params

func (*ReplaceServerParams) SetVersion

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

SetVersion adds the version to the replace server params

func (*ReplaceServerParams) WithBackend

func (o *ReplaceServerParams) WithBackend(backend string) *ReplaceServerParams

WithBackend adds the backend to the replace server params

func (*ReplaceServerParams) WithContext

WithContext adds the context to the replace server params

func (*ReplaceServerParams) WithData

WithData adds the data to the replace server params

func (*ReplaceServerParams) WithForceReload

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

WithForceReload adds the forceReload to the replace server params

func (*ReplaceServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace server params

func (*ReplaceServerParams) WithName

func (o *ReplaceServerParams) WithName(name string) *ReplaceServerParams

WithName adds the name to the replace server params

func (*ReplaceServerParams) WithTimeout

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

WithTimeout adds the timeout to the replace server params

func (*ReplaceServerParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace server params

func (*ReplaceServerParams) WithVersion

func (o *ReplaceServerParams) WithVersion(version *int64) *ReplaceServerParams

WithVersion adds the version to the replace server params

func (*ReplaceServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceServerReader

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

ReplaceServerReader is a Reader for the ReplaceServer structure.

func (*ReplaceServerReader) ReadResponse

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