github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/attach_network_interface.go (about) 1 package vpc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 弹性网卡绑定云主机 8 // https://cloud.tencent.com/document/api/215/15819 9 10 type AttachNetworkInterfaceRequest struct { 11 // CVM实例ID。形如:ins-r8hr2upy。 12 InstanceId string `name:"InstanceId"` 13 // 弹性网卡实例ID,例如:eni-m6dyj72l。 14 NetworkInterfaceId string `name:"NetworkInterfaceId"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *AttachNetworkInterfaceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*AttachNetworkInterfaceResponse, error) { 20 resp := &AttachNetworkInterfaceResponse{} 21 err := client.Request("vpc", "AttachNetworkInterface", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type AttachNetworkInterfaceResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }