github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/bm/describe_task_info.go (about)

     1  package bm
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  	time "time"
     6  )
     7  
     8  // 维修任务信息获取
     9  // https://cloud.tencent.com/document/api/386/18647
    10  
    11  type DescribeTaskInfoRequest struct {
    12  	// 实例别名过滤
    13  	Aliases []*string `name:"Aliases,omitempty"`
    14  	// 时间过滤上限
    15  	EndDate *time.Time `name:"EndDate,omitempty"`
    16  	// 实例ID过滤
    17  	InstanceIds []*string `name:"InstanceIds,omitempty"`
    18  	// 数据条数
    19  	Limit int64 `name:"Limit"`
    20  	// 开始位置
    21  	Offset int64 `name:"Offset"`
    22  	// 排序方式 0:递增(默认) 1:递减
    23  	Order *int64 `name:"Order,omitempty"`
    24  	// 排序字段,目前支持:CreateTime,AuthTime,EndTime
    25  	OrderField *string `name:"OrderField,omitempty"`
    26  	// 区域
    27  	Region string `name:"Region"`
    28  	// 时间过滤下限
    29  	StartDate *time.Time `name:"StartDate,omitempty"`
    30  	// 任务ID过滤
    31  	TaskIds []*string `name:"TaskIds,omitempty"`
    32  	// 任务状态ID过滤
    33  	TaskStatus []*int64 `name:"TaskStatus,omitempty"`
    34  	// 故障类型ID过滤
    35  	TaskTypeIds []*int64 `name:"TaskTypeIds,omitempty"`
    36  }
    37  
    38  func (req *DescribeTaskInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeTaskInfoResponse, error) {
    39  	resp := &DescribeTaskInfoResponse{}
    40  	err := client.Request("bm", "DescribeTaskInfo", "2018-04-23").Do(req, resp)
    41  	return resp, err
    42  }
    43  
    44  type DescribeTaskInfoResponse struct {
    45  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    46  	// 任务信息列表
    47  	TaskInfoSet []*TaskInfo `json:"TaskInfoSet"`
    48  	// 返回任务总数量
    49  	TotalCount int64 `json:"TotalCount"`
    50  }