Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateServerTemplate(params *CreateServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateServerTemplateCreated, *CreateServerTemplateAccepted, error)
- func (a *Client) DeleteServerTemplate(params *DeleteServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerTemplateAccepted, *DeleteServerTemplateNoContent, error)
- func (a *Client) GetServerTemplate(params *GetServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerTemplateOK, error)
- func (a *Client) GetServerTemplates(params *GetServerTemplatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerTemplatesOK, error)
- func (a *Client) ReplaceServerTemplate(params *ReplaceServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceServerTemplateOK, *ReplaceServerTemplateAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateServerTemplateAccepted
- type CreateServerTemplateBadRequest
- type CreateServerTemplateConflict
- type CreateServerTemplateCreated
- type CreateServerTemplateDefault
- type CreateServerTemplateParams
- func NewCreateServerTemplateParams() *CreateServerTemplateParams
- func NewCreateServerTemplateParamsWithContext(ctx context.Context) *CreateServerTemplateParams
- func NewCreateServerTemplateParamsWithHTTPClient(client *http.Client) *CreateServerTemplateParams
- func NewCreateServerTemplateParamsWithTimeout(timeout time.Duration) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) SetBackend(backend string)
- func (o *CreateServerTemplateParams) SetContext(ctx context.Context)
- func (o *CreateServerTemplateParams) SetData(data *models.ServerTemplate)
- func (o *CreateServerTemplateParams) SetForceReload(forceReload *bool)
- func (o *CreateServerTemplateParams) SetHTTPClient(client *http.Client)
- func (o *CreateServerTemplateParams) SetTimeout(timeout time.Duration)
- func (o *CreateServerTemplateParams) SetTransactionID(transactionID *string)
- func (o *CreateServerTemplateParams) SetVersion(version *int64)
- func (o *CreateServerTemplateParams) WithBackend(backend string) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithContext(ctx context.Context) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithData(data *models.ServerTemplate) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithForceReload(forceReload *bool) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithHTTPClient(client *http.Client) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithTimeout(timeout time.Duration) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithTransactionID(transactionID *string) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WithVersion(version *int64) *CreateServerTemplateParams
- func (o *CreateServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServerTemplateReader
- type DeleteServerTemplateAccepted
- type DeleteServerTemplateDefault
- type DeleteServerTemplateNoContent
- type DeleteServerTemplateNotFound
- type DeleteServerTemplateParams
- func NewDeleteServerTemplateParams() *DeleteServerTemplateParams
- func NewDeleteServerTemplateParamsWithContext(ctx context.Context) *DeleteServerTemplateParams
- func NewDeleteServerTemplateParamsWithHTTPClient(client *http.Client) *DeleteServerTemplateParams
- func NewDeleteServerTemplateParamsWithTimeout(timeout time.Duration) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) SetBackend(backend string)
- func (o *DeleteServerTemplateParams) SetContext(ctx context.Context)
- func (o *DeleteServerTemplateParams) SetForceReload(forceReload *bool)
- func (o *DeleteServerTemplateParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServerTemplateParams) SetPrefix(prefix string)
- func (o *DeleteServerTemplateParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServerTemplateParams) SetTransactionID(transactionID *string)
- func (o *DeleteServerTemplateParams) SetVersion(version *int64)
- func (o *DeleteServerTemplateParams) WithBackend(backend string) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithContext(ctx context.Context) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithForceReload(forceReload *bool) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithHTTPClient(client *http.Client) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithPrefix(prefix string) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithTimeout(timeout time.Duration) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithTransactionID(transactionID *string) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WithVersion(version *int64) *DeleteServerTemplateParams
- func (o *DeleteServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServerTemplateReader
- type GetServerTemplateDefault
- type GetServerTemplateNotFound
- type GetServerTemplateOK
- type GetServerTemplateOKBody
- type GetServerTemplateParams
- func NewGetServerTemplateParams() *GetServerTemplateParams
- func NewGetServerTemplateParamsWithContext(ctx context.Context) *GetServerTemplateParams
- func NewGetServerTemplateParamsWithHTTPClient(client *http.Client) *GetServerTemplateParams
- func NewGetServerTemplateParamsWithTimeout(timeout time.Duration) *GetServerTemplateParams
- func (o *GetServerTemplateParams) SetBackend(backend string)
- func (o *GetServerTemplateParams) SetContext(ctx context.Context)
- func (o *GetServerTemplateParams) SetHTTPClient(client *http.Client)
- func (o *GetServerTemplateParams) SetPrefix(prefix string)
- func (o *GetServerTemplateParams) SetTimeout(timeout time.Duration)
- func (o *GetServerTemplateParams) SetTransactionID(transactionID *string)
- func (o *GetServerTemplateParams) WithBackend(backend string) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WithContext(ctx context.Context) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WithHTTPClient(client *http.Client) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WithPrefix(prefix string) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WithTimeout(timeout time.Duration) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WithTransactionID(transactionID *string) *GetServerTemplateParams
- func (o *GetServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServerTemplateReader
- type GetServerTemplatesDefault
- type GetServerTemplatesOK
- type GetServerTemplatesOKBody
- type GetServerTemplatesParams
- func NewGetServerTemplatesParams() *GetServerTemplatesParams
- func NewGetServerTemplatesParamsWithContext(ctx context.Context) *GetServerTemplatesParams
- func NewGetServerTemplatesParamsWithHTTPClient(client *http.Client) *GetServerTemplatesParams
- func NewGetServerTemplatesParamsWithTimeout(timeout time.Duration) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) SetBackend(backend string)
- func (o *GetServerTemplatesParams) SetContext(ctx context.Context)
- func (o *GetServerTemplatesParams) SetHTTPClient(client *http.Client)
- func (o *GetServerTemplatesParams) SetTimeout(timeout time.Duration)
- func (o *GetServerTemplatesParams) SetTransactionID(transactionID *string)
- func (o *GetServerTemplatesParams) WithBackend(backend string) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) WithContext(ctx context.Context) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) WithHTTPClient(client *http.Client) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) WithTimeout(timeout time.Duration) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) WithTransactionID(transactionID *string) *GetServerTemplatesParams
- func (o *GetServerTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServerTemplatesReader
- type ReplaceServerTemplateAccepted
- type ReplaceServerTemplateBadRequest
- type ReplaceServerTemplateDefault
- type ReplaceServerTemplateNotFound
- type ReplaceServerTemplateOK
- type ReplaceServerTemplateParams
- func NewReplaceServerTemplateParams() *ReplaceServerTemplateParams
- func NewReplaceServerTemplateParamsWithContext(ctx context.Context) *ReplaceServerTemplateParams
- func NewReplaceServerTemplateParamsWithHTTPClient(client *http.Client) *ReplaceServerTemplateParams
- func NewReplaceServerTemplateParamsWithTimeout(timeout time.Duration) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) SetBackend(backend string)
- func (o *ReplaceServerTemplateParams) SetContext(ctx context.Context)
- func (o *ReplaceServerTemplateParams) SetData(data *models.ServerTemplate)
- func (o *ReplaceServerTemplateParams) SetForceReload(forceReload *bool)
- func (o *ReplaceServerTemplateParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceServerTemplateParams) SetPrefix(prefix string)
- func (o *ReplaceServerTemplateParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceServerTemplateParams) SetTransactionID(transactionID *string)
- func (o *ReplaceServerTemplateParams) SetVersion(version *int64)
- func (o *ReplaceServerTemplateParams) WithBackend(backend string) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithContext(ctx context.Context) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithData(data *models.ServerTemplate) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithForceReload(forceReload *bool) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithHTTPClient(client *http.Client) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithPrefix(prefix string) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithTimeout(timeout time.Duration) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithTransactionID(transactionID *string) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WithVersion(version *int64) *ReplaceServerTemplateParams
- func (o *ReplaceServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceServerTemplateReader
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 ¶
func (a *Client) CreateServerTemplate(params *CreateServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateServerTemplateCreated, *CreateServerTemplateAccepted, error)
CreateServerTemplate adds a new server template
Adds a new server template in the specified backend in the configuration file.
func (*Client) DeleteServerTemplate ¶
func (a *Client) DeleteServerTemplate(params *DeleteServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerTemplateAccepted, *DeleteServerTemplateNoContent, error)
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 ¶
func (a *Client) ReplaceServerTemplate(params *ReplaceServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceServerTemplateOK, *ReplaceServerTemplateAccepted, error)
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 ¶
type ClientService interface { CreateServerTemplate(params *CreateServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateServerTemplateCreated, *CreateServerTemplateAccepted, error) DeleteServerTemplate(params *DeleteServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServerTemplateAccepted, *DeleteServerTemplateNoContent, error) GetServerTemplate(params *GetServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerTemplateOK, error) GetServerTemplates(params *GetServerTemplatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerTemplatesOK, error) ReplaceServerTemplate(params *ReplaceServerTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceServerTemplateOK, *ReplaceServerTemplateAccepted, error) SetTransport(transport runtime.ClientTransport) }
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 (o *CreateServerTemplateAccepted) Error() string
func (*CreateServerTemplateAccepted) GetPayload ¶
func (o *CreateServerTemplateAccepted) GetPayload() *models.ServerTemplate
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 (o *CreateServerTemplateBadRequest) Error() string
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 (o *CreateServerTemplateConflict) Error() string
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 (o *CreateServerTemplateCreated) Error() string
func (*CreateServerTemplateCreated) GetPayload ¶
func (o *CreateServerTemplateCreated) GetPayload() *models.ServerTemplate
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 (o *CreateServerTemplateDefault) Error() string
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 ¶
func (o *CreateServerTemplateParams) SetData(data *models.ServerTemplate)
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 ¶
func (o *CreateServerTemplateParams) WithBackend(backend string) *CreateServerTemplateParams
WithBackend adds the backend to the create server template params
func (*CreateServerTemplateParams) WithContext ¶
func (o *CreateServerTemplateParams) WithContext(ctx context.Context) *CreateServerTemplateParams
WithContext adds the context to the create server template params
func (*CreateServerTemplateParams) WithData ¶
func (o *CreateServerTemplateParams) WithData(data *models.ServerTemplate) *CreateServerTemplateParams
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 ¶
func (o *CreateServerTemplateParams) WithHTTPClient(client *http.Client) *CreateServerTemplateParams
WithHTTPClient adds the HTTPClient to the create server template params
func (*CreateServerTemplateParams) WithTimeout ¶
func (o *CreateServerTemplateParams) WithTimeout(timeout time.Duration) *CreateServerTemplateParams
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 ¶
func (o *CreateServerTemplateParams) WithVersion(version *int64) *CreateServerTemplateParams
WithVersion adds the version to the create server template params
func (*CreateServerTemplateParams) WriteToRequest ¶
func (o *CreateServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteServerTemplateAccepted) Error() string
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 (o *DeleteServerTemplateDefault) Error() string
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 ¶
func (o *DeleteServerTemplateNoContent) Error() string
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 (o *DeleteServerTemplateNotFound) Error() string
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 ¶
func (o *DeleteServerTemplateParams) WithBackend(backend string) *DeleteServerTemplateParams
WithBackend adds the backend to the delete server template params
func (*DeleteServerTemplateParams) WithContext ¶
func (o *DeleteServerTemplateParams) WithContext(ctx context.Context) *DeleteServerTemplateParams
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 ¶
func (o *DeleteServerTemplateParams) WithHTTPClient(client *http.Client) *DeleteServerTemplateParams
WithHTTPClient adds the HTTPClient to the delete server template params
func (*DeleteServerTemplateParams) WithPrefix ¶
func (o *DeleteServerTemplateParams) WithPrefix(prefix string) *DeleteServerTemplateParams
WithPrefix adds the prefix to the delete server template params
func (*DeleteServerTemplateParams) WithTimeout ¶
func (o *DeleteServerTemplateParams) WithTimeout(timeout time.Duration) *DeleteServerTemplateParams
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 ¶
func (o *DeleteServerTemplateParams) WithVersion(version *int64) *DeleteServerTemplateParams
WithVersion adds the version to the delete server template params
func (*DeleteServerTemplateParams) WriteToRequest ¶
func (o *DeleteServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetServerTemplateOK) GetPayload() *GetServerTemplateOKBody
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
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 ¶
func (o *GetServerTemplateParams) WithContext(ctx context.Context) *GetServerTemplateParams
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 ¶
func (o *GetServerTemplateParams) WithPrefix(prefix string) *GetServerTemplateParams
WithPrefix adds the prefix to the get server template params
func (*GetServerTemplateParams) WithTimeout ¶
func (o *GetServerTemplateParams) WithTimeout(timeout time.Duration) *GetServerTemplateParams
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 ¶
func (o *GetServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetServerTemplatesOK) GetPayload() *GetServerTemplatesOKBody
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
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 ¶
func (o *GetServerTemplatesParams) WithContext(ctx context.Context) *GetServerTemplatesParams
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 ¶
func (o *GetServerTemplatesParams) WithTimeout(timeout time.Duration) *GetServerTemplatesParams
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 ¶
func (o *GetServerTemplatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *ReplaceServerTemplateAccepted) Error() string
func (*ReplaceServerTemplateAccepted) GetPayload ¶
func (o *ReplaceServerTemplateAccepted) GetPayload() *models.ServerTemplate
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 (o *ReplaceServerTemplateBadRequest) Error() string
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 ¶
func (o *ReplaceServerTemplateDefault) Code() int
Code gets the status code for the replace server template default response
func (*ReplaceServerTemplateDefault) Error ¶
func (o *ReplaceServerTemplateDefault) Error() string
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 (o *ReplaceServerTemplateNotFound) Error() string
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 ¶
func (o *ReplaceServerTemplateOK) GetPayload() *models.ServerTemplate
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 ¶
func (o *ReplaceServerTemplateParams) SetData(data *models.ServerTemplate)
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 ¶
func (o *ReplaceServerTemplateParams) WithBackend(backend string) *ReplaceServerTemplateParams
WithBackend adds the backend to the replace server template params
func (*ReplaceServerTemplateParams) WithContext ¶
func (o *ReplaceServerTemplateParams) WithContext(ctx context.Context) *ReplaceServerTemplateParams
WithContext adds the context to the replace server template params
func (*ReplaceServerTemplateParams) WithData ¶
func (o *ReplaceServerTemplateParams) WithData(data *models.ServerTemplate) *ReplaceServerTemplateParams
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 ¶
func (o *ReplaceServerTemplateParams) WithHTTPClient(client *http.Client) *ReplaceServerTemplateParams
WithHTTPClient adds the HTTPClient to the replace server template params
func (*ReplaceServerTemplateParams) WithPrefix ¶
func (o *ReplaceServerTemplateParams) WithPrefix(prefix string) *ReplaceServerTemplateParams
WithPrefix adds the prefix to the replace server template params
func (*ReplaceServerTemplateParams) WithTimeout ¶
func (o *ReplaceServerTemplateParams) WithTimeout(timeout time.Duration) *ReplaceServerTemplateParams
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 ¶
func (o *ReplaceServerTemplateParams) WithVersion(version *int64) *ReplaceServerTemplateParams
WithVersion adds the version to the replace server template params
func (*ReplaceServerTemplateParams) WriteToRequest ¶
func (o *ReplaceServerTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_server_template_parameters.go
- create_server_template_responses.go
- delete_server_template_parameters.go
- delete_server_template_responses.go
- get_server_template_parameters.go
- get_server_template_responses.go
- get_server_templates_parameters.go
- get_server_templates_responses.go
- replace_server_template_parameters.go
- replace_server_template_responses.go
- server_template_client.go