github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/mariadb/describe_flow.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/16177 9 10 type DescribeFlowRequest struct { 11 // 异步请求接口返回的任务流程号。 12 FlowId int64 `name:"FlowId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeFlowRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeFlowResponse, error) { 18 resp := &DescribeFlowResponse{} 19 err := client.Request("mariadb", "DescribeFlow", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeFlowResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 流程状态,0:成功,1:失败,2:运行中 26 Status int64 `json:"Status"` 27 }