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

     1  package mariadb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询云数据库可售卖地域和可用区信息
     8  // https://cloud.tencent.com/document/api/237/16178
     9  
    10  type DescribeSaleInfoRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  }
    14  
    15  func (req *DescribeSaleInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeSaleInfoResponse, error) {
    16  	resp := &DescribeSaleInfoResponse{}
    17  	err := client.Request("mariadb", "DescribeSaleInfo", "2017-03-12").Do(req, resp)
    18  	return resp, err
    19  }
    20  
    21  type DescribeSaleInfoResponse struct {
    22  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    23  	// 可售卖地域信息列表
    24  	RegionList []*RegionInfo `json:"RegionList"`
    25  }