github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/yunjing/describe_pro_version_info.go (about) 1 package yunjing 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 获取专业版信息 8 // https://cloud.tencent.com/document/api/296/19865 9 10 type DescribeProVersionInfoRequest struct { 11 // 区域 12 Region string `name:"Region"` 13 } 14 15 func (req *DescribeProVersionInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeProVersionInfoResponse, error) { 16 resp := &DescribeProVersionInfoResponse{} 17 err := client.Request("yunjing", "DescribeProVersionInfo", "2018-02-28").Do(req, resp) 18 return resp, err 19 } 20 21 type DescribeProVersionInfoResponse struct { 22 github_com_morlay_goqcloud.TencentCloudBaseResponse 23 // 新增主机是否自动开通专业版 24 IsAutoOpenProVersion bool `json:"IsAutoOpenProVersion"` 25 // 后付费昨日扣费 26 PostPayCost int64 `json:"PostPayCost"` 27 // 开通专业版主机数 28 ProVersionNum int64 `json:"ProVersionNum"` 29 }