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

     1  package cws
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查看站点列表
     8  // https://cloud.tencent.com/document/api/692/16752
     9  
    10  type DescribeSitesRequest struct {
    11  	// 过滤条件
    12  	Filters []*Filter `name:"Filters,omitempty"`
    13  	// 返回数量,默认为10,最大值为100
    14  	Limit *int64 `name:"Limit,omitempty"`
    15  	// 偏移量,默认为0
    16  	Offset *int64 `name:"Offset,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 站点ID列表
    20  	SiteIds []*int64 `name:"SiteIds,omitempty"`
    21  }
    22  
    23  func (req *DescribeSitesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeSitesResponse, error) {
    24  	resp := &DescribeSitesResponse{}
    25  	err := client.Request("cws", "DescribeSites", "2018-03-12").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type DescribeSitesResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 站点信息列表。
    32  	Sites []*Site `json:"Sites"`
    33  	// 站点数量。
    34  	TotalCount int64 `json:"TotalCount"`
    35  }