github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cbs/detach_disks.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/16316 9 10 type DetachDisksRequest struct { 11 // 将要解挂的云硬盘ID, 通过DescribeDisks接口查询,单次请求最多可解挂10块弹性云盘。 12 DiskIds []*string `name:"DiskIds"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DetachDisksRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DetachDisksResponse, error) { 18 resp := &DetachDisksResponse{} 19 err := client.Request("cbs", "DetachDisks", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type DetachDisksResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }