github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dts/modify_sync_job.go (about) 1 package dts 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改灾备同步任务 8 // https://cloud.tencent.com/document/api/571/18569 9 10 type ModifySyncJobRequest struct { 11 // 当选择'指定库表'灾备同步的时候, 需要设置待同步的源数据库表信息,用符合json数组格式的字符串描述, 如下所例。对于database-table两级结构的数据库:[{"Database":"db1","Table":["table1","table2"]},{"Database":"db2"}] 12 DatabaseInfo *string `name:"DatabaseInfo,omitempty"` 13 // 待修改的灾备同步任务ID 14 JobId string `name:"JobId"` 15 // 灾备同步任务名称 16 JobName *string `name:"JobName,omitempty"` 17 // 区域 18 Region string `name:"Region"` 19 // 灾备同步任务配置选项 20 SyncOption *SyncOption `name:"SyncOption,omitempty"` 21 } 22 23 func (req *ModifySyncJobRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifySyncJobResponse, error) { 24 resp := &ModifySyncJobResponse{} 25 err := client.Request("dts", "ModifySyncJob", "2018-03-30").Do(req, resp) 26 return resp, err 27 } 28 29 type ModifySyncJobResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 }