github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/download_customer_gateway_configuration.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/17513 9 10 type DownloadCustomerGatewayConfigurationRequest struct { 11 // 对端网关厂商信息对象,可通过DescribeCustomerGatewayVendors获取。 12 CustomerGatewayVendor CustomerGatewayVendor `name:"CustomerGatewayVendor"` 13 // 通道接入设备物理接口名称。 14 InterfaceName string `name:"InterfaceName"` 15 // 区域 16 Region string `name:"Region"` 17 // VPN通道实例ID。形如:vpnx-f49l6u0z。 18 VpnConnectionId string `name:"VpnConnectionId"` 19 // VPN网关实例ID。 20 VpnGatewayId string `name:"VpnGatewayId"` 21 } 22 23 func (req *DownloadCustomerGatewayConfigurationRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DownloadCustomerGatewayConfigurationResponse, error) { 24 resp := &DownloadCustomerGatewayConfigurationResponse{} 25 err := client.Request("vpc", "DownloadCustomerGatewayConfiguration", "2017-03-12").Do(req, resp) 26 return resp, err 27 } 28 29 type DownloadCustomerGatewayConfigurationResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 // XML格式配置信息。 32 CustomerGatewayConfiguration string `json:"CustomerGatewayConfiguration"` 33 }