github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/batch/terminate_task_instance.go (about) 1 package batch 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 终止任务实例 8 // https://cloud.tencent.com/document/api/599/15908 9 10 type TerminateTaskInstanceRequest struct { 11 // 作业ID 12 JobId string `name:"JobId"` 13 // 区域 14 Region string `name:"Region"` 15 // 任务实例索引 16 TaskInstanceIndex int64 `name:"TaskInstanceIndex"` 17 // 任务名称 18 TaskName string `name:"TaskName"` 19 } 20 21 func (req *TerminateTaskInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*TerminateTaskInstanceResponse, error) { 22 resp := &TerminateTaskInstanceResponse{} 23 err := client.Request("batch", "TerminateTaskInstance", "2017-03-12").Do(req, resp) 24 return resp, err 25 } 26 27 type TerminateTaskInstanceResponse struct { 28 github_com_morlay_goqcloud.TencentCloudBaseResponse 29 }