github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cbs/resize_disk.go (about) 1 package cbs 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 扩容云硬盘 8 // https://cloud.tencent.com/document/api/362/16310 9 10 type ResizeDiskRequest struct { 11 // 云硬盘ID, 通过DescribeDisks接口查询。 12 DiskId string `name:"DiskId"` 13 // 云硬盘扩容后的大小,单位为GB,必须大于当前云硬盘大小。云盘大小取值范围参见云硬盘产品分类的说明。 14 DiskSize int64 `name:"DiskSize"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ResizeDiskRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ResizeDiskResponse, error) { 20 resp := &ResizeDiskResponse{} 21 err := client.Request("cbs", "ResizeDisk", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ResizeDiskResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }