github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/bm/repair_task_control.go (about) 1 package bm 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 维修任务管理 8 // https://cloud.tencent.com/document/api/386/18645 9 10 type RepairTaskControlRequest struct { 11 // 操作 12 Operate string `name:"Operate"` 13 // 区域 14 Region string `name:"Region"` 15 // 维修任务ID 16 TaskId string `name:"TaskId"` 17 } 18 19 func (req *RepairTaskControlRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RepairTaskControlResponse, error) { 20 resp := &RepairTaskControlResponse{} 21 err := client.Request("bm", "RepairTaskControl", "2018-04-23").Do(req, resp) 22 return resp, err 23 } 24 25 type RepairTaskControlResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 出参TaskId是黑石异步任务ID,不同于入参TaskId字段。此字段可作为DescriptionOperationResult查询异步任务状态接口的入参,查询异步任务执行结果。 28 TaskId int64 `json:"TaskId"` 29 }