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

     1  package postgres
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询售卖规格配置
     8  // https://cloud.tencent.com/document/api/409/16776
     9  
    10  type DescribeProductConfigRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 可用区名称
    14  	Zone *string `name:"Zone,omitempty"`
    15  }
    16  
    17  func (req *DescribeProductConfigRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeProductConfigResponse, error) {
    18  	resp := &DescribeProductConfigResponse{}
    19  	err := client.Request("postgres", "DescribeProductConfig", "2017-03-12").Do(req, resp)
    20  	return resp, err
    21  }
    22  
    23  type DescribeProductConfigResponse struct {
    24  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    25  	// 售卖规格列表。
    26  	SpecInfoList []*SpecInfo `json:"SpecInfoList"`
    27  }