Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestOpts golangsdk.RequestOpts = golangsdk.RequestOpts{ MoreHeaders: map[string]string{"Content-Type": "application/json", "X-Language": "en-us"}, }
Functions ¶
This section is empty.
Types ¶
type GetEncryptionResponse ¶
type GetEncryptionResponse struct {
EncryptionStatus string `json:"encryption_status"`
}
type GetEncryptionResult ¶
func GetEncryption ¶
func GetEncryption(c *golangsdk.ServiceClient, instanceId string) (r GetEncryptionResult)
func (GetEncryptionResult) Extract ¶
func (r GetEncryptionResult) Extract() (*GetEncryptionResponse, error)
type UpdateEncryptionOpts ¶
type UpdateEncryptionOpts struct { EncryptionStatus string `json:"encryption_status" required:"true"` Type string `json:"type,omitempty"` KmsKeyId string `json:"kms_key_id,omitempty"` }
func (UpdateEncryptionOpts) ToUpdateEncryptionMap ¶
func (opts UpdateEncryptionOpts) ToUpdateEncryptionMap() (map[string]interface{}, error)
type UpdateEncryptionResponse ¶
type UpdateEncryptionResponse struct {
EncryptionStatus string `json:"encryption_status"`
}
type UpdateEncryptionResult ¶
func UpdateEncryption ¶
func UpdateEncryption(c *golangsdk.ServiceClient, id string, opts UpdateEncryptionOptsBuilder) (r UpdateEncryptionResult)
func (UpdateEncryptionResult) Extract ¶
func (r UpdateEncryptionResult) Extract() (*UpdateEncryptionResponse, error)
type UpdateOpts ¶
type UpdateOpts struct { //Keep Days KeepDays *int `json:"keep_days" required:"true"` //Start Time StartTime string `json:"start_time" required:"true"` //Period Period string `json:"period" required:"true"` }
UpdateOpts contains all the values needed to update a Backup.
func (UpdateOpts) ToBackupUpdateMap ¶
func (opts UpdateOpts) ToBackupUpdateMap() (map[string]interface{}, error)
ToBackupUpdateMap builds a update request body from UpdateOpts.
type UpdateOptsBuilder ¶
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.
type UpdateResult ¶
UpdateResult represents the result of a update operation.
func Update ¶
func Update(c *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)
Update accepts a UpdateOpts struct and uses the values to update a Backup.The response code from api is 200
Click to show internal directories.
Click to hide internal directories.