server_template

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 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) (*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) (*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 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 handles this case 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) Error

func (*CreateServerTemplateAccepted) GetPayload

type CreateServerTemplateBadRequest

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

	Payload *models.Error
}

CreateServerTemplateBadRequest handles this case with default header values.

Bad request

func NewCreateServerTemplateBadRequest

func NewCreateServerTemplateBadRequest() *CreateServerTemplateBadRequest

NewCreateServerTemplateBadRequest creates a CreateServerTemplateBadRequest with default headers values

func (*CreateServerTemplateBadRequest) Error

func (*CreateServerTemplateBadRequest) GetPayload

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

type CreateServerTemplateConflict

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

	Payload *models.Error
}

CreateServerTemplateConflict handles this case with default header values.

The specified resource already exists

func NewCreateServerTemplateConflict

func NewCreateServerTemplateConflict() *CreateServerTemplateConflict

NewCreateServerTemplateConflict creates a CreateServerTemplateConflict with default headers values

func (*CreateServerTemplateConflict) Error

func (*CreateServerTemplateConflict) GetPayload

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

type CreateServerTemplateCreated

type CreateServerTemplateCreated struct {
	Payload *models.ServerTemplate
}

CreateServerTemplateCreated handles this case with default header values.

Server template created

func NewCreateServerTemplateCreated

func NewCreateServerTemplateCreated() *CreateServerTemplateCreated

NewCreateServerTemplateCreated creates a CreateServerTemplateCreated with default headers values

func (*CreateServerTemplateCreated) Error

func (*CreateServerTemplateCreated) GetPayload

type CreateServerTemplateDefault

type CreateServerTemplateDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

CreateServerTemplateDefault handles this case 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

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 values initialized.

func NewCreateServerTemplateParamsWithContext

func NewCreateServerTemplateParamsWithContext(ctx context.Context) *CreateServerTemplateParams

NewCreateServerTemplateParamsWithContext creates a new CreateServerTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

type DeleteServerTemplateDefault

type DeleteServerTemplateDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

DeleteServerTemplateDefault handles this case 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

type DeleteServerTemplateNoContent

type DeleteServerTemplateNoContent struct {
}

DeleteServerTemplateNoContent handles this case with default header values.

Server template deleted

func NewDeleteServerTemplateNoContent

func NewDeleteServerTemplateNoContent() *DeleteServerTemplateNoContent

NewDeleteServerTemplateNoContent creates a DeleteServerTemplateNoContent with default headers values

func (*DeleteServerTemplateNoContent) Error

type DeleteServerTemplateNotFound

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

	Payload *models.Error
}

DeleteServerTemplateNotFound handles this case 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) Error

func (*DeleteServerTemplateNotFound) GetPayload

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

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 values initialized.

func NewDeleteServerTemplateParamsWithContext

func NewDeleteServerTemplateParamsWithContext(ctx context.Context) *DeleteServerTemplateParams

NewDeleteServerTemplateParamsWithContext creates a new DeleteServerTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetServerTemplateNotFound

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

	Payload *models.Error
}

GetServerTemplateNotFound handles this case 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) Error

func (o *GetServerTemplateNotFound) Error() string

func (*GetServerTemplateNotFound) GetPayload

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

type GetServerTemplateOK

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

	Payload *GetServerTemplateOKBody
}

GetServerTemplateOK handles this case with default header values.

Successful operation

func NewGetServerTemplateOK

func NewGetServerTemplateOK() *GetServerTemplateOK

NewGetServerTemplateOK creates a GetServerTemplateOK with default headers values

func (*GetServerTemplateOK) Error

func (o *GetServerTemplateOK) Error() string

func (*GetServerTemplateOK) GetPayload

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) 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 values initialized.

func NewGetServerTemplateParamsWithContext

func NewGetServerTemplateParamsWithContext(ctx context.Context) *GetServerTemplateParams

NewGetServerTemplateParamsWithContext creates a new GetServerTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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

type GetServerTemplatesOK

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

	Payload *GetServerTemplatesOKBody
}

GetServerTemplatesOK handles this case with default header values.

Successful operation

func NewGetServerTemplatesOK

func NewGetServerTemplatesOK() *GetServerTemplatesOK

NewGetServerTemplatesOK creates a GetServerTemplatesOK with default headers values

func (*GetServerTemplatesOK) Error

func (o *GetServerTemplatesOK) Error() string

func (*GetServerTemplatesOK) GetPayload

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) 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 values initialized.

func NewGetServerTemplatesParamsWithContext

func NewGetServerTemplatesParamsWithContext(ctx context.Context) *GetServerTemplatesParams

NewGetServerTemplatesParamsWithContext creates a new GetServerTemplatesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (*ReplaceServerTemplateAccepted) GetPayload

type ReplaceServerTemplateBadRequest

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

	Payload *models.Error
}

ReplaceServerTemplateBadRequest handles this case with default header values.

Bad request

func NewReplaceServerTemplateBadRequest

func NewReplaceServerTemplateBadRequest() *ReplaceServerTemplateBadRequest

NewReplaceServerTemplateBadRequest creates a ReplaceServerTemplateBadRequest with default headers values

func (*ReplaceServerTemplateBadRequest) Error

func (*ReplaceServerTemplateBadRequest) GetPayload

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

type ReplaceServerTemplateDefault

type ReplaceServerTemplateDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion string

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

ReplaceServerTemplateDefault handles this case 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

type ReplaceServerTemplateNotFound

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

	Payload *models.Error
}

ReplaceServerTemplateNotFound handles this case 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) Error

func (*ReplaceServerTemplateNotFound) GetPayload

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

type ReplaceServerTemplateOK

type ReplaceServerTemplateOK struct {
	Payload *models.ServerTemplate
}

ReplaceServerTemplateOK handles this case with default header values.

Server template replaced

func NewReplaceServerTemplateOK

func NewReplaceServerTemplateOK() *ReplaceServerTemplateOK

NewReplaceServerTemplateOK creates a ReplaceServerTemplateOK with default headers values

func (*ReplaceServerTemplateOK) Error

func (o *ReplaceServerTemplateOK) Error() string

func (*ReplaceServerTemplateOK) GetPayload

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 values initialized.

func NewReplaceServerTemplateParamsWithContext

func NewReplaceServerTemplateParamsWithContext(ctx context.Context) *ReplaceServerTemplateParams

NewReplaceServerTemplateParamsWithContext creates a new ReplaceServerTemplateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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