github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/modify_vpn_gateway_attribute.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/17507
     9  
    10  type ModifyVpnGatewayAttributeRequest struct {
    11  	// VPN网关计费模式,目前只支持预付费(即包年包月)到后付费(即按量计费)的转换。即参数只支持:POSTPAID_BY_HOUR。
    12  	InstanceChargeType *string `name:"InstanceChargeType,omitempty"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// VPN网关实例ID。
    16  	VpnGatewayId string `name:"VpnGatewayId"`
    17  	// VPN网关名称,最大长度不能超过60个字节。
    18  	VpnGatewayName *string `name:"VpnGatewayName,omitempty"`
    19  }
    20  
    21  func (req *ModifyVpnGatewayAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyVpnGatewayAttributeResponse, error) {
    22  	resp := &ModifyVpnGatewayAttributeResponse{}
    23  	err := client.Request("vpc", "ModifyVpnGatewayAttribute", "2017-03-12").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type ModifyVpnGatewayAttributeResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  }