github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/modify_customer_gateway_attribute.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/17509 9 10 type ModifyCustomerGatewayAttributeRequest struct { 11 // 对端网关ID,例如:cgw-2wqq41m9,可通过DescribeCustomerGateways接口查询对端网关。 12 CustomerGatewayId string `name:"CustomerGatewayId"` 13 // 对端网关名称,可任意命名,但不得超过60个字符。 14 CustomerGatewayName string `name:"CustomerGatewayName"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ModifyCustomerGatewayAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyCustomerGatewayAttributeResponse, error) { 20 resp := &ModifyCustomerGatewayAttributeResponse{} 21 err := client.Request("vpc", "ModifyCustomerGatewayAttribute", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyCustomerGatewayAttributeResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }