backups

package
v0.0.0-...-6504949 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0, Apache-2.0 Imports: 10 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 backups API

func (*Client) CreateMultiTableBackup

func (a *Client) CreateMultiTableBackup(params *CreateMultiTableBackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMultiTableBackupOK, error)

CreateMultiTableBackup creates a multi table backup

func (*Client) DeleteBackups

func (a *Client) DeleteBackups(params *DeleteBackupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackupsOK, error)

DeleteBackups deletes backups

func (*Client) FetchBackupsByTaskUUID

func (a *Client) FetchBackupsByTaskUUID(params *FetchBackupsByTaskUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FetchBackupsByTaskUUIDOK, error)

FetchBackupsByTaskUUID lists a task s backups

func (*Client) ListOfBackups

func (a *Client) ListOfBackups(params *ListOfBackupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfBackupsOK, error)

ListOfBackups lists a customer s backups

func (*Client) Restore

func (a *Client) Restore(params *RestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreOK, error)

Restore restores from a backup

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StopBackup

func (a *Client) StopBackup(params *StopBackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

StopBackup stops a backup

Stop an in-progress backup

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListOfBackups(params *ListOfBackupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfBackupsOK, error)

	CreateMultiTableBackup(params *CreateMultiTableBackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMultiTableBackupOK, error)

	DeleteBackups(params *DeleteBackupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteBackupsOK, error)

	FetchBackupsByTaskUUID(params *FetchBackupsByTaskUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FetchBackupsByTaskUUIDOK, error)

	Restore(params *RestoreParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestoreOK, error)

	StopBackup(params *StopBackupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) 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 backups API client.

type CreateMultiTableBackupOK

type CreateMultiTableBackupOK struct {
	Payload *models.Schedule
}
CreateMultiTableBackupOK describes a response with status code 200, with default header values.

If requested schedule backup.

func NewCreateMultiTableBackupOK

func NewCreateMultiTableBackupOK() *CreateMultiTableBackupOK

NewCreateMultiTableBackupOK creates a CreateMultiTableBackupOK with default headers values

func (*CreateMultiTableBackupOK) Error

func (o *CreateMultiTableBackupOK) Error() string

func (*CreateMultiTableBackupOK) GetPayload

func (o *CreateMultiTableBackupOK) GetPayload() *models.Schedule

type CreateMultiTableBackupParams

type CreateMultiTableBackupParams struct {

	/* TableBackup.

	   Table backup data to be created
	*/
	TableBackup *models.MultiTableBackupRequestParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

CreateMultiTableBackupParams contains all the parameters to send to the API endpoint

for the create multi table backup operation.

Typically these are written to a http.Request.

func NewCreateMultiTableBackupParams

func NewCreateMultiTableBackupParams() *CreateMultiTableBackupParams

NewCreateMultiTableBackupParams creates a new CreateMultiTableBackupParams object, with the default timeout for this client.

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

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

func NewCreateMultiTableBackupParamsWithContext

func NewCreateMultiTableBackupParamsWithContext(ctx context.Context) *CreateMultiTableBackupParams

NewCreateMultiTableBackupParamsWithContext creates a new CreateMultiTableBackupParams object with the ability to set a context for a request.

func NewCreateMultiTableBackupParamsWithHTTPClient

func NewCreateMultiTableBackupParamsWithHTTPClient(client *http.Client) *CreateMultiTableBackupParams

NewCreateMultiTableBackupParamsWithHTTPClient creates a new CreateMultiTableBackupParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMultiTableBackupParamsWithTimeout

func NewCreateMultiTableBackupParamsWithTimeout(timeout time.Duration) *CreateMultiTableBackupParams

NewCreateMultiTableBackupParamsWithTimeout creates a new CreateMultiTableBackupParams object with the ability to set a timeout on a request.

func (*CreateMultiTableBackupParams) SetCUUID

func (o *CreateMultiTableBackupParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the create multi table backup params

func (*CreateMultiTableBackupParams) SetContext

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

SetContext adds the context to the create multi table backup params

func (*CreateMultiTableBackupParams) SetDefaults

func (o *CreateMultiTableBackupParams) SetDefaults()

SetDefaults hydrates default values in the create multi table backup params (not the query body).

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

func (*CreateMultiTableBackupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create multi table backup params

func (*CreateMultiTableBackupParams) SetTableBackup

func (o *CreateMultiTableBackupParams) SetTableBackup(tableBackup *models.MultiTableBackupRequestParams)

SetTableBackup adds the tableBackup to the create multi table backup params

func (*CreateMultiTableBackupParams) SetTimeout

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

SetTimeout adds the timeout to the create multi table backup params

func (*CreateMultiTableBackupParams) SetUniUUID

func (o *CreateMultiTableBackupParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the create multi table backup params

func (*CreateMultiTableBackupParams) WithCUUID

WithCUUID adds the cUUID to the create multi table backup params

func (*CreateMultiTableBackupParams) WithContext

WithContext adds the context to the create multi table backup params

func (*CreateMultiTableBackupParams) WithDefaults

WithDefaults hydrates default values in the create multi table backup params (not the query body).

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

func (*CreateMultiTableBackupParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create multi table backup params

func (*CreateMultiTableBackupParams) WithTableBackup

WithTableBackup adds the tableBackup to the create multi table backup params

func (*CreateMultiTableBackupParams) WithTimeout

WithTimeout adds the timeout to the create multi table backup params

func (*CreateMultiTableBackupParams) WithUniUUID

WithUniUUID adds the uniUUID to the create multi table backup params

func (*CreateMultiTableBackupParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMultiTableBackupReader

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

CreateMultiTableBackupReader is a Reader for the CreateMultiTableBackup structure.

func (*CreateMultiTableBackupReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBackupsOK

type DeleteBackupsOK struct {
	Payload models.YBPTasks
}
DeleteBackupsOK describes a response with status code 200, with default header values.

successful operation

func NewDeleteBackupsOK

func NewDeleteBackupsOK() *DeleteBackupsOK

NewDeleteBackupsOK creates a DeleteBackupsOK with default headers values

func (*DeleteBackupsOK) Error

func (o *DeleteBackupsOK) Error() string

func (*DeleteBackupsOK) GetPayload

func (o *DeleteBackupsOK) GetPayload() models.YBPTasks

type DeleteBackupsParams

type DeleteBackupsParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

DeleteBackupsParams contains all the parameters to send to the API endpoint

for the delete backups operation.

Typically these are written to a http.Request.

func NewDeleteBackupsParams

func NewDeleteBackupsParams() *DeleteBackupsParams

NewDeleteBackupsParams creates a new DeleteBackupsParams object, with the default timeout for this client.

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

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

func NewDeleteBackupsParamsWithContext

func NewDeleteBackupsParamsWithContext(ctx context.Context) *DeleteBackupsParams

NewDeleteBackupsParamsWithContext creates a new DeleteBackupsParams object with the ability to set a context for a request.

func NewDeleteBackupsParamsWithHTTPClient

func NewDeleteBackupsParamsWithHTTPClient(client *http.Client) *DeleteBackupsParams

NewDeleteBackupsParamsWithHTTPClient creates a new DeleteBackupsParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBackupsParamsWithTimeout

func NewDeleteBackupsParamsWithTimeout(timeout time.Duration) *DeleteBackupsParams

NewDeleteBackupsParamsWithTimeout creates a new DeleteBackupsParams object with the ability to set a timeout on a request.

func (*DeleteBackupsParams) SetCUUID

func (o *DeleteBackupsParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the delete backups params

func (*DeleteBackupsParams) SetContext

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

SetContext adds the context to the delete backups params

func (*DeleteBackupsParams) SetDefaults

func (o *DeleteBackupsParams) SetDefaults()

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

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

func (*DeleteBackupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete backups params

func (*DeleteBackupsParams) SetTimeout

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

SetTimeout adds the timeout to the delete backups params

func (*DeleteBackupsParams) WithCUUID

func (o *DeleteBackupsParams) WithCUUID(cUUID strfmt.UUID) *DeleteBackupsParams

WithCUUID adds the cUUID to the delete backups params

func (*DeleteBackupsParams) WithContext

WithContext adds the context to the delete backups params

func (*DeleteBackupsParams) WithDefaults

func (o *DeleteBackupsParams) WithDefaults() *DeleteBackupsParams

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

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

func (*DeleteBackupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete backups params

func (*DeleteBackupsParams) WithTimeout

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

WithTimeout adds the timeout to the delete backups params

func (*DeleteBackupsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteBackupsReader

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

DeleteBackupsReader is a Reader for the DeleteBackups structure.

func (*DeleteBackupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FetchBackupsByTaskUUIDInternalServerError

type FetchBackupsByTaskUUIDInternalServerError struct {
	Payload *models.YBPError
}
FetchBackupsByTaskUUIDInternalServerError describes a response with status code 500, with default header values.

If there was a server or database issue when listing the backups

func NewFetchBackupsByTaskUUIDInternalServerError

func NewFetchBackupsByTaskUUIDInternalServerError() *FetchBackupsByTaskUUIDInternalServerError

NewFetchBackupsByTaskUUIDInternalServerError creates a FetchBackupsByTaskUUIDInternalServerError with default headers values

func (*FetchBackupsByTaskUUIDInternalServerError) Error

func (*FetchBackupsByTaskUUIDInternalServerError) GetPayload

type FetchBackupsByTaskUUIDOK

type FetchBackupsByTaskUUIDOK struct {
	Payload []*models.Backup
}
FetchBackupsByTaskUUIDOK describes a response with status code 200, with default header values.

successful operation

func NewFetchBackupsByTaskUUIDOK

func NewFetchBackupsByTaskUUIDOK() *FetchBackupsByTaskUUIDOK

NewFetchBackupsByTaskUUIDOK creates a FetchBackupsByTaskUUIDOK with default headers values

func (*FetchBackupsByTaskUUIDOK) Error

func (o *FetchBackupsByTaskUUIDOK) Error() string

func (*FetchBackupsByTaskUUIDOK) GetPayload

func (o *FetchBackupsByTaskUUIDOK) GetPayload() []*models.Backup

type FetchBackupsByTaskUUIDParams

type FetchBackupsByTaskUUIDParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// TUUID.
	//
	// Format: uuid
	TUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

FetchBackupsByTaskUUIDParams contains all the parameters to send to the API endpoint

for the fetch backups by task UUID operation.

Typically these are written to a http.Request.

func NewFetchBackupsByTaskUUIDParams

func NewFetchBackupsByTaskUUIDParams() *FetchBackupsByTaskUUIDParams

NewFetchBackupsByTaskUUIDParams creates a new FetchBackupsByTaskUUIDParams object, with the default timeout for this client.

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

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

func NewFetchBackupsByTaskUUIDParamsWithContext

func NewFetchBackupsByTaskUUIDParamsWithContext(ctx context.Context) *FetchBackupsByTaskUUIDParams

NewFetchBackupsByTaskUUIDParamsWithContext creates a new FetchBackupsByTaskUUIDParams object with the ability to set a context for a request.

func NewFetchBackupsByTaskUUIDParamsWithHTTPClient

func NewFetchBackupsByTaskUUIDParamsWithHTTPClient(client *http.Client) *FetchBackupsByTaskUUIDParams

NewFetchBackupsByTaskUUIDParamsWithHTTPClient creates a new FetchBackupsByTaskUUIDParams object with the ability to set a custom HTTPClient for a request.

func NewFetchBackupsByTaskUUIDParamsWithTimeout

func NewFetchBackupsByTaskUUIDParamsWithTimeout(timeout time.Duration) *FetchBackupsByTaskUUIDParams

NewFetchBackupsByTaskUUIDParamsWithTimeout creates a new FetchBackupsByTaskUUIDParams object with the ability to set a timeout on a request.

func (*FetchBackupsByTaskUUIDParams) SetCUUID

func (o *FetchBackupsByTaskUUIDParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) SetContext

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

SetContext adds the context to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) SetDefaults

func (o *FetchBackupsByTaskUUIDParams) SetDefaults()

SetDefaults hydrates default values in the fetch backups by task UUID params (not the query body).

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

func (*FetchBackupsByTaskUUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) SetTUUID

func (o *FetchBackupsByTaskUUIDParams) SetTUUID(tUUID strfmt.UUID)

SetTUUID adds the tUuid to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) SetTimeout

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

SetTimeout adds the timeout to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) SetUniUUID

func (o *FetchBackupsByTaskUUIDParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithCUUID

WithCUUID adds the cUUID to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithContext

WithContext adds the context to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithDefaults

WithDefaults hydrates default values in the fetch backups by task UUID params (not the query body).

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

func (*FetchBackupsByTaskUUIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithTUUID

WithTUUID adds the tUUID to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithTimeout

WithTimeout adds the timeout to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WithUniUUID

WithUniUUID adds the uniUUID to the fetch backups by task UUID params

func (*FetchBackupsByTaskUUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type FetchBackupsByTaskUUIDReader

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

FetchBackupsByTaskUUIDReader is a Reader for the FetchBackupsByTaskUUID structure.

func (*FetchBackupsByTaskUUIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListOfBackupsInternalServerError

type ListOfBackupsInternalServerError struct {
	Payload *models.YBPError
}
ListOfBackupsInternalServerError describes a response with status code 500, with default header values.

If there was a server or database issue when listing the backups

func NewListOfBackupsInternalServerError

func NewListOfBackupsInternalServerError() *ListOfBackupsInternalServerError

NewListOfBackupsInternalServerError creates a ListOfBackupsInternalServerError with default headers values

func (*ListOfBackupsInternalServerError) Error

func (*ListOfBackupsInternalServerError) GetPayload

type ListOfBackupsOK

type ListOfBackupsOK struct {
	Payload []*models.Backup
}
ListOfBackupsOK describes a response with status code 200, with default header values.

successful operation

func NewListOfBackupsOK

func NewListOfBackupsOK() *ListOfBackupsOK

NewListOfBackupsOK creates a ListOfBackupsOK with default headers values

func (*ListOfBackupsOK) Error

func (o *ListOfBackupsOK) Error() string

func (*ListOfBackupsOK) GetPayload

func (o *ListOfBackupsOK) GetPayload() []*models.Backup

type ListOfBackupsParams

type ListOfBackupsParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

ListOfBackupsParams contains all the parameters to send to the API endpoint

for the list of backups operation.

Typically these are written to a http.Request.

func NewListOfBackupsParams

func NewListOfBackupsParams() *ListOfBackupsParams

NewListOfBackupsParams creates a new ListOfBackupsParams object, with the default timeout for this client.

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

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

func NewListOfBackupsParamsWithContext

func NewListOfBackupsParamsWithContext(ctx context.Context) *ListOfBackupsParams

NewListOfBackupsParamsWithContext creates a new ListOfBackupsParams object with the ability to set a context for a request.

func NewListOfBackupsParamsWithHTTPClient

func NewListOfBackupsParamsWithHTTPClient(client *http.Client) *ListOfBackupsParams

NewListOfBackupsParamsWithHTTPClient creates a new ListOfBackupsParams object with the ability to set a custom HTTPClient for a request.

func NewListOfBackupsParamsWithTimeout

func NewListOfBackupsParamsWithTimeout(timeout time.Duration) *ListOfBackupsParams

NewListOfBackupsParamsWithTimeout creates a new ListOfBackupsParams object with the ability to set a timeout on a request.

func (*ListOfBackupsParams) SetCUUID

func (o *ListOfBackupsParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the list of backups params

func (*ListOfBackupsParams) SetContext

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

SetContext adds the context to the list of backups params

func (*ListOfBackupsParams) SetDefaults

func (o *ListOfBackupsParams) SetDefaults()

SetDefaults hydrates default values in the list of backups params (not the query body).

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

func (*ListOfBackupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list of backups params

func (*ListOfBackupsParams) SetTimeout

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

SetTimeout adds the timeout to the list of backups params

func (*ListOfBackupsParams) SetUniUUID

func (o *ListOfBackupsParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the list of backups params

func (*ListOfBackupsParams) WithCUUID

func (o *ListOfBackupsParams) WithCUUID(cUUID strfmt.UUID) *ListOfBackupsParams

WithCUUID adds the cUUID to the list of backups params

func (*ListOfBackupsParams) WithContext

WithContext adds the context to the list of backups params

func (*ListOfBackupsParams) WithDefaults

func (o *ListOfBackupsParams) WithDefaults() *ListOfBackupsParams

WithDefaults hydrates default values in the list of backups params (not the query body).

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

func (*ListOfBackupsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list of backups params

func (*ListOfBackupsParams) WithTimeout

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

WithTimeout adds the timeout to the list of backups params

func (*ListOfBackupsParams) WithUniUUID

func (o *ListOfBackupsParams) WithUniUUID(uniUUID strfmt.UUID) *ListOfBackupsParams

WithUniUUID adds the uniUUID to the list of backups params

func (*ListOfBackupsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListOfBackupsReader

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

ListOfBackupsReader is a Reader for the ListOfBackups structure.

func (*ListOfBackupsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreOK

type RestoreOK struct {
	Payload *models.YBPTask
}
RestoreOK describes a response with status code 200, with default header values.

successful operation

func NewRestoreOK

func NewRestoreOK() *RestoreOK

NewRestoreOK creates a RestoreOK with default headers values

func (*RestoreOK) Error

func (o *RestoreOK) Error() string

func (*RestoreOK) GetPayload

func (o *RestoreOK) GetPayload() *models.YBPTask

type RestoreParams

type RestoreParams struct {

	/* Backup.

	   Parameters of the backup to be restored
	*/
	Backup *models.BackupTableParams

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UniUUID.
	//
	// Format: uuid
	UniUUID strfmt.UUID

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

RestoreParams contains all the parameters to send to the API endpoint

for the restore operation.

Typically these are written to a http.Request.

func NewRestoreParams

func NewRestoreParams() *RestoreParams

NewRestoreParams creates a new RestoreParams object, with the default timeout for this client.

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

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

func NewRestoreParamsWithContext

func NewRestoreParamsWithContext(ctx context.Context) *RestoreParams

NewRestoreParamsWithContext creates a new RestoreParams object with the ability to set a context for a request.

func NewRestoreParamsWithHTTPClient

func NewRestoreParamsWithHTTPClient(client *http.Client) *RestoreParams

NewRestoreParamsWithHTTPClient creates a new RestoreParams object with the ability to set a custom HTTPClient for a request.

func NewRestoreParamsWithTimeout

func NewRestoreParamsWithTimeout(timeout time.Duration) *RestoreParams

NewRestoreParamsWithTimeout creates a new RestoreParams object with the ability to set a timeout on a request.

func (*RestoreParams) SetBackup

func (o *RestoreParams) SetBackup(backup *models.BackupTableParams)

SetBackup adds the backup to the restore params

func (*RestoreParams) SetCUUID

func (o *RestoreParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the restore params

func (*RestoreParams) SetContext

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

SetContext adds the context to the restore params

func (*RestoreParams) SetDefaults

func (o *RestoreParams) SetDefaults()

SetDefaults hydrates default values in the restore params (not the query body).

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

func (*RestoreParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) SetTimeout

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

SetTimeout adds the timeout to the restore params

func (*RestoreParams) SetUniUUID

func (o *RestoreParams) SetUniUUID(uniUUID strfmt.UUID)

SetUniUUID adds the uniUuid to the restore params

func (*RestoreParams) WithBackup

func (o *RestoreParams) WithBackup(backup *models.BackupTableParams) *RestoreParams

WithBackup adds the backup to the restore params

func (*RestoreParams) WithCUUID

func (o *RestoreParams) WithCUUID(cUUID strfmt.UUID) *RestoreParams

WithCUUID adds the cUUID to the restore params

func (*RestoreParams) WithContext

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

WithContext adds the context to the restore params

func (*RestoreParams) WithDefaults

func (o *RestoreParams) WithDefaults() *RestoreParams

WithDefaults hydrates default values in the restore params (not the query body).

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

func (*RestoreParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore params

func (*RestoreParams) WithTimeout

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

WithTimeout adds the timeout to the restore params

func (*RestoreParams) WithUniUUID

func (o *RestoreParams) WithUniUUID(uniUUID strfmt.UUID) *RestoreParams

WithUniUUID adds the uniUUID to the restore params

func (*RestoreParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreReader

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

RestoreReader is a Reader for the Restore structure.

func (*RestoreReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StopBackupDefault

type StopBackupDefault struct {
	// contains filtered or unexported fields
}
StopBackupDefault describes a response with status code -1, with default header values.

successful operation

func NewStopBackupDefault

func NewStopBackupDefault(code int) *StopBackupDefault

NewStopBackupDefault creates a StopBackupDefault with default headers values

func (*StopBackupDefault) Code

func (o *StopBackupDefault) Code() int

Code gets the status code for the stop backup default response

func (*StopBackupDefault) Error

func (o *StopBackupDefault) Error() string

type StopBackupParams

type StopBackupParams struct {

	// BackupUUID.
	//
	// Format: uuid
	BackupUUID strfmt.UUID

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

StopBackupParams contains all the parameters to send to the API endpoint

for the stop backup operation.

Typically these are written to a http.Request.

func NewStopBackupParams

func NewStopBackupParams() *StopBackupParams

NewStopBackupParams creates a new StopBackupParams object, with the default timeout for this client.

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

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

func NewStopBackupParamsWithContext

func NewStopBackupParamsWithContext(ctx context.Context) *StopBackupParams

NewStopBackupParamsWithContext creates a new StopBackupParams object with the ability to set a context for a request.

func NewStopBackupParamsWithHTTPClient

func NewStopBackupParamsWithHTTPClient(client *http.Client) *StopBackupParams

NewStopBackupParamsWithHTTPClient creates a new StopBackupParams object with the ability to set a custom HTTPClient for a request.

func NewStopBackupParamsWithTimeout

func NewStopBackupParamsWithTimeout(timeout time.Duration) *StopBackupParams

NewStopBackupParamsWithTimeout creates a new StopBackupParams object with the ability to set a timeout on a request.

func (*StopBackupParams) SetBackupUUID

func (o *StopBackupParams) SetBackupUUID(backupUUID strfmt.UUID)

SetBackupUUID adds the backupUuid to the stop backup params

func (*StopBackupParams) SetCUUID

func (o *StopBackupParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the stop backup params

func (*StopBackupParams) SetContext

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

SetContext adds the context to the stop backup params

func (*StopBackupParams) SetDefaults

func (o *StopBackupParams) SetDefaults()

SetDefaults hydrates default values in the stop backup params (not the query body).

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

func (*StopBackupParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stop backup params

func (*StopBackupParams) SetTimeout

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

SetTimeout adds the timeout to the stop backup params

func (*StopBackupParams) WithBackupUUID

func (o *StopBackupParams) WithBackupUUID(backupUUID strfmt.UUID) *StopBackupParams

WithBackupUUID adds the backupUUID to the stop backup params

func (*StopBackupParams) WithCUUID

func (o *StopBackupParams) WithCUUID(cUUID strfmt.UUID) *StopBackupParams

WithCUUID adds the cUUID to the stop backup params

func (*StopBackupParams) WithContext

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

WithContext adds the context to the stop backup params

func (*StopBackupParams) WithDefaults

func (o *StopBackupParams) WithDefaults() *StopBackupParams

WithDefaults hydrates default values in the stop backup params (not the query body).

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

func (*StopBackupParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stop backup params

func (*StopBackupParams) WithTimeout

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

WithTimeout adds the timeout to the stop backup params

func (*StopBackupParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StopBackupReader

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

StopBackupReader is a Reader for the StopBackup structure.

func (*StopBackupReader) ReadResponse

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