github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/redis/manual_backup_instance.go (about)

     1  package redis
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 手动备份Redis实例
     8  // https://cloud.tencent.com/document/api/239/20010
     9  
    10  type ManualBackupInstanceRequest struct {
    11  	// 待操作的实例ID,可通过 DescribeInstance接口返回值中的 InstanceId 获取。
    12  	InstanceId string `name:"InstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// 备份的备注信息
    16  	Remark *string `name:"Remark,omitempty"`
    17  }
    18  
    19  func (req *ManualBackupInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ManualBackupInstanceResponse, error) {
    20  	resp := &ManualBackupInstanceResponse{}
    21  	err := client.Request("redis", "ManualBackupInstance", "2018-04-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ManualBackupInstanceResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 任务ID
    28  	TaskId int64 `json:"TaskId"`
    29  }