github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/batch/describe_compute_env_activities.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/15896 9 10 type DescribeComputeEnvActivitiesRequest struct { 11 // 计算环境ID 12 EnvId string `name:"EnvId"` 13 // 过滤条件 compute-node-id - String - 是否必填:否 -(过滤条件)按照计算节点ID过滤。 14 Filters *Filter `name:"Filters,omitempty"` 15 // 返回数量 16 Limit *int64 `name:"Limit,omitempty"` 17 // 偏移量 18 Offset *int64 `name:"Offset,omitempty"` 19 // 区域 20 Region string `name:"Region"` 21 } 22 23 func (req *DescribeComputeEnvActivitiesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeComputeEnvActivitiesResponse, error) { 24 resp := &DescribeComputeEnvActivitiesResponse{} 25 err := client.Request("batch", "DescribeComputeEnvActivities", "2017-03-12").Do(req, resp) 26 return resp, err 27 } 28 29 type DescribeComputeEnvActivitiesResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 // 计算环境中的活动列表 32 ActivitySet []*Activity `json:"ActivitySet"` 33 // 活动数量 34 TotalCount int64 `json:"TotalCount"` 35 }