server_template

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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 template API

func (*Client) CreateServerTemplate

CreateServerTemplate adds a new server template

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

func (*Client) DeleteServerTemplate

DeleteServerTemplate deletes a server template

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

func (*Client) GetServerTemplate

func (a *Client) GetServerTemplate(params *GetServerTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerTemplateOK, error)

GetServerTemplate returns one server template

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

func (*Client) GetServerTemplates

func (a *Client) GetServerTemplates(params *GetServerTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerTemplatesOK, error)

GetServerTemplates returns an array of server templates

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

func (*Client) ReplaceServerTemplate

ReplaceServerTemplate replaces a server template

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

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 template API client.

type CreateServerTemplateAccepted

type CreateServerTemplateAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.ServerTemplate
}

CreateServerTemplateAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateServerTemplateAccepted

func NewCreateServerTemplateAccepted() *CreateServerTemplateAccepted

NewCreateServerTemplateAccepted creates a CreateServerTemplateAccepted with default headers values

func (*CreateServerTemplateAccepted) Code added in v1.1.5

Code gets the status code for the create server template accepted response

func (*CreateServerTemplateAccepted) Error

func (*CreateServerTemplateAccepted) GetPayload

func (*CreateServerTemplateAccepted) IsClientError added in v1.1.0

func (o *CreateServerTemplateAccepted) IsClientError() bool

IsClientError returns true when this create server template accepted response has a 4xx status code

func (*CreateServerTemplateAccepted) IsCode added in v1.1.0

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

IsCode returns true when this create server template accepted response a status code equal to that given

func (*CreateServerTemplateAccepted) IsRedirect added in v1.1.0

func (o *CreateServerTemplateAccepted) IsRedirect() bool

IsRedirect returns true when this create server template accepted response has a 3xx status code

func (*CreateServerTemplateAccepted) IsServerError added in v1.1.0

func (o *CreateServerTemplateAccepted) IsServerError() bool

IsServerError returns true when this create server template accepted response has a 5xx status code

func (*CreateServerTemplateAccepted) IsSuccess added in v1.1.0

func (o *CreateServerTemplateAccepted) IsSuccess() bool

IsSuccess returns true when this create server template accepted response has a 2xx status code

func (*CreateServerTemplateAccepted) String added in v1.1.0

type CreateServerTemplateBadRequest

type CreateServerTemplateBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateServerTemplateBadRequest

func NewCreateServerTemplateBadRequest() *CreateServerTemplateBadRequest

NewCreateServerTemplateBadRequest creates a CreateServerTemplateBadRequest with default headers values

func (*CreateServerTemplateBadRequest) Code added in v1.1.5

Code gets the status code for the create server template bad request response

func (*CreateServerTemplateBadRequest) Error

func (*CreateServerTemplateBadRequest) GetPayload

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

func (*CreateServerTemplateBadRequest) IsClientError added in v1.1.0

func (o *CreateServerTemplateBadRequest) IsClientError() bool

IsClientError returns true when this create server template bad request response has a 4xx status code

func (*CreateServerTemplateBadRequest) IsCode added in v1.1.0

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

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

func (*CreateServerTemplateBadRequest) IsRedirect added in v1.1.0

func (o *CreateServerTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this create server template bad request response has a 3xx status code

func (*CreateServerTemplateBadRequest) IsServerError added in v1.1.0

func (o *CreateServerTemplateBadRequest) IsServerError() bool

IsServerError returns true when this create server template bad request response has a 5xx status code

func (*CreateServerTemplateBadRequest) IsSuccess added in v1.1.0

func (o *CreateServerTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this create server template bad request response has a 2xx status code

func (*CreateServerTemplateBadRequest) String added in v1.1.0

type CreateServerTemplateConflict

type CreateServerTemplateConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreateServerTemplateConflict

func NewCreateServerTemplateConflict() *CreateServerTemplateConflict

NewCreateServerTemplateConflict creates a CreateServerTemplateConflict with default headers values

func (*CreateServerTemplateConflict) Code added in v1.1.5

Code gets the status code for the create server template conflict response

func (*CreateServerTemplateConflict) Error

func (*CreateServerTemplateConflict) GetPayload

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

func (*CreateServerTemplateConflict) IsClientError added in v1.1.0

func (o *CreateServerTemplateConflict) IsClientError() bool

IsClientError returns true when this create server template conflict response has a 4xx status code

func (*CreateServerTemplateConflict) IsCode added in v1.1.0

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

IsCode returns true when this create server template conflict response a status code equal to that given

func (*CreateServerTemplateConflict) IsRedirect added in v1.1.0

func (o *CreateServerTemplateConflict) IsRedirect() bool

IsRedirect returns true when this create server template conflict response has a 3xx status code

func (*CreateServerTemplateConflict) IsServerError added in v1.1.0

func (o *CreateServerTemplateConflict) IsServerError() bool

IsServerError returns true when this create server template conflict response has a 5xx status code

func (*CreateServerTemplateConflict) IsSuccess added in v1.1.0

func (o *CreateServerTemplateConflict) IsSuccess() bool

IsSuccess returns true when this create server template conflict response has a 2xx status code

func (*CreateServerTemplateConflict) String added in v1.1.0

type CreateServerTemplateCreated

type CreateServerTemplateCreated struct {
	Payload *models.ServerTemplate
}

CreateServerTemplateCreated describes a response with status code 201, with default header values.

Server template created

func NewCreateServerTemplateCreated

func NewCreateServerTemplateCreated() *CreateServerTemplateCreated

NewCreateServerTemplateCreated creates a CreateServerTemplateCreated with default headers values

func (*CreateServerTemplateCreated) Code added in v1.1.5

func (o *CreateServerTemplateCreated) Code() int

Code gets the status code for the create server template created response

func (*CreateServerTemplateCreated) Error

func (*CreateServerTemplateCreated) GetPayload

func (*CreateServerTemplateCreated) IsClientError added in v1.1.0

func (o *CreateServerTemplateCreated) IsClientError() bool

IsClientError returns true when this create server template created response has a 4xx status code

func (*CreateServerTemplateCreated) IsCode added in v1.1.0

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

IsCode returns true when this create server template created response a status code equal to that given

func (*CreateServerTemplateCreated) IsRedirect added in v1.1.0

func (o *CreateServerTemplateCreated) IsRedirect() bool

IsRedirect returns true when this create server template created response has a 3xx status code

func (*CreateServerTemplateCreated) IsServerError added in v1.1.0

func (o *CreateServerTemplateCreated) IsServerError() bool

IsServerError returns true when this create server template created response has a 5xx status code

func (*CreateServerTemplateCreated) IsSuccess added in v1.1.0

func (o *CreateServerTemplateCreated) IsSuccess() bool

IsSuccess returns true when this create server template created response has a 2xx status code

func (*CreateServerTemplateCreated) String added in v1.1.0

func (o *CreateServerTemplateCreated) String() string

type CreateServerTemplateDefault

type CreateServerTemplateDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewCreateServerTemplateDefault

func NewCreateServerTemplateDefault(code int) *CreateServerTemplateDefault

NewCreateServerTemplateDefault creates a CreateServerTemplateDefault with default headers values

func (*CreateServerTemplateDefault) Code

func (o *CreateServerTemplateDefault) Code() int

Code gets the status code for the create server template default response

func (*CreateServerTemplateDefault) Error

func (*CreateServerTemplateDefault) GetPayload

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

func (*CreateServerTemplateDefault) IsClientError added in v1.1.0

func (o *CreateServerTemplateDefault) IsClientError() bool

IsClientError returns true when this create server template default response has a 4xx status code

func (*CreateServerTemplateDefault) IsCode added in v1.1.0

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

IsCode returns true when this create server template default response a status code equal to that given

func (*CreateServerTemplateDefault) IsRedirect added in v1.1.0

func (o *CreateServerTemplateDefault) IsRedirect() bool

IsRedirect returns true when this create server template default response has a 3xx status code

func (*CreateServerTemplateDefault) IsServerError added in v1.1.0

func (o *CreateServerTemplateDefault) IsServerError() bool

IsServerError returns true when this create server template default response has a 5xx status code

func (*CreateServerTemplateDefault) IsSuccess added in v1.1.0

func (o *CreateServerTemplateDefault) IsSuccess() bool

IsSuccess returns true when this create server template default response has a 2xx status code

func (*CreateServerTemplateDefault) String added in v1.1.0

func (o *CreateServerTemplateDefault) String() string

type CreateServerTemplateParams

type CreateServerTemplateParams struct {

	/* Backend.

	   Parent backend name
	*/
	Backend string

	// Data.
	Data *models.ServerTemplate

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

CreateServerTemplateParams contains all the parameters to send to the API endpoint

for the create server template operation.

Typically these are written to a http.Request.

func NewCreateServerTemplateParams

func NewCreateServerTemplateParams() *CreateServerTemplateParams

NewCreateServerTemplateParams creates a new CreateServerTemplateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateServerTemplateParamsWithContext

func NewCreateServerTemplateParamsWithContext(ctx context.Context) *CreateServerTemplateParams

NewCreateServerTemplateParamsWithContext creates a new CreateServerTemplateParams object with the ability to set a context for a request.

func NewCreateServerTemplateParamsWithHTTPClient

func NewCreateServerTemplateParamsWithHTTPClient(client *http.Client) *CreateServerTemplateParams

NewCreateServerTemplateParamsWithHTTPClient creates a new CreateServerTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServerTemplateParamsWithTimeout

func NewCreateServerTemplateParamsWithTimeout(timeout time.Duration) *CreateServerTemplateParams

NewCreateServerTemplateParamsWithTimeout creates a new CreateServerTemplateParams object with the ability to set a timeout on a request.

func (*CreateServerTemplateParams) SetBackend

func (o *CreateServerTemplateParams) SetBackend(backend string)

SetBackend adds the backend to the create server template params

func (*CreateServerTemplateParams) SetContext

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

SetContext adds the context to the create server template params

func (*CreateServerTemplateParams) SetData

SetData adds the data to the create server template params

func (*CreateServerTemplateParams) SetDefaults

func (o *CreateServerTemplateParams) SetDefaults()

SetDefaults hydrates default values in the create server template params (not the query body).

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

func (*CreateServerTemplateParams) SetForceReload

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

SetForceReload adds the forceReload to the create server template params

func (*CreateServerTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create server template params

func (*CreateServerTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the create server template params

func (*CreateServerTemplateParams) SetTransactionID

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

SetTransactionID adds the transactionId to the create server template params

func (*CreateServerTemplateParams) SetVersion

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

SetVersion adds the version to the create server template params

func (*CreateServerTemplateParams) WithBackend

WithBackend adds the backend to the create server template params

func (*CreateServerTemplateParams) WithContext

WithContext adds the context to the create server template params

func (*CreateServerTemplateParams) WithData

WithData adds the data to the create server template params

func (*CreateServerTemplateParams) WithDefaults

WithDefaults hydrates default values in the create server template params (not the query body).

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

func (*CreateServerTemplateParams) WithForceReload

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

WithForceReload adds the forceReload to the create server template params

func (*CreateServerTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create server template params

func (*CreateServerTemplateParams) WithTimeout

WithTimeout adds the timeout to the create server template params

func (*CreateServerTemplateParams) WithTransactionID

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

WithTransactionID adds the transactionID to the create server template params

func (*CreateServerTemplateParams) WithVersion

WithVersion adds the version to the create server template params

func (*CreateServerTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServerTemplateReader

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

CreateServerTemplateReader is a Reader for the CreateServerTemplate structure.

func (*CreateServerTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServerTemplateAccepted

type DeleteServerTemplateAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteServerTemplateAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteServerTemplateAccepted

func NewDeleteServerTemplateAccepted() *DeleteServerTemplateAccepted

NewDeleteServerTemplateAccepted creates a DeleteServerTemplateAccepted with default headers values

func (*DeleteServerTemplateAccepted) Code added in v1.1.5

Code gets the status code for the delete server template accepted response

func (*DeleteServerTemplateAccepted) Error

func (*DeleteServerTemplateAccepted) IsClientError added in v1.1.0

func (o *DeleteServerTemplateAccepted) IsClientError() bool

IsClientError returns true when this delete server template accepted response has a 4xx status code

func (*DeleteServerTemplateAccepted) IsCode added in v1.1.0

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

IsCode returns true when this delete server template accepted response a status code equal to that given

func (*DeleteServerTemplateAccepted) IsRedirect added in v1.1.0

func (o *DeleteServerTemplateAccepted) IsRedirect() bool

IsRedirect returns true when this delete server template accepted response has a 3xx status code

func (*DeleteServerTemplateAccepted) IsServerError added in v1.1.0

func (o *DeleteServerTemplateAccepted) IsServerError() bool

IsServerError returns true when this delete server template accepted response has a 5xx status code

func (*DeleteServerTemplateAccepted) IsSuccess added in v1.1.0

func (o *DeleteServerTemplateAccepted) IsSuccess() bool

IsSuccess returns true when this delete server template accepted response has a 2xx status code

func (*DeleteServerTemplateAccepted) String added in v1.1.0

type DeleteServerTemplateDefault

type DeleteServerTemplateDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewDeleteServerTemplateDefault

func NewDeleteServerTemplateDefault(code int) *DeleteServerTemplateDefault

NewDeleteServerTemplateDefault creates a DeleteServerTemplateDefault with default headers values

func (*DeleteServerTemplateDefault) Code

func (o *DeleteServerTemplateDefault) Code() int

Code gets the status code for the delete server template default response

func (*DeleteServerTemplateDefault) Error

func (*DeleteServerTemplateDefault) GetPayload

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

func (*DeleteServerTemplateDefault) IsClientError added in v1.1.0

func (o *DeleteServerTemplateDefault) IsClientError() bool

IsClientError returns true when this delete server template default response has a 4xx status code

func (*DeleteServerTemplateDefault) IsCode added in v1.1.0

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

IsCode returns true when this delete server template default response a status code equal to that given

func (*DeleteServerTemplateDefault) IsRedirect added in v1.1.0

func (o *DeleteServerTemplateDefault) IsRedirect() bool

IsRedirect returns true when this delete server template default response has a 3xx status code

func (*DeleteServerTemplateDefault) IsServerError added in v1.1.0

func (o *DeleteServerTemplateDefault) IsServerError() bool

IsServerError returns true when this delete server template default response has a 5xx status code

func (*DeleteServerTemplateDefault) IsSuccess added in v1.1.0

func (o *DeleteServerTemplateDefault) IsSuccess() bool

IsSuccess returns true when this delete server template default response has a 2xx status code

func (*DeleteServerTemplateDefault) String added in v1.1.0

func (o *DeleteServerTemplateDefault) String() string

type DeleteServerTemplateNoContent

type DeleteServerTemplateNoContent struct {
}

DeleteServerTemplateNoContent describes a response with status code 204, with default header values.

Server template deleted

func NewDeleteServerTemplateNoContent

func NewDeleteServerTemplateNoContent() *DeleteServerTemplateNoContent

NewDeleteServerTemplateNoContent creates a DeleteServerTemplateNoContent with default headers values

func (*DeleteServerTemplateNoContent) Code added in v1.1.5

Code gets the status code for the delete server template no content response

func (*DeleteServerTemplateNoContent) Error

func (*DeleteServerTemplateNoContent) IsClientError added in v1.1.0

func (o *DeleteServerTemplateNoContent) IsClientError() bool

IsClientError returns true when this delete server template no content response has a 4xx status code

func (*DeleteServerTemplateNoContent) IsCode added in v1.1.0

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

IsCode returns true when this delete server template no content response a status code equal to that given

func (*DeleteServerTemplateNoContent) IsRedirect added in v1.1.0

func (o *DeleteServerTemplateNoContent) IsRedirect() bool

IsRedirect returns true when this delete server template no content response has a 3xx status code

func (*DeleteServerTemplateNoContent) IsServerError added in v1.1.0

func (o *DeleteServerTemplateNoContent) IsServerError() bool

IsServerError returns true when this delete server template no content response has a 5xx status code

func (*DeleteServerTemplateNoContent) IsSuccess added in v1.1.0

func (o *DeleteServerTemplateNoContent) IsSuccess() bool

IsSuccess returns true when this delete server template no content response has a 2xx status code

func (*DeleteServerTemplateNoContent) String added in v1.1.0

type DeleteServerTemplateNotFound

type DeleteServerTemplateNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewDeleteServerTemplateNotFound

func NewDeleteServerTemplateNotFound() *DeleteServerTemplateNotFound

NewDeleteServerTemplateNotFound creates a DeleteServerTemplateNotFound with default headers values

func (*DeleteServerTemplateNotFound) Code added in v1.1.5

Code gets the status code for the delete server template not found response

func (*DeleteServerTemplateNotFound) Error

func (*DeleteServerTemplateNotFound) GetPayload

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

func (*DeleteServerTemplateNotFound) IsClientError added in v1.1.0

func (o *DeleteServerTemplateNotFound) IsClientError() bool

IsClientError returns true when this delete server template not found response has a 4xx status code

func (*DeleteServerTemplateNotFound) IsCode added in v1.1.0

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

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

func (*DeleteServerTemplateNotFound) IsRedirect added in v1.1.0

func (o *DeleteServerTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this delete server template not found response has a 3xx status code

func (*DeleteServerTemplateNotFound) IsServerError added in v1.1.0

func (o *DeleteServerTemplateNotFound) IsServerError() bool

IsServerError returns true when this delete server template not found response has a 5xx status code

func (*DeleteServerTemplateNotFound) IsSuccess added in v1.1.0

func (o *DeleteServerTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this delete server template not found response has a 2xx status code

func (*DeleteServerTemplateNotFound) String added in v1.1.0

type DeleteServerTemplateParams

type DeleteServerTemplateParams 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

	/* Prefix.

	   Server template prefix
	*/
	Prefix 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
}

DeleteServerTemplateParams contains all the parameters to send to the API endpoint

for the delete server template operation.

Typically these are written to a http.Request.

func NewDeleteServerTemplateParams

func NewDeleteServerTemplateParams() *DeleteServerTemplateParams

NewDeleteServerTemplateParams creates a new DeleteServerTemplateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteServerTemplateParamsWithContext

func NewDeleteServerTemplateParamsWithContext(ctx context.Context) *DeleteServerTemplateParams

NewDeleteServerTemplateParamsWithContext creates a new DeleteServerTemplateParams object with the ability to set a context for a request.

func NewDeleteServerTemplateParamsWithHTTPClient

func NewDeleteServerTemplateParamsWithHTTPClient(client *http.Client) *DeleteServerTemplateParams

NewDeleteServerTemplateParamsWithHTTPClient creates a new DeleteServerTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServerTemplateParamsWithTimeout

func NewDeleteServerTemplateParamsWithTimeout(timeout time.Duration) *DeleteServerTemplateParams

NewDeleteServerTemplateParamsWithTimeout creates a new DeleteServerTemplateParams object with the ability to set a timeout on a request.

func (*DeleteServerTemplateParams) SetBackend

func (o *DeleteServerTemplateParams) SetBackend(backend string)

SetBackend adds the backend to the delete server template params

func (*DeleteServerTemplateParams) SetContext

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

SetContext adds the context to the delete server template params

func (*DeleteServerTemplateParams) SetDefaults

func (o *DeleteServerTemplateParams) SetDefaults()

SetDefaults hydrates default values in the delete server template params (not the query body).

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

func (*DeleteServerTemplateParams) SetForceReload

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

SetForceReload adds the forceReload to the delete server template params

func (*DeleteServerTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete server template params

func (*DeleteServerTemplateParams) SetPrefix

func (o *DeleteServerTemplateParams) SetPrefix(prefix string)

SetPrefix adds the prefix to the delete server template params

func (*DeleteServerTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the delete server template params

func (*DeleteServerTemplateParams) SetTransactionID

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

SetTransactionID adds the transactionId to the delete server template params

func (*DeleteServerTemplateParams) SetVersion

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

SetVersion adds the version to the delete server template params

func (*DeleteServerTemplateParams) WithBackend

WithBackend adds the backend to the delete server template params

func (*DeleteServerTemplateParams) WithContext

WithContext adds the context to the delete server template params

func (*DeleteServerTemplateParams) WithDefaults

WithDefaults hydrates default values in the delete server template params (not the query body).

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

func (*DeleteServerTemplateParams) WithForceReload

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

WithForceReload adds the forceReload to the delete server template params

func (*DeleteServerTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete server template params

func (*DeleteServerTemplateParams) WithPrefix

WithPrefix adds the prefix to the delete server template params

func (*DeleteServerTemplateParams) WithTimeout

WithTimeout adds the timeout to the delete server template params

func (*DeleteServerTemplateParams) WithTransactionID

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

WithTransactionID adds the transactionID to the delete server template params

func (*DeleteServerTemplateParams) WithVersion

WithVersion adds the version to the delete server template params

func (*DeleteServerTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServerTemplateReader

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

DeleteServerTemplateReader is a Reader for the DeleteServerTemplate structure.

func (*DeleteServerTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServerTemplateDefault

type GetServerTemplateDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetServerTemplateDefault

func NewGetServerTemplateDefault(code int) *GetServerTemplateDefault

NewGetServerTemplateDefault creates a GetServerTemplateDefault with default headers values

func (*GetServerTemplateDefault) Code

func (o *GetServerTemplateDefault) Code() int

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

func (*GetServerTemplateDefault) Error

func (o *GetServerTemplateDefault) Error() string

func (*GetServerTemplateDefault) GetPayload

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

func (*GetServerTemplateDefault) IsClientError added in v1.1.0

func (o *GetServerTemplateDefault) IsClientError() bool

IsClientError returns true when this get server template default response has a 4xx status code

func (*GetServerTemplateDefault) IsCode added in v1.1.0

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

IsCode returns true when this get server template default response a status code equal to that given

func (*GetServerTemplateDefault) IsRedirect added in v1.1.0

func (o *GetServerTemplateDefault) IsRedirect() bool

IsRedirect returns true when this get server template default response has a 3xx status code

func (*GetServerTemplateDefault) IsServerError added in v1.1.0

func (o *GetServerTemplateDefault) IsServerError() bool

IsServerError returns true when this get server template default response has a 5xx status code

func (*GetServerTemplateDefault) IsSuccess added in v1.1.0

func (o *GetServerTemplateDefault) IsSuccess() bool

IsSuccess returns true when this get server template default response has a 2xx status code

func (*GetServerTemplateDefault) String added in v1.1.0

func (o *GetServerTemplateDefault) String() string

type GetServerTemplateNotFound

type GetServerTemplateNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewGetServerTemplateNotFound

func NewGetServerTemplateNotFound() *GetServerTemplateNotFound

NewGetServerTemplateNotFound creates a GetServerTemplateNotFound with default headers values

func (*GetServerTemplateNotFound) Code added in v1.1.5

func (o *GetServerTemplateNotFound) Code() int

Code gets the status code for the get server template not found response

func (*GetServerTemplateNotFound) Error

func (o *GetServerTemplateNotFound) Error() string

func (*GetServerTemplateNotFound) GetPayload

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

func (*GetServerTemplateNotFound) IsClientError added in v1.1.0

func (o *GetServerTemplateNotFound) IsClientError() bool

IsClientError returns true when this get server template not found response has a 4xx status code

func (*GetServerTemplateNotFound) IsCode added in v1.1.0

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

IsCode returns true when this get server template not found response a status code equal to that given

func (*GetServerTemplateNotFound) IsRedirect added in v1.1.0

func (o *GetServerTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this get server template not found response has a 3xx status code

func (*GetServerTemplateNotFound) IsServerError added in v1.1.0

func (o *GetServerTemplateNotFound) IsServerError() bool

IsServerError returns true when this get server template not found response has a 5xx status code

func (*GetServerTemplateNotFound) IsSuccess added in v1.1.0

func (o *GetServerTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this get server template not found response has a 2xx status code

func (*GetServerTemplateNotFound) String added in v1.1.0

func (o *GetServerTemplateNotFound) String() string

type GetServerTemplateOK

type GetServerTemplateOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetServerTemplateOKBody
}

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

Successful operation

func NewGetServerTemplateOK

func NewGetServerTemplateOK() *GetServerTemplateOK

NewGetServerTemplateOK creates a GetServerTemplateOK with default headers values

func (*GetServerTemplateOK) Code added in v1.1.5

func (o *GetServerTemplateOK) Code() int

Code gets the status code for the get server template o k response

func (*GetServerTemplateOK) Error

func (o *GetServerTemplateOK) Error() string

func (*GetServerTemplateOK) GetPayload

func (*GetServerTemplateOK) IsClientError added in v1.1.0

func (o *GetServerTemplateOK) IsClientError() bool

IsClientError returns true when this get server template o k response has a 4xx status code

func (*GetServerTemplateOK) IsCode added in v1.1.0

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

IsCode returns true when this get server template o k response a status code equal to that given

func (*GetServerTemplateOK) IsRedirect added in v1.1.0

func (o *GetServerTemplateOK) IsRedirect() bool

IsRedirect returns true when this get server template o k response has a 3xx status code

func (*GetServerTemplateOK) IsServerError added in v1.1.0

func (o *GetServerTemplateOK) IsServerError() bool

IsServerError returns true when this get server template o k response has a 5xx status code

func (*GetServerTemplateOK) IsSuccess added in v1.1.0

func (o *GetServerTemplateOK) IsSuccess() bool

IsSuccess returns true when this get server template o k response has a 2xx status code

func (*GetServerTemplateOK) String added in v1.1.0

func (o *GetServerTemplateOK) String() string

type GetServerTemplateOKBody

type GetServerTemplateOKBody struct {

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

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

GetServerTemplateOKBody get server template o k body swagger:model GetServerTemplateOKBody

func (*GetServerTemplateOKBody) ContextValidate

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

ContextValidate validate this get server template o k body based on the context it is used

func (*GetServerTemplateOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServerTemplateOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServerTemplateOKBody) Validate

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

Validate validates this get server template o k body

type GetServerTemplateParams

type GetServerTemplateParams struct {

	/* Backend.

	   Parent backend name
	*/
	Backend string

	/* Prefix.

	   Server template prefix
	*/
	Prefix 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
}

GetServerTemplateParams contains all the parameters to send to the API endpoint

for the get server template operation.

Typically these are written to a http.Request.

func NewGetServerTemplateParams

func NewGetServerTemplateParams() *GetServerTemplateParams

NewGetServerTemplateParams creates a new GetServerTemplateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetServerTemplateParamsWithContext

func NewGetServerTemplateParamsWithContext(ctx context.Context) *GetServerTemplateParams

NewGetServerTemplateParamsWithContext creates a new GetServerTemplateParams object with the ability to set a context for a request.

func NewGetServerTemplateParamsWithHTTPClient

func NewGetServerTemplateParamsWithHTTPClient(client *http.Client) *GetServerTemplateParams

NewGetServerTemplateParamsWithHTTPClient creates a new GetServerTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewGetServerTemplateParamsWithTimeout

func NewGetServerTemplateParamsWithTimeout(timeout time.Duration) *GetServerTemplateParams

NewGetServerTemplateParamsWithTimeout creates a new GetServerTemplateParams object with the ability to set a timeout on a request.

func (*GetServerTemplateParams) SetBackend

func (o *GetServerTemplateParams) SetBackend(backend string)

SetBackend adds the backend to the get server template params

func (*GetServerTemplateParams) SetContext

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

SetContext adds the context to the get server template params

func (*GetServerTemplateParams) SetDefaults

func (o *GetServerTemplateParams) SetDefaults()

SetDefaults hydrates default values in the get server template params (not the query body).

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

func (*GetServerTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get server template params

func (*GetServerTemplateParams) SetPrefix

func (o *GetServerTemplateParams) SetPrefix(prefix string)

SetPrefix adds the prefix to the get server template params

func (*GetServerTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the get server template params

func (*GetServerTemplateParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get server template params

func (*GetServerTemplateParams) WithBackend

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

WithBackend adds the backend to the get server template params

func (*GetServerTemplateParams) WithContext

WithContext adds the context to the get server template params

func (*GetServerTemplateParams) WithDefaults

WithDefaults hydrates default values in the get server template params (not the query body).

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

func (*GetServerTemplateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get server template params

func (*GetServerTemplateParams) WithPrefix

WithPrefix adds the prefix to the get server template params

func (*GetServerTemplateParams) WithTimeout

WithTimeout adds the timeout to the get server template params

func (*GetServerTemplateParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get server template params

func (*GetServerTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServerTemplateReader

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

GetServerTemplateReader is a Reader for the GetServerTemplate structure.

func (*GetServerTemplateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServerTemplatesDefault

type GetServerTemplatesDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetServerTemplatesDefault

func NewGetServerTemplatesDefault(code int) *GetServerTemplatesDefault

NewGetServerTemplatesDefault creates a GetServerTemplatesDefault with default headers values

func (*GetServerTemplatesDefault) Code

func (o *GetServerTemplatesDefault) Code() int

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

func (*GetServerTemplatesDefault) Error

func (o *GetServerTemplatesDefault) Error() string

func (*GetServerTemplatesDefault) GetPayload

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

func (*GetServerTemplatesDefault) IsClientError added in v1.1.0

func (o *GetServerTemplatesDefault) IsClientError() bool

IsClientError returns true when this get server templates default response has a 4xx status code

func (*GetServerTemplatesDefault) IsCode added in v1.1.0

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

IsCode returns true when this get server templates default response a status code equal to that given

func (*GetServerTemplatesDefault) IsRedirect added in v1.1.0

func (o *GetServerTemplatesDefault) IsRedirect() bool

IsRedirect returns true when this get server templates default response has a 3xx status code

func (*GetServerTemplatesDefault) IsServerError added in v1.1.0

func (o *GetServerTemplatesDefault) IsServerError() bool

IsServerError returns true when this get server templates default response has a 5xx status code

func (*GetServerTemplatesDefault) IsSuccess added in v1.1.0

func (o *GetServerTemplatesDefault) IsSuccess() bool

IsSuccess returns true when this get server templates default response has a 2xx status code

func (*GetServerTemplatesDefault) String added in v1.1.0

func (o *GetServerTemplatesDefault) String() string

type GetServerTemplatesOK

type GetServerTemplatesOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetServerTemplatesOKBody
}

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

Successful operation

func NewGetServerTemplatesOK

func NewGetServerTemplatesOK() *GetServerTemplatesOK

NewGetServerTemplatesOK creates a GetServerTemplatesOK with default headers values

func (*GetServerTemplatesOK) Code added in v1.1.5

func (o *GetServerTemplatesOK) Code() int

Code gets the status code for the get server templates o k response

func (*GetServerTemplatesOK) Error

func (o *GetServerTemplatesOK) Error() string

func (*GetServerTemplatesOK) GetPayload

func (*GetServerTemplatesOK) IsClientError added in v1.1.0

func (o *GetServerTemplatesOK) IsClientError() bool

IsClientError returns true when this get server templates o k response has a 4xx status code

func (*GetServerTemplatesOK) IsCode added in v1.1.0

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

IsCode returns true when this get server templates o k response a status code equal to that given

func (*GetServerTemplatesOK) IsRedirect added in v1.1.0

func (o *GetServerTemplatesOK) IsRedirect() bool

IsRedirect returns true when this get server templates o k response has a 3xx status code

func (*GetServerTemplatesOK) IsServerError added in v1.1.0

func (o *GetServerTemplatesOK) IsServerError() bool

IsServerError returns true when this get server templates o k response has a 5xx status code

func (*GetServerTemplatesOK) IsSuccess added in v1.1.0

func (o *GetServerTemplatesOK) IsSuccess() bool

IsSuccess returns true when this get server templates o k response has a 2xx status code

func (*GetServerTemplatesOK) String added in v1.1.0

func (o *GetServerTemplatesOK) String() string

type GetServerTemplatesOKBody

type GetServerTemplatesOKBody struct {

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

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

GetServerTemplatesOKBody get server templates o k body swagger:model GetServerTemplatesOKBody

func (*GetServerTemplatesOKBody) ContextValidate

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

ContextValidate validate this get server templates o k body based on the context it is used

func (*GetServerTemplatesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServerTemplatesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServerTemplatesOKBody) Validate

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

Validate validates this get server templates o k body

type GetServerTemplatesParams

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

GetServerTemplatesParams contains all the parameters to send to the API endpoint

for the get server templates operation.

Typically these are written to a http.Request.

func NewGetServerTemplatesParams

func NewGetServerTemplatesParams() *GetServerTemplatesParams

NewGetServerTemplatesParams creates a new GetServerTemplatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetServerTemplatesParamsWithContext

func NewGetServerTemplatesParamsWithContext(ctx context.Context) *GetServerTemplatesParams

NewGetServerTemplatesParamsWithContext creates a new GetServerTemplatesParams object with the ability to set a context for a request.

func NewGetServerTemplatesParamsWithHTTPClient

func NewGetServerTemplatesParamsWithHTTPClient(client *http.Client) *GetServerTemplatesParams

NewGetServerTemplatesParamsWithHTTPClient creates a new GetServerTemplatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetServerTemplatesParamsWithTimeout

func NewGetServerTemplatesParamsWithTimeout(timeout time.Duration) *GetServerTemplatesParams

NewGetServerTemplatesParamsWithTimeout creates a new GetServerTemplatesParams object with the ability to set a timeout on a request.

func (*GetServerTemplatesParams) SetBackend

func (o *GetServerTemplatesParams) SetBackend(backend string)

SetBackend adds the backend to the get server templates params

func (*GetServerTemplatesParams) SetContext

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

SetContext adds the context to the get server templates params

func (*GetServerTemplatesParams) SetDefaults

func (o *GetServerTemplatesParams) SetDefaults()

SetDefaults hydrates default values in the get server templates params (not the query body).

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

func (*GetServerTemplatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get server templates params

func (*GetServerTemplatesParams) SetTimeout

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

SetTimeout adds the timeout to the get server templates params

func (*GetServerTemplatesParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get server templates params

func (*GetServerTemplatesParams) WithBackend

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

WithBackend adds the backend to the get server templates params

func (*GetServerTemplatesParams) WithContext

WithContext adds the context to the get server templates params

func (*GetServerTemplatesParams) WithDefaults

WithDefaults hydrates default values in the get server templates params (not the query body).

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

func (*GetServerTemplatesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get server templates params

func (*GetServerTemplatesParams) WithTimeout

WithTimeout adds the timeout to the get server templates params

func (*GetServerTemplatesParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get server templates params

func (*GetServerTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServerTemplatesReader

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

GetServerTemplatesReader is a Reader for the GetServerTemplates structure.

func (*GetServerTemplatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceServerTemplateAccepted

type ReplaceServerTemplateAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.ServerTemplate
}

ReplaceServerTemplateAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewReplaceServerTemplateAccepted

func NewReplaceServerTemplateAccepted() *ReplaceServerTemplateAccepted

NewReplaceServerTemplateAccepted creates a ReplaceServerTemplateAccepted with default headers values

func (*ReplaceServerTemplateAccepted) Code added in v1.1.5

Code gets the status code for the replace server template accepted response

func (*ReplaceServerTemplateAccepted) Error

func (*ReplaceServerTemplateAccepted) GetPayload

func (*ReplaceServerTemplateAccepted) IsClientError added in v1.1.0

func (o *ReplaceServerTemplateAccepted) IsClientError() bool

IsClientError returns true when this replace server template accepted response has a 4xx status code

func (*ReplaceServerTemplateAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace server template accepted response a status code equal to that given

func (*ReplaceServerTemplateAccepted) IsRedirect added in v1.1.0

func (o *ReplaceServerTemplateAccepted) IsRedirect() bool

IsRedirect returns true when this replace server template accepted response has a 3xx status code

func (*ReplaceServerTemplateAccepted) IsServerError added in v1.1.0

func (o *ReplaceServerTemplateAccepted) IsServerError() bool

IsServerError returns true when this replace server template accepted response has a 5xx status code

func (*ReplaceServerTemplateAccepted) IsSuccess added in v1.1.0

func (o *ReplaceServerTemplateAccepted) IsSuccess() bool

IsSuccess returns true when this replace server template accepted response has a 2xx status code

func (*ReplaceServerTemplateAccepted) String added in v1.1.0

type ReplaceServerTemplateBadRequest

type ReplaceServerTemplateBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceServerTemplateBadRequest

func NewReplaceServerTemplateBadRequest() *ReplaceServerTemplateBadRequest

NewReplaceServerTemplateBadRequest creates a ReplaceServerTemplateBadRequest with default headers values

func (*ReplaceServerTemplateBadRequest) Code added in v1.1.5

Code gets the status code for the replace server template bad request response

func (*ReplaceServerTemplateBadRequest) Error

func (*ReplaceServerTemplateBadRequest) GetPayload

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

func (*ReplaceServerTemplateBadRequest) IsClientError added in v1.1.0

func (o *ReplaceServerTemplateBadRequest) IsClientError() bool

IsClientError returns true when this replace server template bad request response has a 4xx status code

func (*ReplaceServerTemplateBadRequest) IsCode added in v1.1.0

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

IsCode returns true when this replace server template bad request response a status code equal to that given

func (*ReplaceServerTemplateBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceServerTemplateBadRequest) IsRedirect() bool

IsRedirect returns true when this replace server template bad request response has a 3xx status code

func (*ReplaceServerTemplateBadRequest) IsServerError added in v1.1.0

func (o *ReplaceServerTemplateBadRequest) IsServerError() bool

IsServerError returns true when this replace server template bad request response has a 5xx status code

func (*ReplaceServerTemplateBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceServerTemplateBadRequest) IsSuccess() bool

IsSuccess returns true when this replace server template bad request response has a 2xx status code

func (*ReplaceServerTemplateBadRequest) String added in v1.1.0

type ReplaceServerTemplateDefault

type ReplaceServerTemplateDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplaceServerTemplateDefault

func NewReplaceServerTemplateDefault(code int) *ReplaceServerTemplateDefault

NewReplaceServerTemplateDefault creates a ReplaceServerTemplateDefault with default headers values

func (*ReplaceServerTemplateDefault) Code

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

func (*ReplaceServerTemplateDefault) Error

func (*ReplaceServerTemplateDefault) GetPayload

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

func (*ReplaceServerTemplateDefault) IsClientError added in v1.1.0

func (o *ReplaceServerTemplateDefault) IsClientError() bool

IsClientError returns true when this replace server template default response has a 4xx status code

func (*ReplaceServerTemplateDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace server template default response a status code equal to that given

func (*ReplaceServerTemplateDefault) IsRedirect added in v1.1.0

func (o *ReplaceServerTemplateDefault) IsRedirect() bool

IsRedirect returns true when this replace server template default response has a 3xx status code

func (*ReplaceServerTemplateDefault) IsServerError added in v1.1.0

func (o *ReplaceServerTemplateDefault) IsServerError() bool

IsServerError returns true when this replace server template default response has a 5xx status code

func (*ReplaceServerTemplateDefault) IsSuccess added in v1.1.0

func (o *ReplaceServerTemplateDefault) IsSuccess() bool

IsSuccess returns true when this replace server template default response has a 2xx status code

func (*ReplaceServerTemplateDefault) String added in v1.1.0

type ReplaceServerTemplateNotFound

type ReplaceServerTemplateNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewReplaceServerTemplateNotFound

func NewReplaceServerTemplateNotFound() *ReplaceServerTemplateNotFound

NewReplaceServerTemplateNotFound creates a ReplaceServerTemplateNotFound with default headers values

func (*ReplaceServerTemplateNotFound) Code added in v1.1.5

Code gets the status code for the replace server template not found response

func (*ReplaceServerTemplateNotFound) Error

func (*ReplaceServerTemplateNotFound) GetPayload

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

func (*ReplaceServerTemplateNotFound) IsClientError added in v1.1.0

func (o *ReplaceServerTemplateNotFound) IsClientError() bool

IsClientError returns true when this replace server template not found response has a 4xx status code

func (*ReplaceServerTemplateNotFound) IsCode added in v1.1.0

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

IsCode returns true when this replace server template not found response a status code equal to that given

func (*ReplaceServerTemplateNotFound) IsRedirect added in v1.1.0

func (o *ReplaceServerTemplateNotFound) IsRedirect() bool

IsRedirect returns true when this replace server template not found response has a 3xx status code

func (*ReplaceServerTemplateNotFound) IsServerError added in v1.1.0

func (o *ReplaceServerTemplateNotFound) IsServerError() bool

IsServerError returns true when this replace server template not found response has a 5xx status code

func (*ReplaceServerTemplateNotFound) IsSuccess added in v1.1.0

func (o *ReplaceServerTemplateNotFound) IsSuccess() bool

IsSuccess returns true when this replace server template not found response has a 2xx status code

func (*ReplaceServerTemplateNotFound) String added in v1.1.0

type ReplaceServerTemplateOK

type ReplaceServerTemplateOK struct {
	Payload *models.ServerTemplate
}

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

Server template replaced

func NewReplaceServerTemplateOK

func NewReplaceServerTemplateOK() *ReplaceServerTemplateOK

NewReplaceServerTemplateOK creates a ReplaceServerTemplateOK with default headers values

func (*ReplaceServerTemplateOK) Code added in v1.1.5

func (o *ReplaceServerTemplateOK) Code() int

Code gets the status code for the replace server template o k response

func (*ReplaceServerTemplateOK) Error

func (o *ReplaceServerTemplateOK) Error() string

func (*ReplaceServerTemplateOK) GetPayload

func (*ReplaceServerTemplateOK) IsClientError added in v1.1.0

func (o *ReplaceServerTemplateOK) IsClientError() bool

IsClientError returns true when this replace server template o k response has a 4xx status code

func (*ReplaceServerTemplateOK) IsCode added in v1.1.0

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

IsCode returns true when this replace server template o k response a status code equal to that given

func (*ReplaceServerTemplateOK) IsRedirect added in v1.1.0

func (o *ReplaceServerTemplateOK) IsRedirect() bool

IsRedirect returns true when this replace server template o k response has a 3xx status code

func (*ReplaceServerTemplateOK) IsServerError added in v1.1.0

func (o *ReplaceServerTemplateOK) IsServerError() bool

IsServerError returns true when this replace server template o k response has a 5xx status code

func (*ReplaceServerTemplateOK) IsSuccess added in v1.1.0

func (o *ReplaceServerTemplateOK) IsSuccess() bool

IsSuccess returns true when this replace server template o k response has a 2xx status code

func (*ReplaceServerTemplateOK) String added in v1.1.0

func (o *ReplaceServerTemplateOK) String() string

type ReplaceServerTemplateParams

type ReplaceServerTemplateParams struct {

	/* Backend.

	   Parent backend name
	*/
	Backend string

	// Data.
	Data *models.ServerTemplate

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

	/* Prefix.

	   Server template prefix
	*/
	Prefix 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
}

ReplaceServerTemplateParams contains all the parameters to send to the API endpoint

for the replace server template operation.

Typically these are written to a http.Request.

func NewReplaceServerTemplateParams

func NewReplaceServerTemplateParams() *ReplaceServerTemplateParams

NewReplaceServerTemplateParams creates a new ReplaceServerTemplateParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewReplaceServerTemplateParamsWithContext

func NewReplaceServerTemplateParamsWithContext(ctx context.Context) *ReplaceServerTemplateParams

NewReplaceServerTemplateParamsWithContext creates a new ReplaceServerTemplateParams object with the ability to set a context for a request.

func NewReplaceServerTemplateParamsWithHTTPClient

func NewReplaceServerTemplateParamsWithHTTPClient(client *http.Client) *ReplaceServerTemplateParams

NewReplaceServerTemplateParamsWithHTTPClient creates a new ReplaceServerTemplateParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceServerTemplateParamsWithTimeout

func NewReplaceServerTemplateParamsWithTimeout(timeout time.Duration) *ReplaceServerTemplateParams

NewReplaceServerTemplateParamsWithTimeout creates a new ReplaceServerTemplateParams object with the ability to set a timeout on a request.

func (*ReplaceServerTemplateParams) SetBackend

func (o *ReplaceServerTemplateParams) SetBackend(backend string)

SetBackend adds the backend to the replace server template params

func (*ReplaceServerTemplateParams) SetContext

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

SetContext adds the context to the replace server template params

func (*ReplaceServerTemplateParams) SetData

SetData adds the data to the replace server template params

func (*ReplaceServerTemplateParams) SetDefaults

func (o *ReplaceServerTemplateParams) SetDefaults()

SetDefaults hydrates default values in the replace server template params (not the query body).

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

func (*ReplaceServerTemplateParams) SetForceReload

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

SetForceReload adds the forceReload to the replace server template params

func (*ReplaceServerTemplateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace server template params

func (*ReplaceServerTemplateParams) SetPrefix

func (o *ReplaceServerTemplateParams) SetPrefix(prefix string)

SetPrefix adds the prefix to the replace server template params

func (*ReplaceServerTemplateParams) SetTimeout

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

SetTimeout adds the timeout to the replace server template params

func (*ReplaceServerTemplateParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace server template params

func (*ReplaceServerTemplateParams) SetVersion

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

SetVersion adds the version to the replace server template params

func (*ReplaceServerTemplateParams) WithBackend

WithBackend adds the backend to the replace server template params

func (*ReplaceServerTemplateParams) WithContext

WithContext adds the context to the replace server template params

func (*ReplaceServerTemplateParams) WithData

WithData adds the data to the replace server template params

func (*ReplaceServerTemplateParams) WithDefaults

WithDefaults hydrates default values in the replace server template params (not the query body).

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

func (*ReplaceServerTemplateParams) WithForceReload

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

WithForceReload adds the forceReload to the replace server template params

func (*ReplaceServerTemplateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the replace server template params

func (*ReplaceServerTemplateParams) WithPrefix

WithPrefix adds the prefix to the replace server template params

func (*ReplaceServerTemplateParams) WithTimeout

WithTimeout adds the timeout to the replace server template params

func (*ReplaceServerTemplateParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace server template params

func (*ReplaceServerTemplateParams) WithVersion

WithVersion adds the version to the replace server template params

func (*ReplaceServerTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceServerTemplateReader

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

ReplaceServerTemplateReader is a Reader for the ReplaceServerTemplate structure.

func (*ReplaceServerTemplateReader) ReadResponse

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