github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/inquiry_price_upgrade_db_instance.go (about) 1 package sqlserver 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 查询升级实例价格 8 // https://cloud.tencent.com/document/api/238/19960 9 10 type InquiryPriceUpgradeDbInstanceRequest struct { 11 // 实例ID,形如mssql-njj2mtpl 12 InstanceId string `name:"InstanceId"` 13 // 实例升级后的内存大小,单位GB,其值不能比当前实例内存小 14 Memory int64 `name:"Memory"` 15 // 区域 16 Region string `name:"Region"` 17 // 实例升级后的磁盘大小,单位GB,其值不能比当前实例磁盘小 18 Storage int64 `name:"Storage"` 19 } 20 21 func (req *InquiryPriceUpgradeDbInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*InquiryPriceUpgradeDbInstanceResponse, error) { 22 resp := &InquiryPriceUpgradeDbInstanceResponse{} 23 err := client.Request("sqlserver", "InquiryPriceUpgradeDBInstance", "2018-03-28").Do(req, resp) 24 return resp, err 25 } 26 27 type InquiryPriceUpgradeDbInstanceResponse struct { 28 github_com_morlay_goqcloud.TencentCloudBaseResponse 29 // 未打折的原价,其值除以100表示最终的价格。比如10094表示100.94元 30 OriginalPrice int64 `json:"OriginalPrice"` 31 // 实际需要支付价格,其值除以100表示最终的价格。比如10094表示100.94元 32 Price int64 `json:"Price"` 33 }