github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/describe_instance_family_configs.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/15748 9 10 type DescribeInstanceFamilyConfigsRequest struct { 11 // 区域 12 Region string `name:"Region"` 13 } 14 15 func (req *DescribeInstanceFamilyConfigsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeInstanceFamilyConfigsResponse, error) { 16 resp := &DescribeInstanceFamilyConfigsResponse{} 17 err := client.Request("cvm", "DescribeInstanceFamilyConfigs", "2017-03-12").Do(req, resp) 18 return resp, err 19 } 20 21 type DescribeInstanceFamilyConfigsResponse struct { 22 github_com_morlay_goqcloud.TencentCloudBaseResponse 23 // 实例机型组配置的列表信息 24 InstanceFamilyConfigSet []*InstanceFamilyConfig `json:"InstanceFamilyConfigSet"` 25 }