Documentation ¶
Index ¶
- Constants
- type Client
- type ClientService
- type DetailsItems0
- type ItemsItems0
- type ListRestoreHistoryDefault
- type ListRestoreHistoryDefaultBody
- type ListRestoreHistoryOK
- type ListRestoreHistoryOKBody
- type ListRestoreHistoryParams
- func NewListRestoreHistoryParams() *ListRestoreHistoryParams
- func NewListRestoreHistoryParamsWithContext(ctx context.Context) *ListRestoreHistoryParams
- func NewListRestoreHistoryParamsWithHTTPClient(client *http.Client) *ListRestoreHistoryParams
- func NewListRestoreHistoryParamsWithTimeout(timeout time.Duration) *ListRestoreHistoryParams
- func (o *ListRestoreHistoryParams) SetBody(body interface{})
- func (o *ListRestoreHistoryParams) SetContext(ctx context.Context)
- func (o *ListRestoreHistoryParams) SetHTTPClient(client *http.Client)
- func (o *ListRestoreHistoryParams) SetTimeout(timeout time.Duration)
- func (o *ListRestoreHistoryParams) WithBody(body interface{}) *ListRestoreHistoryParams
- func (o *ListRestoreHistoryParams) WithContext(ctx context.Context) *ListRestoreHistoryParams
- func (o *ListRestoreHistoryParams) WithHTTPClient(client *http.Client) *ListRestoreHistoryParams
- func (o *ListRestoreHistoryParams) WithTimeout(timeout time.Duration) *ListRestoreHistoryParams
- func (o *ListRestoreHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRestoreHistoryReader
Constants ¶
const ( // ItemsItems0DataModelDATAMODELINVALID captures enum value "DATA_MODEL_INVALID" ItemsItems0DataModelDATAMODELINVALID string = "DATA_MODEL_INVALID" // ItemsItems0DataModelPHYSICAL captures enum value "PHYSICAL" ItemsItems0DataModelPHYSICAL string = "PHYSICAL" // ItemsItems0DataModelLOGICAL captures enum value "LOGICAL" ItemsItems0DataModelLOGICAL string = "LOGICAL" )
const ( // ItemsItems0StatusRESTORESTATUSINVALID captures enum value "RESTORE_STATUS_INVALID" ItemsItems0StatusRESTORESTATUSINVALID string = "RESTORE_STATUS_INVALID" // ItemsItems0StatusRESTORESTATUSINPROGRESS captures enum value "RESTORE_STATUS_IN_PROGRESS" ItemsItems0StatusRESTORESTATUSINPROGRESS string = "RESTORE_STATUS_IN_PROGRESS" // ItemsItems0StatusRESTORESTATUSSUCCESS captures enum value "RESTORE_STATUS_SUCCESS" ItemsItems0StatusRESTORESTATUSSUCCESS string = "RESTORE_STATUS_SUCCESS" // ItemsItems0StatusRESTORESTATUSERROR captures enum value "RESTORE_STATUS_ERROR" ItemsItems0StatusRESTORESTATUSERROR string = "RESTORE_STATUS_ERROR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for restore history API
func (*Client) ListRestoreHistory ¶
func (a *Client) ListRestoreHistory(params *ListRestoreHistoryParams) (*ListRestoreHistoryOK, error)
ListRestoreHistory lists restore history returns a list of all backup restore history items
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ListRestoreHistory(params *ListRestoreHistoryParams) (*ListRestoreHistoryOK, 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 restore history API client.
type DetailsItems0 ¶
type DetailsItems0 struct { // type url TypeURL string `json:"type_url,omitempty"` // value // Format: byte Value strfmt.Base64 `json:"value,omitempty"` }
DetailsItems0 details items0 swagger:model DetailsItems0
func (*DetailsItems0) MarshalBinary ¶
func (o *DetailsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DetailsItems0) UnmarshalBinary ¶
func (o *DetailsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemsItems0 ¶
type ItemsItems0 struct { // Machine-readable restore id. RestoreID string `json:"restore_id,omitempty"` // ID of the artifact used for restore. ArtifactID string `json:"artifact_id,omitempty"` // Artifact name used for restore. Name string `json:"name,omitempty"` // Database vendor e.g. PostgreSQL, MongoDB, MySQL. Vendor string `json:"vendor,omitempty"` // Machine-readable location ID. LocationID string `json:"location_id,omitempty"` // Location name. LocationName string `json:"location_name,omitempty"` // Machine-readable service ID. ServiceID string `json:"service_id,omitempty"` // Service name. ServiceName string `json:"service_name,omitempty"` // DataModel is a model used for performing a backup. // Enum: [DATA_MODEL_INVALID PHYSICAL LOGICAL] DataModel *string `json:"data_model,omitempty"` // RestoreStatus shows the current status of execution of restore. // Enum: [RESTORE_STATUS_INVALID RESTORE_STATUS_IN_PROGRESS RESTORE_STATUS_SUCCESS RESTORE_STATUS_ERROR] Status *string `json:"status,omitempty"` // Restore start time. // Format: date-time StartedAt strfmt.DateTime `json:"started_at,omitempty"` // Restore finish time. // Format: date-time FinishedAt strfmt.DateTime `json:"finished_at,omitempty"` }
ItemsItems0 RestoreHistoryItem represents single backup restore item. swagger:model ItemsItems0
func (*ItemsItems0) MarshalBinary ¶
func (o *ItemsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ItemsItems0) UnmarshalBinary ¶
func (o *ItemsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListRestoreHistoryDefault ¶
type ListRestoreHistoryDefault struct { Payload *ListRestoreHistoryDefaultBody // contains filtered or unexported fields }
ListRestoreHistoryDefault handles this case with default header values.
An unexpected error response.
func NewListRestoreHistoryDefault ¶
func NewListRestoreHistoryDefault(code int) *ListRestoreHistoryDefault
NewListRestoreHistoryDefault creates a ListRestoreHistoryDefault with default headers values
func (*ListRestoreHistoryDefault) Code ¶
func (o *ListRestoreHistoryDefault) Code() int
Code gets the status code for the list restore history default response
func (*ListRestoreHistoryDefault) Error ¶
func (o *ListRestoreHistoryDefault) Error() string
func (*ListRestoreHistoryDefault) GetPayload ¶
func (o *ListRestoreHistoryDefault) GetPayload() *ListRestoreHistoryDefaultBody
type ListRestoreHistoryDefaultBody ¶
type ListRestoreHistoryDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
ListRestoreHistoryDefaultBody list restore history default body swagger:model ListRestoreHistoryDefaultBody
func (*ListRestoreHistoryDefaultBody) MarshalBinary ¶
func (o *ListRestoreHistoryDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListRestoreHistoryDefaultBody) UnmarshalBinary ¶
func (o *ListRestoreHistoryDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListRestoreHistoryOK ¶
type ListRestoreHistoryOK struct {
Payload *ListRestoreHistoryOKBody
}
ListRestoreHistoryOK handles this case with default header values.
A successful response.
func NewListRestoreHistoryOK ¶
func NewListRestoreHistoryOK() *ListRestoreHistoryOK
NewListRestoreHistoryOK creates a ListRestoreHistoryOK with default headers values
func (*ListRestoreHistoryOK) Error ¶
func (o *ListRestoreHistoryOK) Error() string
func (*ListRestoreHistoryOK) GetPayload ¶
func (o *ListRestoreHistoryOK) GetPayload() *ListRestoreHistoryOKBody
type ListRestoreHistoryOKBody ¶
type ListRestoreHistoryOKBody struct { // items Items []*ItemsItems0 `json:"items"` }
ListRestoreHistoryOKBody list restore history OK body swagger:model ListRestoreHistoryOKBody
func (*ListRestoreHistoryOKBody) MarshalBinary ¶
func (o *ListRestoreHistoryOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListRestoreHistoryOKBody) UnmarshalBinary ¶
func (o *ListRestoreHistoryOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListRestoreHistoryParams ¶
type ListRestoreHistoryParams struct { /*Body*/ Body interface{} Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRestoreHistoryParams contains all the parameters to send to the API endpoint for the list restore history operation typically these are written to a http.Request
func NewListRestoreHistoryParams ¶
func NewListRestoreHistoryParams() *ListRestoreHistoryParams
NewListRestoreHistoryParams creates a new ListRestoreHistoryParams object with the default values initialized.
func NewListRestoreHistoryParamsWithContext ¶
func NewListRestoreHistoryParamsWithContext(ctx context.Context) *ListRestoreHistoryParams
NewListRestoreHistoryParamsWithContext creates a new ListRestoreHistoryParams object with the default values initialized, and the ability to set a context for a request
func NewListRestoreHistoryParamsWithHTTPClient ¶
func NewListRestoreHistoryParamsWithHTTPClient(client *http.Client) *ListRestoreHistoryParams
NewListRestoreHistoryParamsWithHTTPClient creates a new ListRestoreHistoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListRestoreHistoryParamsWithTimeout ¶
func NewListRestoreHistoryParamsWithTimeout(timeout time.Duration) *ListRestoreHistoryParams
NewListRestoreHistoryParamsWithTimeout creates a new ListRestoreHistoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListRestoreHistoryParams) SetBody ¶
func (o *ListRestoreHistoryParams) SetBody(body interface{})
SetBody adds the body to the list restore history params
func (*ListRestoreHistoryParams) SetContext ¶
func (o *ListRestoreHistoryParams) SetContext(ctx context.Context)
SetContext adds the context to the list restore history params
func (*ListRestoreHistoryParams) SetHTTPClient ¶
func (o *ListRestoreHistoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list restore history params
func (*ListRestoreHistoryParams) SetTimeout ¶
func (o *ListRestoreHistoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list restore history params
func (*ListRestoreHistoryParams) WithBody ¶
func (o *ListRestoreHistoryParams) WithBody(body interface{}) *ListRestoreHistoryParams
WithBody adds the body to the list restore history params
func (*ListRestoreHistoryParams) WithContext ¶
func (o *ListRestoreHistoryParams) WithContext(ctx context.Context) *ListRestoreHistoryParams
WithContext adds the context to the list restore history params
func (*ListRestoreHistoryParams) WithHTTPClient ¶
func (o *ListRestoreHistoryParams) WithHTTPClient(client *http.Client) *ListRestoreHistoryParams
WithHTTPClient adds the HTTPClient to the list restore history params
func (*ListRestoreHistoryParams) WithTimeout ¶
func (o *ListRestoreHistoryParams) WithTimeout(timeout time.Duration) *ListRestoreHistoryParams
WithTimeout adds the timeout to the list restore history params
func (*ListRestoreHistoryParams) WriteToRequest ¶
func (o *ListRestoreHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRestoreHistoryReader ¶
type ListRestoreHistoryReader struct {
// contains filtered or unexported fields
}
ListRestoreHistoryReader is a Reader for the ListRestoreHistory structure.
func (*ListRestoreHistoryReader) ReadResponse ¶
func (o *ListRestoreHistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.