github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/bm/describe_task_operation_log.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/18646
     9  
    10  type DescribeTaskOperationLogRequest struct {
    11  	// 排序方式 0:递增(默认) 1:递减
    12  	Order *int64 `name:"Order,omitempty"`
    13  	// 排序字段,目前支持:OperationTime
    14  	OrderField *string `name:"OrderField,omitempty"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  	// 维修任务ID
    18  	TaskId string `name:"TaskId"`
    19  }
    20  
    21  func (req *DescribeTaskOperationLogRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeTaskOperationLogResponse, error) {
    22  	resp := &DescribeTaskOperationLogResponse{}
    23  	err := client.Request("bm", "DescribeTaskOperationLog", "2018-04-23").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type DescribeTaskOperationLogResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  	// 操作日志
    30  	TaskOperationLogSet []*TaskOperationLog `json:"TaskOperationLogSet"`
    31  	// 日志条数
    32  	TotalCount int64 `json:"TotalCount"`
    33  }