github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cis/inquiry_price_create_cis.go (about) 1 package cis 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 创建容器实例询价 8 // https://cloud.tencent.com/document/api/858/17769 9 10 type InquiryPriceCreateCisRequest struct { 11 // CPU,单位:核 12 Cpu float64 `name:"Cpu"` 13 // 内存,单位:Gi 14 Memory float64 `name:"Memory"` 15 // 区域 16 Region string `name:"Region"` 17 // 可用区 18 Zone string `name:"Zone"` 19 } 20 21 func (req *InquiryPriceCreateCisRequest) Invoke(client github_com_morlay_goqcloud.Client) (*InquiryPriceCreateCisResponse, error) { 22 resp := &InquiryPriceCreateCisResponse{} 23 err := client.Request("cis", "InquiryPriceCreateCis", "2018-04-08").Do(req, resp) 24 return resp, err 25 } 26 27 type InquiryPriceCreateCisResponse struct { 28 github_com_morlay_goqcloud.TencentCloudBaseResponse 29 // 价格 30 Price Price `json:"Price"` 31 }