github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cbs/describe_disk_operation_logs.go (about) 1 package cbs 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询云盘操作日志列表 8 // https://cloud.tencent.com/document/api/362/30162 9 10 type DescribeDiskOperationLogsRequest struct { 11 // 过滤条件。支持以下条件:disk-id - Array of String - 是否必填:是 - 按云盘ID过滤,每个请求最多可指定10个云盘ID。 12 Filters []*Filter `name:"Filters"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DescribeDiskOperationLogsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDiskOperationLogsResponse, error) { 18 resp := &DescribeDiskOperationLogsResponse{} 19 err := client.Request("cbs", "DescribeDiskOperationLogs", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type DescribeDiskOperationLogsResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 云盘的操作日志列表。 26 DiskOperationLogSet []*DiskOperationLog `json:"DiskOperationLogSet"` 27 }