Documentation ¶
Index ¶
- type Client
- type ClientService
- type DetailsItems0
- type RestoreBackupBody
- type RestoreBackupDefault
- type RestoreBackupDefaultBody
- type RestoreBackupOK
- type RestoreBackupOKBody
- type RestoreBackupParams
- func (o *RestoreBackupParams) SetBody(body RestoreBackupBody)
- func (o *RestoreBackupParams) SetContext(ctx context.Context)
- func (o *RestoreBackupParams) SetHTTPClient(client *http.Client)
- func (o *RestoreBackupParams) SetTimeout(timeout time.Duration)
- func (o *RestoreBackupParams) WithBody(body RestoreBackupBody) *RestoreBackupParams
- func (o *RestoreBackupParams) WithContext(ctx context.Context) *RestoreBackupParams
- func (o *RestoreBackupParams) WithHTTPClient(client *http.Client) *RestoreBackupParams
- func (o *RestoreBackupParams) WithTimeout(timeout time.Duration) *RestoreBackupParams
- func (o *RestoreBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestoreBackupReader
- type StartBackupBody
- type StartBackupDefault
- type StartBackupDefaultBody
- type StartBackupOK
- type StartBackupOKBody
- type StartBackupParams
- func (o *StartBackupParams) SetBody(body StartBackupBody)
- func (o *StartBackupParams) SetContext(ctx context.Context)
- func (o *StartBackupParams) SetHTTPClient(client *http.Client)
- func (o *StartBackupParams) SetTimeout(timeout time.Duration)
- func (o *StartBackupParams) WithBody(body StartBackupBody) *StartBackupParams
- func (o *StartBackupParams) WithContext(ctx context.Context) *StartBackupParams
- func (o *StartBackupParams) WithHTTPClient(client *http.Client) *StartBackupParams
- func (o *StartBackupParams) WithTimeout(timeout time.Duration) *StartBackupParams
- func (o *StartBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StartBackupReader
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) RestoreBackup ¶
func (a *Client) RestoreBackup(params *RestoreBackupParams) (*RestoreBackupOK, error)
RestoreBackup restores backup requests the backup restore
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) StartBackup ¶
func (a *Client) StartBackup(params *StartBackupParams) (*StartBackupOK, error)
StartBackup starts backup request backup specified service to location
type ClientService ¶
type ClientService interface { RestoreBackup(params *RestoreBackupParams) (*RestoreBackupOK, error) StartBackup(params *StartBackupParams) (*StartBackupOK, 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 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 RestoreBackupBody ¶
type RestoreBackupBody struct { // Service identifier where backup should be restored. ServiceID string `json:"service_id,omitempty"` // Artifact id to restore. ArtifactID string `json:"artifact_id,omitempty"` }
RestoreBackupBody restore backup body swagger:model RestoreBackupBody
func (*RestoreBackupBody) MarshalBinary ¶
func (o *RestoreBackupBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestoreBackupBody) UnmarshalBinary ¶
func (o *RestoreBackupBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestoreBackupDefault ¶
type RestoreBackupDefault struct { Payload *RestoreBackupDefaultBody // contains filtered or unexported fields }
RestoreBackupDefault handles this case with default header values.
An unexpected error response.
func NewRestoreBackupDefault ¶
func NewRestoreBackupDefault(code int) *RestoreBackupDefault
NewRestoreBackupDefault creates a RestoreBackupDefault with default headers values
func (*RestoreBackupDefault) Code ¶
func (o *RestoreBackupDefault) Code() int
Code gets the status code for the restore backup default response
func (*RestoreBackupDefault) Error ¶
func (o *RestoreBackupDefault) Error() string
func (*RestoreBackupDefault) GetPayload ¶
func (o *RestoreBackupDefault) GetPayload() *RestoreBackupDefaultBody
type RestoreBackupDefaultBody ¶
type RestoreBackupDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
RestoreBackupDefaultBody restore backup default body swagger:model RestoreBackupDefaultBody
func (*RestoreBackupDefaultBody) MarshalBinary ¶
func (o *RestoreBackupDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestoreBackupDefaultBody) UnmarshalBinary ¶
func (o *RestoreBackupDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestoreBackupOK ¶
type RestoreBackupOK struct {
Payload *RestoreBackupOKBody
}
RestoreBackupOK handles this case with default header values.
A successful response.
func NewRestoreBackupOK ¶
func NewRestoreBackupOK() *RestoreBackupOK
NewRestoreBackupOK creates a RestoreBackupOK with default headers values
func (*RestoreBackupOK) Error ¶
func (o *RestoreBackupOK) Error() string
func (*RestoreBackupOK) GetPayload ¶
func (o *RestoreBackupOK) GetPayload() *RestoreBackupOKBody
type RestoreBackupOKBody ¶
type RestoreBackupOKBody struct { // Unique restore identifier. RestoreID string `json:"restore_id,omitempty"` }
RestoreBackupOKBody restore backup OK body swagger:model RestoreBackupOKBody
func (*RestoreBackupOKBody) MarshalBinary ¶
func (o *RestoreBackupOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RestoreBackupOKBody) UnmarshalBinary ¶
func (o *RestoreBackupOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RestoreBackupParams ¶
type RestoreBackupParams struct { /*Body*/ Body RestoreBackupBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RestoreBackupParams contains all the parameters to send to the API endpoint for the restore backup operation typically these are written to a http.Request
func NewRestoreBackupParams ¶
func NewRestoreBackupParams() *RestoreBackupParams
NewRestoreBackupParams creates a new RestoreBackupParams object with the default values initialized.
func NewRestoreBackupParamsWithContext ¶
func NewRestoreBackupParamsWithContext(ctx context.Context) *RestoreBackupParams
NewRestoreBackupParamsWithContext creates a new RestoreBackupParams object with the default values initialized, and the ability to set a context for a request
func NewRestoreBackupParamsWithHTTPClient ¶
func NewRestoreBackupParamsWithHTTPClient(client *http.Client) *RestoreBackupParams
NewRestoreBackupParamsWithHTTPClient creates a new RestoreBackupParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRestoreBackupParamsWithTimeout ¶
func NewRestoreBackupParamsWithTimeout(timeout time.Duration) *RestoreBackupParams
NewRestoreBackupParamsWithTimeout creates a new RestoreBackupParams object with the default values initialized, and the ability to set a timeout on a request
func (*RestoreBackupParams) SetBody ¶
func (o *RestoreBackupParams) SetBody(body RestoreBackupBody)
SetBody adds the body to the restore backup params
func (*RestoreBackupParams) SetContext ¶
func (o *RestoreBackupParams) SetContext(ctx context.Context)
SetContext adds the context to the restore backup params
func (*RestoreBackupParams) SetHTTPClient ¶
func (o *RestoreBackupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the restore backup params
func (*RestoreBackupParams) SetTimeout ¶
func (o *RestoreBackupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the restore backup params
func (*RestoreBackupParams) WithBody ¶
func (o *RestoreBackupParams) WithBody(body RestoreBackupBody) *RestoreBackupParams
WithBody adds the body to the restore backup params
func (*RestoreBackupParams) WithContext ¶
func (o *RestoreBackupParams) WithContext(ctx context.Context) *RestoreBackupParams
WithContext adds the context to the restore backup params
func (*RestoreBackupParams) WithHTTPClient ¶
func (o *RestoreBackupParams) WithHTTPClient(client *http.Client) *RestoreBackupParams
WithHTTPClient adds the HTTPClient to the restore backup params
func (*RestoreBackupParams) WithTimeout ¶
func (o *RestoreBackupParams) WithTimeout(timeout time.Duration) *RestoreBackupParams
WithTimeout adds the timeout to the restore backup params
func (*RestoreBackupParams) WriteToRequest ¶
func (o *RestoreBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RestoreBackupReader ¶
type RestoreBackupReader struct {
// contains filtered or unexported fields
}
RestoreBackupReader is a Reader for the RestoreBackup structure.
func (*RestoreBackupReader) ReadResponse ¶
func (o *RestoreBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StartBackupBody ¶
type StartBackupBody struct { // Service identifier. ServiceID string `json:"service_id,omitempty"` // Machine-readable location ID. LocationID string `json:"location_id,omitempty"` // If empty then name is auto-generated. Name string `json:"name,omitempty"` // Human-readable description. Description string `json:"description,omitempty"` }
StartBackupBody start backup body swagger:model StartBackupBody
func (*StartBackupBody) MarshalBinary ¶
func (o *StartBackupBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartBackupBody) UnmarshalBinary ¶
func (o *StartBackupBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartBackupDefault ¶
type StartBackupDefault struct { Payload *StartBackupDefaultBody // contains filtered or unexported fields }
StartBackupDefault handles this case with default header values.
An unexpected error response.
func NewStartBackupDefault ¶
func NewStartBackupDefault(code int) *StartBackupDefault
NewStartBackupDefault creates a StartBackupDefault with default headers values
func (*StartBackupDefault) Code ¶
func (o *StartBackupDefault) Code() int
Code gets the status code for the start backup default response
func (*StartBackupDefault) Error ¶
func (o *StartBackupDefault) Error() string
func (*StartBackupDefault) GetPayload ¶
func (o *StartBackupDefault) GetPayload() *StartBackupDefaultBody
type StartBackupDefaultBody ¶
type StartBackupDefaultBody struct { // error Error string `json:"error,omitempty"` // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // details Details []*DetailsItems0 `json:"details"` }
StartBackupDefaultBody start backup default body swagger:model StartBackupDefaultBody
func (*StartBackupDefaultBody) MarshalBinary ¶
func (o *StartBackupDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartBackupDefaultBody) UnmarshalBinary ¶
func (o *StartBackupDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartBackupOK ¶
type StartBackupOK struct {
Payload *StartBackupOKBody
}
StartBackupOK handles this case with default header values.
A successful response.
func NewStartBackupOK ¶
func NewStartBackupOK() *StartBackupOK
NewStartBackupOK creates a StartBackupOK with default headers values
func (*StartBackupOK) Error ¶
func (o *StartBackupOK) Error() string
func (*StartBackupOK) GetPayload ¶
func (o *StartBackupOK) GetPayload() *StartBackupOKBody
type StartBackupOKBody ¶
type StartBackupOKBody struct { // Unique identifier. ArtifactID string `json:"artifact_id,omitempty"` }
StartBackupOKBody start backup OK body swagger:model StartBackupOKBody
func (*StartBackupOKBody) MarshalBinary ¶
func (o *StartBackupOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartBackupOKBody) UnmarshalBinary ¶
func (o *StartBackupOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartBackupParams ¶
type StartBackupParams struct { /*Body*/ Body StartBackupBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StartBackupParams contains all the parameters to send to the API endpoint for the start backup operation typically these are written to a http.Request
func NewStartBackupParams ¶
func NewStartBackupParams() *StartBackupParams
NewStartBackupParams creates a new StartBackupParams object with the default values initialized.
func NewStartBackupParamsWithContext ¶
func NewStartBackupParamsWithContext(ctx context.Context) *StartBackupParams
NewStartBackupParamsWithContext creates a new StartBackupParams object with the default values initialized, and the ability to set a context for a request
func NewStartBackupParamsWithHTTPClient ¶
func NewStartBackupParamsWithHTTPClient(client *http.Client) *StartBackupParams
NewStartBackupParamsWithHTTPClient creates a new StartBackupParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewStartBackupParamsWithTimeout ¶
func NewStartBackupParamsWithTimeout(timeout time.Duration) *StartBackupParams
NewStartBackupParamsWithTimeout creates a new StartBackupParams object with the default values initialized, and the ability to set a timeout on a request
func (*StartBackupParams) SetBody ¶
func (o *StartBackupParams) SetBody(body StartBackupBody)
SetBody adds the body to the start backup params
func (*StartBackupParams) SetContext ¶
func (o *StartBackupParams) SetContext(ctx context.Context)
SetContext adds the context to the start backup params
func (*StartBackupParams) SetHTTPClient ¶
func (o *StartBackupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the start backup params
func (*StartBackupParams) SetTimeout ¶
func (o *StartBackupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the start backup params
func (*StartBackupParams) WithBody ¶
func (o *StartBackupParams) WithBody(body StartBackupBody) *StartBackupParams
WithBody adds the body to the start backup params
func (*StartBackupParams) WithContext ¶
func (o *StartBackupParams) WithContext(ctx context.Context) *StartBackupParams
WithContext adds the context to the start backup params
func (*StartBackupParams) WithHTTPClient ¶
func (o *StartBackupParams) WithHTTPClient(client *http.Client) *StartBackupParams
WithHTTPClient adds the HTTPClient to the start backup params
func (*StartBackupParams) WithTimeout ¶
func (o *StartBackupParams) WithTimeout(timeout time.Duration) *StartBackupParams
WithTimeout adds the timeout to the start backup params
func (*StartBackupParams) WriteToRequest ¶
func (o *StartBackupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StartBackupReader ¶
type StartBackupReader struct {
// contains filtered or unexported fields
}
StartBackupReader is a Reader for the StartBackup structure.
func (*StartBackupReader) ReadResponse ¶
func (o *StartBackupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.