github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/detach_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/15816
     9  
    10  type DetachNetworkInterfaceRequest 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 *DetachNetworkInterfaceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DetachNetworkInterfaceResponse, error) {
    20  	resp := &DetachNetworkInterfaceResponse{}
    21  	err := client.Request("vpc", "DetachNetworkInterface", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DetachNetworkInterfaceResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }