github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cws/describe_site_quota.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/16751
     9  
    10  type DescribeSiteQuotaRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeSiteQuotaRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeSiteQuotaResponse, error) {
    16  	resp := &DescribeSiteQuotaResponse{}
    17  	err := client.Request("cws", "DescribeSiteQuota", "2018-03-12").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeSiteQuotaResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 剩余可用的扫描次数。
    24  	Available int64 `json:"Available"`
    25  	// 已购买的扫描次数。
    26  	Total int64 `json:"Total"`
    27  	// 已使用的扫描次数。
    28  	Used int64 `json:"Used"`
    29  }