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

     1  package cvm
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询镜像配额上限
     8  // https://cloud.tencent.com/document/api/213/15719
     9  
    10  type DescribeImageQuotaRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeImageQuotaRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeImageQuotaResponse, error) {
    16  	resp := &DescribeImageQuotaResponse{}
    17  	err := client.Request("cvm", "DescribeImageQuota", "2017-03-12").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeImageQuotaResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 账户的镜像配额
    24  	ImageNumQuota int64 `json:"ImageNumQuota"`
    25  }