Documentation
¶
Index ¶
- type BackupsCreateForbidden
- type BackupsCreateInternalServerError
- type BackupsCreateOK
- type BackupsCreateParams
- func (o *BackupsCreateParams) SetBackend(backend string)
- func (o *BackupsCreateParams) SetBody(body *models.BackupCreateRequest)
- func (o *BackupsCreateParams) SetContext(ctx context.Context)
- func (o *BackupsCreateParams) SetHTTPClient(client *http.Client)
- func (o *BackupsCreateParams) SetTimeout(timeout time.Duration)
- func (o *BackupsCreateParams) WithBackend(backend string) *BackupsCreateParams
- func (o *BackupsCreateParams) WithBody(body *models.BackupCreateRequest) *BackupsCreateParams
- func (o *BackupsCreateParams) WithContext(ctx context.Context) *BackupsCreateParams
- func (o *BackupsCreateParams) WithHTTPClient(client *http.Client) *BackupsCreateParams
- func (o *BackupsCreateParams) WithTimeout(timeout time.Duration) *BackupsCreateParams
- func (o *BackupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BackupsCreateReader
- type BackupsCreateStatusForbidden
- type BackupsCreateStatusInternalServerError
- type BackupsCreateStatusNotFound
- type BackupsCreateStatusOK
- type BackupsCreateStatusParams
- func NewBackupsCreateStatusParams() *BackupsCreateStatusParams
- func NewBackupsCreateStatusParamsWithContext(ctx context.Context) *BackupsCreateStatusParams
- func NewBackupsCreateStatusParamsWithHTTPClient(client *http.Client) *BackupsCreateStatusParams
- func NewBackupsCreateStatusParamsWithTimeout(timeout time.Duration) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) SetBackend(backend string)
- func (o *BackupsCreateStatusParams) SetContext(ctx context.Context)
- func (o *BackupsCreateStatusParams) SetHTTPClient(client *http.Client)
- func (o *BackupsCreateStatusParams) SetID(id string)
- func (o *BackupsCreateStatusParams) SetTimeout(timeout time.Duration)
- func (o *BackupsCreateStatusParams) WithBackend(backend string) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) WithContext(ctx context.Context) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) WithHTTPClient(client *http.Client) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) WithID(id string) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) WithTimeout(timeout time.Duration) *BackupsCreateStatusParams
- func (o *BackupsCreateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BackupsCreateStatusReader
- type BackupsCreateStatusUnauthorized
- type BackupsCreateStatusUnprocessableEntity
- type BackupsCreateUnauthorized
- type BackupsCreateUnprocessableEntity
- type BackupsRestoreForbidden
- type BackupsRestoreInternalServerError
- type BackupsRestoreNotFound
- type BackupsRestoreOK
- type BackupsRestoreParams
- func NewBackupsRestoreParams() *BackupsRestoreParams
- func NewBackupsRestoreParamsWithContext(ctx context.Context) *BackupsRestoreParams
- func NewBackupsRestoreParamsWithHTTPClient(client *http.Client) *BackupsRestoreParams
- func NewBackupsRestoreParamsWithTimeout(timeout time.Duration) *BackupsRestoreParams
- func (o *BackupsRestoreParams) SetBackend(backend string)
- func (o *BackupsRestoreParams) SetBody(body *models.BackupRestoreRequest)
- func (o *BackupsRestoreParams) SetContext(ctx context.Context)
- func (o *BackupsRestoreParams) SetHTTPClient(client *http.Client)
- func (o *BackupsRestoreParams) SetID(id string)
- func (o *BackupsRestoreParams) SetTimeout(timeout time.Duration)
- func (o *BackupsRestoreParams) WithBackend(backend string) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WithBody(body *models.BackupRestoreRequest) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WithContext(ctx context.Context) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WithHTTPClient(client *http.Client) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WithID(id string) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WithTimeout(timeout time.Duration) *BackupsRestoreParams
- func (o *BackupsRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BackupsRestoreReader
- type BackupsRestoreStatusForbidden
- type BackupsRestoreStatusInternalServerError
- type BackupsRestoreStatusNotFound
- type BackupsRestoreStatusOK
- type BackupsRestoreStatusParams
- func NewBackupsRestoreStatusParams() *BackupsRestoreStatusParams
- func NewBackupsRestoreStatusParamsWithContext(ctx context.Context) *BackupsRestoreStatusParams
- func NewBackupsRestoreStatusParamsWithHTTPClient(client *http.Client) *BackupsRestoreStatusParams
- func NewBackupsRestoreStatusParamsWithTimeout(timeout time.Duration) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) SetBackend(backend string)
- func (o *BackupsRestoreStatusParams) SetContext(ctx context.Context)
- func (o *BackupsRestoreStatusParams) SetHTTPClient(client *http.Client)
- func (o *BackupsRestoreStatusParams) SetID(id string)
- func (o *BackupsRestoreStatusParams) SetTimeout(timeout time.Duration)
- func (o *BackupsRestoreStatusParams) WithBackend(backend string) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) WithContext(ctx context.Context) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) WithHTTPClient(client *http.Client) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) WithID(id string) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) WithTimeout(timeout time.Duration) *BackupsRestoreStatusParams
- func (o *BackupsRestoreStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BackupsRestoreStatusReader
- type BackupsRestoreStatusUnauthorized
- type BackupsRestoreUnauthorized
- type BackupsRestoreUnprocessableEntity
- type Client
- func (a *Client) BackupsCreate(params *BackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateOK, error)
- func (a *Client) BackupsCreateStatus(params *BackupsCreateStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateStatusOK, error)
- func (a *Client) BackupsRestore(params *BackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreOK, error)
- func (a *Client) BackupsRestoreStatus(params *BackupsRestoreStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreStatusOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupsCreateForbidden ¶
type BackupsCreateForbidden struct {
Payload *models.ErrorResponse
}
BackupsCreateForbidden handles this case with default header values.
Forbidden
func NewBackupsCreateForbidden ¶
func NewBackupsCreateForbidden() *BackupsCreateForbidden
NewBackupsCreateForbidden creates a BackupsCreateForbidden with default headers values
func (*BackupsCreateForbidden) Error ¶
func (o *BackupsCreateForbidden) Error() string
func (*BackupsCreateForbidden) GetPayload ¶
func (o *BackupsCreateForbidden) GetPayload() *models.ErrorResponse
type BackupsCreateInternalServerError ¶
type BackupsCreateInternalServerError struct {
Payload *models.ErrorResponse
}
BackupsCreateInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewBackupsCreateInternalServerError ¶
func NewBackupsCreateInternalServerError() *BackupsCreateInternalServerError
NewBackupsCreateInternalServerError creates a BackupsCreateInternalServerError with default headers values
func (*BackupsCreateInternalServerError) Error ¶
func (o *BackupsCreateInternalServerError) Error() string
func (*BackupsCreateInternalServerError) GetPayload ¶
func (o *BackupsCreateInternalServerError) GetPayload() *models.ErrorResponse
type BackupsCreateOK ¶
type BackupsCreateOK struct {
Payload *models.BackupCreateResponse
}
BackupsCreateOK handles this case with default header values.
Backup create process successfully started.
func NewBackupsCreateOK ¶
func NewBackupsCreateOK() *BackupsCreateOK
NewBackupsCreateOK creates a BackupsCreateOK with default headers values
func (*BackupsCreateOK) Error ¶
func (o *BackupsCreateOK) Error() string
func (*BackupsCreateOK) GetPayload ¶
func (o *BackupsCreateOK) GetPayload() *models.BackupCreateResponse
type BackupsCreateParams ¶
type BackupsCreateParams struct { /*Backend Backup backend name e.g. filesystem, gcs, s3. */ Backend string /*Body*/ Body *models.BackupCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BackupsCreateParams contains all the parameters to send to the API endpoint for the backups create operation typically these are written to a http.Request
func NewBackupsCreateParams ¶
func NewBackupsCreateParams() *BackupsCreateParams
NewBackupsCreateParams creates a new BackupsCreateParams object with the default values initialized.
func NewBackupsCreateParamsWithContext ¶
func NewBackupsCreateParamsWithContext(ctx context.Context) *BackupsCreateParams
NewBackupsCreateParamsWithContext creates a new BackupsCreateParams object with the default values initialized, and the ability to set a context for a request
func NewBackupsCreateParamsWithHTTPClient ¶
func NewBackupsCreateParamsWithHTTPClient(client *http.Client) *BackupsCreateParams
NewBackupsCreateParamsWithHTTPClient creates a new BackupsCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBackupsCreateParamsWithTimeout ¶
func NewBackupsCreateParamsWithTimeout(timeout time.Duration) *BackupsCreateParams
NewBackupsCreateParamsWithTimeout creates a new BackupsCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*BackupsCreateParams) SetBackend ¶
func (o *BackupsCreateParams) SetBackend(backend string)
SetBackend adds the backend to the backups create params
func (*BackupsCreateParams) SetBody ¶
func (o *BackupsCreateParams) SetBody(body *models.BackupCreateRequest)
SetBody adds the body to the backups create params
func (*BackupsCreateParams) SetContext ¶
func (o *BackupsCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the backups create params
func (*BackupsCreateParams) SetHTTPClient ¶
func (o *BackupsCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the backups create params
func (*BackupsCreateParams) SetTimeout ¶
func (o *BackupsCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the backups create params
func (*BackupsCreateParams) WithBackend ¶
func (o *BackupsCreateParams) WithBackend(backend string) *BackupsCreateParams
WithBackend adds the backend to the backups create params
func (*BackupsCreateParams) WithBody ¶
func (o *BackupsCreateParams) WithBody(body *models.BackupCreateRequest) *BackupsCreateParams
WithBody adds the body to the backups create params
func (*BackupsCreateParams) WithContext ¶
func (o *BackupsCreateParams) WithContext(ctx context.Context) *BackupsCreateParams
WithContext adds the context to the backups create params
func (*BackupsCreateParams) WithHTTPClient ¶
func (o *BackupsCreateParams) WithHTTPClient(client *http.Client) *BackupsCreateParams
WithHTTPClient adds the HTTPClient to the backups create params
func (*BackupsCreateParams) WithTimeout ¶
func (o *BackupsCreateParams) WithTimeout(timeout time.Duration) *BackupsCreateParams
WithTimeout adds the timeout to the backups create params
func (*BackupsCreateParams) WriteToRequest ¶
func (o *BackupsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BackupsCreateReader ¶
type BackupsCreateReader struct {
// contains filtered or unexported fields
}
BackupsCreateReader is a Reader for the BackupsCreate structure.
func (*BackupsCreateReader) ReadResponse ¶
func (o *BackupsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BackupsCreateStatusForbidden ¶
type BackupsCreateStatusForbidden struct {
Payload *models.ErrorResponse
}
BackupsCreateStatusForbidden handles this case with default header values.
Forbidden
func NewBackupsCreateStatusForbidden ¶
func NewBackupsCreateStatusForbidden() *BackupsCreateStatusForbidden
NewBackupsCreateStatusForbidden creates a BackupsCreateStatusForbidden with default headers values
func (*BackupsCreateStatusForbidden) Error ¶
func (o *BackupsCreateStatusForbidden) Error() string
func (*BackupsCreateStatusForbidden) GetPayload ¶
func (o *BackupsCreateStatusForbidden) GetPayload() *models.ErrorResponse
type BackupsCreateStatusInternalServerError ¶
type BackupsCreateStatusInternalServerError struct {
Payload *models.ErrorResponse
}
BackupsCreateStatusInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewBackupsCreateStatusInternalServerError ¶
func NewBackupsCreateStatusInternalServerError() *BackupsCreateStatusInternalServerError
NewBackupsCreateStatusInternalServerError creates a BackupsCreateStatusInternalServerError with default headers values
func (*BackupsCreateStatusInternalServerError) Error ¶
func (o *BackupsCreateStatusInternalServerError) Error() string
func (*BackupsCreateStatusInternalServerError) GetPayload ¶
func (o *BackupsCreateStatusInternalServerError) GetPayload() *models.ErrorResponse
type BackupsCreateStatusNotFound ¶
type BackupsCreateStatusNotFound struct {
Payload *models.ErrorResponse
}
BackupsCreateStatusNotFound handles this case with default header values.
Not Found - Backup does not exist
func NewBackupsCreateStatusNotFound ¶
func NewBackupsCreateStatusNotFound() *BackupsCreateStatusNotFound
NewBackupsCreateStatusNotFound creates a BackupsCreateStatusNotFound with default headers values
func (*BackupsCreateStatusNotFound) Error ¶
func (o *BackupsCreateStatusNotFound) Error() string
func (*BackupsCreateStatusNotFound) GetPayload ¶
func (o *BackupsCreateStatusNotFound) GetPayload() *models.ErrorResponse
type BackupsCreateStatusOK ¶
type BackupsCreateStatusOK struct {
Payload *models.BackupCreateStatusResponse
}
BackupsCreateStatusOK handles this case with default header values.
Backup creation status successfully returned
func NewBackupsCreateStatusOK ¶
func NewBackupsCreateStatusOK() *BackupsCreateStatusOK
NewBackupsCreateStatusOK creates a BackupsCreateStatusOK with default headers values
func (*BackupsCreateStatusOK) Error ¶
func (o *BackupsCreateStatusOK) Error() string
func (*BackupsCreateStatusOK) GetPayload ¶
func (o *BackupsCreateStatusOK) GetPayload() *models.BackupCreateStatusResponse
type BackupsCreateStatusParams ¶
type BackupsCreateStatusParams struct { /*Backend Backup backend name e.g. filesystem, gcs, s3. */ Backend string /*ID The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BackupsCreateStatusParams contains all the parameters to send to the API endpoint for the backups create status operation typically these are written to a http.Request
func NewBackupsCreateStatusParams ¶
func NewBackupsCreateStatusParams() *BackupsCreateStatusParams
NewBackupsCreateStatusParams creates a new BackupsCreateStatusParams object with the default values initialized.
func NewBackupsCreateStatusParamsWithContext ¶
func NewBackupsCreateStatusParamsWithContext(ctx context.Context) *BackupsCreateStatusParams
NewBackupsCreateStatusParamsWithContext creates a new BackupsCreateStatusParams object with the default values initialized, and the ability to set a context for a request
func NewBackupsCreateStatusParamsWithHTTPClient ¶
func NewBackupsCreateStatusParamsWithHTTPClient(client *http.Client) *BackupsCreateStatusParams
NewBackupsCreateStatusParamsWithHTTPClient creates a new BackupsCreateStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBackupsCreateStatusParamsWithTimeout ¶
func NewBackupsCreateStatusParamsWithTimeout(timeout time.Duration) *BackupsCreateStatusParams
NewBackupsCreateStatusParamsWithTimeout creates a new BackupsCreateStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*BackupsCreateStatusParams) SetBackend ¶
func (o *BackupsCreateStatusParams) SetBackend(backend string)
SetBackend adds the backend to the backups create status params
func (*BackupsCreateStatusParams) SetContext ¶
func (o *BackupsCreateStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the backups create status params
func (*BackupsCreateStatusParams) SetHTTPClient ¶
func (o *BackupsCreateStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the backups create status params
func (*BackupsCreateStatusParams) SetID ¶
func (o *BackupsCreateStatusParams) SetID(id string)
SetID adds the id to the backups create status params
func (*BackupsCreateStatusParams) SetTimeout ¶
func (o *BackupsCreateStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the backups create status params
func (*BackupsCreateStatusParams) WithBackend ¶
func (o *BackupsCreateStatusParams) WithBackend(backend string) *BackupsCreateStatusParams
WithBackend adds the backend to the backups create status params
func (*BackupsCreateStatusParams) WithContext ¶
func (o *BackupsCreateStatusParams) WithContext(ctx context.Context) *BackupsCreateStatusParams
WithContext adds the context to the backups create status params
func (*BackupsCreateStatusParams) WithHTTPClient ¶
func (o *BackupsCreateStatusParams) WithHTTPClient(client *http.Client) *BackupsCreateStatusParams
WithHTTPClient adds the HTTPClient to the backups create status params
func (*BackupsCreateStatusParams) WithID ¶
func (o *BackupsCreateStatusParams) WithID(id string) *BackupsCreateStatusParams
WithID adds the id to the backups create status params
func (*BackupsCreateStatusParams) WithTimeout ¶
func (o *BackupsCreateStatusParams) WithTimeout(timeout time.Duration) *BackupsCreateStatusParams
WithTimeout adds the timeout to the backups create status params
func (*BackupsCreateStatusParams) WriteToRequest ¶
func (o *BackupsCreateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BackupsCreateStatusReader ¶
type BackupsCreateStatusReader struct {
// contains filtered or unexported fields
}
BackupsCreateStatusReader is a Reader for the BackupsCreateStatus structure.
func (*BackupsCreateStatusReader) ReadResponse ¶
func (o *BackupsCreateStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BackupsCreateStatusUnauthorized ¶
type BackupsCreateStatusUnauthorized struct { }
BackupsCreateStatusUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewBackupsCreateStatusUnauthorized ¶
func NewBackupsCreateStatusUnauthorized() *BackupsCreateStatusUnauthorized
NewBackupsCreateStatusUnauthorized creates a BackupsCreateStatusUnauthorized with default headers values
func (*BackupsCreateStatusUnauthorized) Error ¶
func (o *BackupsCreateStatusUnauthorized) Error() string
type BackupsCreateStatusUnprocessableEntity ¶
type BackupsCreateStatusUnprocessableEntity struct {
Payload *models.ErrorResponse
}
BackupsCreateStatusUnprocessableEntity handles this case with default header values.
Invalid backup restoration status attempt.
func NewBackupsCreateStatusUnprocessableEntity ¶
func NewBackupsCreateStatusUnprocessableEntity() *BackupsCreateStatusUnprocessableEntity
NewBackupsCreateStatusUnprocessableEntity creates a BackupsCreateStatusUnprocessableEntity with default headers values
func (*BackupsCreateStatusUnprocessableEntity) Error ¶
func (o *BackupsCreateStatusUnprocessableEntity) Error() string
func (*BackupsCreateStatusUnprocessableEntity) GetPayload ¶
func (o *BackupsCreateStatusUnprocessableEntity) GetPayload() *models.ErrorResponse
type BackupsCreateUnauthorized ¶
type BackupsCreateUnauthorized struct { }
BackupsCreateUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewBackupsCreateUnauthorized ¶
func NewBackupsCreateUnauthorized() *BackupsCreateUnauthorized
NewBackupsCreateUnauthorized creates a BackupsCreateUnauthorized with default headers values
func (*BackupsCreateUnauthorized) Error ¶
func (o *BackupsCreateUnauthorized) Error() string
type BackupsCreateUnprocessableEntity ¶
type BackupsCreateUnprocessableEntity struct {
Payload *models.ErrorResponse
}
BackupsCreateUnprocessableEntity handles this case with default header values.
Invalid backup creation attempt.
func NewBackupsCreateUnprocessableEntity ¶
func NewBackupsCreateUnprocessableEntity() *BackupsCreateUnprocessableEntity
NewBackupsCreateUnprocessableEntity creates a BackupsCreateUnprocessableEntity with default headers values
func (*BackupsCreateUnprocessableEntity) Error ¶
func (o *BackupsCreateUnprocessableEntity) Error() string
func (*BackupsCreateUnprocessableEntity) GetPayload ¶
func (o *BackupsCreateUnprocessableEntity) GetPayload() *models.ErrorResponse
type BackupsRestoreForbidden ¶
type BackupsRestoreForbidden struct {
Payload *models.ErrorResponse
}
BackupsRestoreForbidden handles this case with default header values.
Forbidden
func NewBackupsRestoreForbidden ¶
func NewBackupsRestoreForbidden() *BackupsRestoreForbidden
NewBackupsRestoreForbidden creates a BackupsRestoreForbidden with default headers values
func (*BackupsRestoreForbidden) Error ¶
func (o *BackupsRestoreForbidden) Error() string
func (*BackupsRestoreForbidden) GetPayload ¶
func (o *BackupsRestoreForbidden) GetPayload() *models.ErrorResponse
type BackupsRestoreInternalServerError ¶
type BackupsRestoreInternalServerError struct {
Payload *models.ErrorResponse
}
BackupsRestoreInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewBackupsRestoreInternalServerError ¶
func NewBackupsRestoreInternalServerError() *BackupsRestoreInternalServerError
NewBackupsRestoreInternalServerError creates a BackupsRestoreInternalServerError with default headers values
func (*BackupsRestoreInternalServerError) Error ¶
func (o *BackupsRestoreInternalServerError) Error() string
func (*BackupsRestoreInternalServerError) GetPayload ¶
func (o *BackupsRestoreInternalServerError) GetPayload() *models.ErrorResponse
type BackupsRestoreNotFound ¶
type BackupsRestoreNotFound struct {
Payload *models.ErrorResponse
}
BackupsRestoreNotFound handles this case with default header values.
Not Found - Backup does not exist
func NewBackupsRestoreNotFound ¶
func NewBackupsRestoreNotFound() *BackupsRestoreNotFound
NewBackupsRestoreNotFound creates a BackupsRestoreNotFound with default headers values
func (*BackupsRestoreNotFound) Error ¶
func (o *BackupsRestoreNotFound) Error() string
func (*BackupsRestoreNotFound) GetPayload ¶
func (o *BackupsRestoreNotFound) GetPayload() *models.ErrorResponse
type BackupsRestoreOK ¶
type BackupsRestoreOK struct {
Payload *models.BackupRestoreResponse
}
BackupsRestoreOK handles this case with default header values.
Backup restoration process successfully started.
func NewBackupsRestoreOK ¶
func NewBackupsRestoreOK() *BackupsRestoreOK
NewBackupsRestoreOK creates a BackupsRestoreOK with default headers values
func (*BackupsRestoreOK) Error ¶
func (o *BackupsRestoreOK) Error() string
func (*BackupsRestoreOK) GetPayload ¶
func (o *BackupsRestoreOK) GetPayload() *models.BackupRestoreResponse
type BackupsRestoreParams ¶
type BackupsRestoreParams struct { /*Backend Backup backend name e.g. filesystem, gcs, s3. */ Backend string /*Body*/ Body *models.BackupRestoreRequest /*ID The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BackupsRestoreParams contains all the parameters to send to the API endpoint for the backups restore operation typically these are written to a http.Request
func NewBackupsRestoreParams ¶
func NewBackupsRestoreParams() *BackupsRestoreParams
NewBackupsRestoreParams creates a new BackupsRestoreParams object with the default values initialized.
func NewBackupsRestoreParamsWithContext ¶
func NewBackupsRestoreParamsWithContext(ctx context.Context) *BackupsRestoreParams
NewBackupsRestoreParamsWithContext creates a new BackupsRestoreParams object with the default values initialized, and the ability to set a context for a request
func NewBackupsRestoreParamsWithHTTPClient ¶
func NewBackupsRestoreParamsWithHTTPClient(client *http.Client) *BackupsRestoreParams
NewBackupsRestoreParamsWithHTTPClient creates a new BackupsRestoreParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBackupsRestoreParamsWithTimeout ¶
func NewBackupsRestoreParamsWithTimeout(timeout time.Duration) *BackupsRestoreParams
NewBackupsRestoreParamsWithTimeout creates a new BackupsRestoreParams object with the default values initialized, and the ability to set a timeout on a request
func (*BackupsRestoreParams) SetBackend ¶
func (o *BackupsRestoreParams) SetBackend(backend string)
SetBackend adds the backend to the backups restore params
func (*BackupsRestoreParams) SetBody ¶
func (o *BackupsRestoreParams) SetBody(body *models.BackupRestoreRequest)
SetBody adds the body to the backups restore params
func (*BackupsRestoreParams) SetContext ¶
func (o *BackupsRestoreParams) SetContext(ctx context.Context)
SetContext adds the context to the backups restore params
func (*BackupsRestoreParams) SetHTTPClient ¶
func (o *BackupsRestoreParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the backups restore params
func (*BackupsRestoreParams) SetID ¶
func (o *BackupsRestoreParams) SetID(id string)
SetID adds the id to the backups restore params
func (*BackupsRestoreParams) SetTimeout ¶
func (o *BackupsRestoreParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the backups restore params
func (*BackupsRestoreParams) WithBackend ¶
func (o *BackupsRestoreParams) WithBackend(backend string) *BackupsRestoreParams
WithBackend adds the backend to the backups restore params
func (*BackupsRestoreParams) WithBody ¶
func (o *BackupsRestoreParams) WithBody(body *models.BackupRestoreRequest) *BackupsRestoreParams
WithBody adds the body to the backups restore params
func (*BackupsRestoreParams) WithContext ¶
func (o *BackupsRestoreParams) WithContext(ctx context.Context) *BackupsRestoreParams
WithContext adds the context to the backups restore params
func (*BackupsRestoreParams) WithHTTPClient ¶
func (o *BackupsRestoreParams) WithHTTPClient(client *http.Client) *BackupsRestoreParams
WithHTTPClient adds the HTTPClient to the backups restore params
func (*BackupsRestoreParams) WithID ¶
func (o *BackupsRestoreParams) WithID(id string) *BackupsRestoreParams
WithID adds the id to the backups restore params
func (*BackupsRestoreParams) WithTimeout ¶
func (o *BackupsRestoreParams) WithTimeout(timeout time.Duration) *BackupsRestoreParams
WithTimeout adds the timeout to the backups restore params
func (*BackupsRestoreParams) WriteToRequest ¶
func (o *BackupsRestoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BackupsRestoreReader ¶
type BackupsRestoreReader struct {
// contains filtered or unexported fields
}
BackupsRestoreReader is a Reader for the BackupsRestore structure.
func (*BackupsRestoreReader) ReadResponse ¶
func (o *BackupsRestoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BackupsRestoreStatusForbidden ¶
type BackupsRestoreStatusForbidden struct {
Payload *models.ErrorResponse
}
BackupsRestoreStatusForbidden handles this case with default header values.
Forbidden
func NewBackupsRestoreStatusForbidden ¶
func NewBackupsRestoreStatusForbidden() *BackupsRestoreStatusForbidden
NewBackupsRestoreStatusForbidden creates a BackupsRestoreStatusForbidden with default headers values
func (*BackupsRestoreStatusForbidden) Error ¶
func (o *BackupsRestoreStatusForbidden) Error() string
func (*BackupsRestoreStatusForbidden) GetPayload ¶
func (o *BackupsRestoreStatusForbidden) GetPayload() *models.ErrorResponse
type BackupsRestoreStatusInternalServerError ¶
type BackupsRestoreStatusInternalServerError struct {
Payload *models.ErrorResponse
}
BackupsRestoreStatusInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewBackupsRestoreStatusInternalServerError ¶
func NewBackupsRestoreStatusInternalServerError() *BackupsRestoreStatusInternalServerError
NewBackupsRestoreStatusInternalServerError creates a BackupsRestoreStatusInternalServerError with default headers values
func (*BackupsRestoreStatusInternalServerError) Error ¶
func (o *BackupsRestoreStatusInternalServerError) Error() string
func (*BackupsRestoreStatusInternalServerError) GetPayload ¶
func (o *BackupsRestoreStatusInternalServerError) GetPayload() *models.ErrorResponse
type BackupsRestoreStatusNotFound ¶
type BackupsRestoreStatusNotFound struct {
Payload *models.ErrorResponse
}
BackupsRestoreStatusNotFound handles this case with default header values.
Not Found - Backup does not exist
func NewBackupsRestoreStatusNotFound ¶
func NewBackupsRestoreStatusNotFound() *BackupsRestoreStatusNotFound
NewBackupsRestoreStatusNotFound creates a BackupsRestoreStatusNotFound with default headers values
func (*BackupsRestoreStatusNotFound) Error ¶
func (o *BackupsRestoreStatusNotFound) Error() string
func (*BackupsRestoreStatusNotFound) GetPayload ¶
func (o *BackupsRestoreStatusNotFound) GetPayload() *models.ErrorResponse
type BackupsRestoreStatusOK ¶
type BackupsRestoreStatusOK struct {
Payload *models.BackupRestoreStatusResponse
}
BackupsRestoreStatusOK handles this case with default header values.
Backup restoration status successfully returned
func NewBackupsRestoreStatusOK ¶
func NewBackupsRestoreStatusOK() *BackupsRestoreStatusOK
NewBackupsRestoreStatusOK creates a BackupsRestoreStatusOK with default headers values
func (*BackupsRestoreStatusOK) Error ¶
func (o *BackupsRestoreStatusOK) Error() string
func (*BackupsRestoreStatusOK) GetPayload ¶
func (o *BackupsRestoreStatusOK) GetPayload() *models.BackupRestoreStatusResponse
type BackupsRestoreStatusParams ¶
type BackupsRestoreStatusParams struct { /*Backend Backup backend name e.g. filesystem, gcs, s3. */ Backend string /*ID The ID of a backup. Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BackupsRestoreStatusParams contains all the parameters to send to the API endpoint for the backups restore status operation typically these are written to a http.Request
func NewBackupsRestoreStatusParams ¶
func NewBackupsRestoreStatusParams() *BackupsRestoreStatusParams
NewBackupsRestoreStatusParams creates a new BackupsRestoreStatusParams object with the default values initialized.
func NewBackupsRestoreStatusParamsWithContext ¶
func NewBackupsRestoreStatusParamsWithContext(ctx context.Context) *BackupsRestoreStatusParams
NewBackupsRestoreStatusParamsWithContext creates a new BackupsRestoreStatusParams object with the default values initialized, and the ability to set a context for a request
func NewBackupsRestoreStatusParamsWithHTTPClient ¶
func NewBackupsRestoreStatusParamsWithHTTPClient(client *http.Client) *BackupsRestoreStatusParams
NewBackupsRestoreStatusParamsWithHTTPClient creates a new BackupsRestoreStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBackupsRestoreStatusParamsWithTimeout ¶
func NewBackupsRestoreStatusParamsWithTimeout(timeout time.Duration) *BackupsRestoreStatusParams
NewBackupsRestoreStatusParamsWithTimeout creates a new BackupsRestoreStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*BackupsRestoreStatusParams) SetBackend ¶
func (o *BackupsRestoreStatusParams) SetBackend(backend string)
SetBackend adds the backend to the backups restore status params
func (*BackupsRestoreStatusParams) SetContext ¶
func (o *BackupsRestoreStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the backups restore status params
func (*BackupsRestoreStatusParams) SetHTTPClient ¶
func (o *BackupsRestoreStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the backups restore status params
func (*BackupsRestoreStatusParams) SetID ¶
func (o *BackupsRestoreStatusParams) SetID(id string)
SetID adds the id to the backups restore status params
func (*BackupsRestoreStatusParams) SetTimeout ¶
func (o *BackupsRestoreStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the backups restore status params
func (*BackupsRestoreStatusParams) WithBackend ¶
func (o *BackupsRestoreStatusParams) WithBackend(backend string) *BackupsRestoreStatusParams
WithBackend adds the backend to the backups restore status params
func (*BackupsRestoreStatusParams) WithContext ¶
func (o *BackupsRestoreStatusParams) WithContext(ctx context.Context) *BackupsRestoreStatusParams
WithContext adds the context to the backups restore status params
func (*BackupsRestoreStatusParams) WithHTTPClient ¶
func (o *BackupsRestoreStatusParams) WithHTTPClient(client *http.Client) *BackupsRestoreStatusParams
WithHTTPClient adds the HTTPClient to the backups restore status params
func (*BackupsRestoreStatusParams) WithID ¶
func (o *BackupsRestoreStatusParams) WithID(id string) *BackupsRestoreStatusParams
WithID adds the id to the backups restore status params
func (*BackupsRestoreStatusParams) WithTimeout ¶
func (o *BackupsRestoreStatusParams) WithTimeout(timeout time.Duration) *BackupsRestoreStatusParams
WithTimeout adds the timeout to the backups restore status params
func (*BackupsRestoreStatusParams) WriteToRequest ¶
func (o *BackupsRestoreStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BackupsRestoreStatusReader ¶
type BackupsRestoreStatusReader struct {
// contains filtered or unexported fields
}
BackupsRestoreStatusReader is a Reader for the BackupsRestoreStatus structure.
func (*BackupsRestoreStatusReader) ReadResponse ¶
func (o *BackupsRestoreStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BackupsRestoreStatusUnauthorized ¶
type BackupsRestoreStatusUnauthorized struct { }
BackupsRestoreStatusUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewBackupsRestoreStatusUnauthorized ¶
func NewBackupsRestoreStatusUnauthorized() *BackupsRestoreStatusUnauthorized
NewBackupsRestoreStatusUnauthorized creates a BackupsRestoreStatusUnauthorized with default headers values
func (*BackupsRestoreStatusUnauthorized) Error ¶
func (o *BackupsRestoreStatusUnauthorized) Error() string
type BackupsRestoreUnauthorized ¶
type BackupsRestoreUnauthorized struct { }
BackupsRestoreUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewBackupsRestoreUnauthorized ¶
func NewBackupsRestoreUnauthorized() *BackupsRestoreUnauthorized
NewBackupsRestoreUnauthorized creates a BackupsRestoreUnauthorized with default headers values
func (*BackupsRestoreUnauthorized) Error ¶
func (o *BackupsRestoreUnauthorized) Error() string
type BackupsRestoreUnprocessableEntity ¶
type BackupsRestoreUnprocessableEntity struct {
Payload *models.ErrorResponse
}
BackupsRestoreUnprocessableEntity handles this case with default header values.
Invalid backup restoration attempt.
func NewBackupsRestoreUnprocessableEntity ¶
func NewBackupsRestoreUnprocessableEntity() *BackupsRestoreUnprocessableEntity
NewBackupsRestoreUnprocessableEntity creates a BackupsRestoreUnprocessableEntity with default headers values
func (*BackupsRestoreUnprocessableEntity) Error ¶
func (o *BackupsRestoreUnprocessableEntity) Error() string
func (*BackupsRestoreUnprocessableEntity) GetPayload ¶
func (o *BackupsRestoreUnprocessableEntity) GetPayload() *models.ErrorResponse
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for backups API
func (*Client) BackupsCreate ¶
func (a *Client) BackupsCreate(params *BackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateOK, error)
BackupsCreate Starts a process of creating a backup for a set of classes
func (*Client) BackupsCreateStatus ¶
func (a *Client) BackupsCreateStatus(params *BackupsCreateStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateStatusOK, error)
BackupsCreateStatus Returns status of backup creation attempt for a set of classes
func (*Client) BackupsRestore ¶
func (a *Client) BackupsRestore(params *BackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreOK, error)
BackupsRestore Starts a process of restoring a backup for a set of classes
func (*Client) BackupsRestoreStatus ¶
func (a *Client) BackupsRestoreStatus(params *BackupsRestoreStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreStatusOK, error)
BackupsRestoreStatus Returns status of a backup restoration attempt for a set of classes
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { BackupsCreate(params *BackupsCreateParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateOK, error) BackupsCreateStatus(params *BackupsCreateStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsCreateStatusOK, error) BackupsRestore(params *BackupsRestoreParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreOK, error) BackupsRestoreStatus(params *BackupsRestoreStatusParams, authInfo runtime.ClientAuthInfoWriter) (*BackupsRestoreStatusOK, 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.