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

     1  package as
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询用户账号的资源限制
     8  // https://cloud.tencent.com/document/api/377/20443
     9  
    10  type DescribeAccountLimitsRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeAccountLimitsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeAccountLimitsResponse, error) {
    16  	resp := &DescribeAccountLimitsResponse{}
    17  	err := client.Request("as", "DescribeAccountLimits", "2018-04-19").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeAccountLimitsResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 用户账户被允许创建的伸缩组最大数量
    24  	MaxNumberOfAutoScalingGroups int64 `json:"MaxNumberOfAutoScalingGroups"`
    25  	// 用户账户被允许创建的启动配置最大数量
    26  	MaxNumberOfLaunchConfigurations int64 `json:"MaxNumberOfLaunchConfigurations"`
    27  	// 用户账户伸缩组的当前数量
    28  	NumberOfAutoScalingGroups int64 `json:"NumberOfAutoScalingGroups"`
    29  	// 用户账户启动配置的当前数量
    30  	NumberOfLaunchConfigurations int64 `json:"NumberOfLaunchConfigurations"`
    31  }