github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/delete_vpn_gateway.go (about) 1 package vpc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 删除VPN网关 8 // https://cloud.tencent.com/document/api/215/17518 9 10 type DeleteVpnGatewayRequest struct { 11 // 区域 12 Region string `name:"Region"` 13 // VPN网关实例ID。 14 VpnGatewayId string `name:"VpnGatewayId"` 15 } 16 17 func (req *DeleteVpnGatewayRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteVpnGatewayResponse, error) { 18 resp := &DeleteVpnGatewayResponse{} 19 err := client.Request("vpc", "DeleteVpnGateway", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type DeleteVpnGatewayResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }