github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/dcdb/describe_dcdb_renewal_price.go (about) 1 package dcdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 续费实例询价 8 // https://cloud.tencent.com/document/api/557/16138 9 10 type DescribeDcdbRenewalPriceRequest struct { 11 // 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 12 InstanceId string `name:"InstanceId"` 13 // 续费时长,单位:月。不传则默认为1个月。 14 Period *int64 `name:"Period,omitempty"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *DescribeDcdbRenewalPriceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeDcdbRenewalPriceResponse, error) { 20 resp := &DescribeDcdbRenewalPriceResponse{} 21 err := client.Request("dcdb", "DescribeDCDBRenewalPrice", "2018-04-11").Do(req, resp) 22 return resp, err 23 } 24 25 type DescribeDcdbRenewalPriceResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 原价,单位:分 28 OriginalPrice int64 `json:"OriginalPrice"` 29 // 实际价格,单位:分。受折扣等影响,可能和原价不同。 30 Price int64 `json:"Price"` 31 }