github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/describe_disaster_recover_group_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/17811
     9  
    10  type DescribeDisasterRecoverGroupQuotaRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeDisasterRecoverGroupQuotaRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDisasterRecoverGroupQuotaResponse, error) {
    16  	resp := &DescribeDisasterRecoverGroupQuotaResponse{}
    17  	err := client.Request("cvm", "DescribeDisasterRecoverGroupQuota", "2017-03-12").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeDisasterRecoverGroupQuotaResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 当前用户已经创建的置放群组数量。
    24  	CurrentNum int64 `json:"CurrentNum"`
    25  	// 物理机类型容灾组内实例的配额数。
    26  	CvmInHostGroupQuota int64 `json:"CvmInHostGroupQuota"`
    27  	// 机架类型容灾组内实例的配额数。
    28  	CvmInRackGroupQuota int64 `json:"CvmInRackGroupQuota"`
    29  	// 交换机类型容灾组内实例的配额数。
    30  	CvmInSwGroupQuota int64 `json:"CvmInSwGroupQuota"`
    31  	// 可创建置放群组数量的上限。
    32  	GroupQuota int64 `json:"GroupQuota"`
    33  }