github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/delete_customer_gateway.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/17520 9 10 type DeleteCustomerGatewayRequest struct { 11 // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 12 CustomerGatewayId string `name:"CustomerGatewayId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DeleteCustomerGatewayRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteCustomerGatewayResponse, error) { 18 resp := &DeleteCustomerGatewayResponse{} 19 err := client.Request("vpc", "DeleteCustomerGateway", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type DeleteCustomerGatewayResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }