github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/mariadb/modify_backup_time.go (about) 1 package mariadb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改备份时间 8 // https://cloud.tencent.com/document/api/237/16173 9 10 type ModifyBackupTimeRequest struct { 11 // 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59 12 EndBackupTime string `name:"EndBackupTime"` 13 // 实例ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 14 InstanceId string `name:"InstanceId"` 15 // 区域 16 Region string `name:"Region"` 17 // 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00 18 StartBackupTime string `name:"StartBackupTime"` 19 } 20 21 func (req *ModifyBackupTimeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyBackupTimeResponse, error) { 22 resp := &ModifyBackupTimeResponse{} 23 err := client.Request("mariadb", "ModifyBackupTime", "2017-03-12").Do(req, resp) 24 return resp, err 25 } 26 27 type ModifyBackupTimeResponse struct { 28 github_com_morlay_goqcloud.TencentCloudBaseResponse 29 // 设置的状态,0 表示成功 30 Status int64 `json:"Status"` 31 }