Documentation ¶
Overview ¶
Package ipsecvpn include resources of ucloud ipsecvpn product
See also
- API: https://docs.ucloud.cn/api/ipsecvpn-api/index
- Product: https://www.ucloud.cn/site/product/ipsecvpn.html
for detail.
Index ¶
- type GetVPNGatewayPriceRequest
- type GetVPNGatewayPriceResponse
- type GetVPNGatewayUpgradePriceRequest
- type GetVPNGatewayUpgradePriceResponse
- type IPSecVPNClient
- func (c *IPSecVPNClient) GetVPNGatewayPrice(req *GetVPNGatewayPriceRequest) (*GetVPNGatewayPriceResponse, error)
- func (c *IPSecVPNClient) GetVPNGatewayUpgradePrice(req *GetVPNGatewayUpgradePriceRequest) (*GetVPNGatewayUpgradePriceResponse, error)
- func (c *IPSecVPNClient) NewGetVPNGatewayPriceRequest() *GetVPNGatewayPriceRequest
- func (c *IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest() *GetVPNGatewayUpgradePriceRequest
- type VPNGatewayPriceSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetVPNGatewayPriceRequest ¶
type GetVPNGatewayPriceRequest struct { request.CommonBase // 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费(需开启权限); 默认为获取三种价格 ChargeType *string `required:"false"` // VPN网关规格。枚举值,包括:标准型:Standard,增强型:Enhanced。 Grade *string `required:"true"` // 购买时长, 默认: 1 Quantity *int `required:"false"` }
GetVPNGatewayPriceRequest is request schema for GetVPNGatewayPrice action
type GetVPNGatewayPriceResponse ¶
type GetVPNGatewayPriceResponse struct { response.CommonBase // 获取的VPN网关价格信息列表,每项参数详见 VPNGatewayPriceSet PriceSet []VPNGatewayPriceSet }
GetVPNGatewayPriceResponse is response schema for GetVPNGatewayPrice action
type GetVPNGatewayUpgradePriceRequest ¶
type GetVPNGatewayUpgradePriceRequest struct { request.CommonBase // 更改的VPN网关规格,枚举值为: Standard, 标准型; Enhanced, 增强型。 Grade *string `required:"true"` // VPN网关的资源ID VPNGatewayId *string `required:"true"` }
GetVPNGatewayUpgradePriceRequest is request schema for GetVPNGatewayUpgradePrice action
type GetVPNGatewayUpgradePriceResponse ¶
type GetVPNGatewayUpgradePriceResponse struct { response.CommonBase // 调整规格后的VPN网关价格, 单位为"元", 如需退费此处为负值 Price float64 }
GetVPNGatewayUpgradePriceResponse is response schema for GetVPNGatewayUpgradePrice action
type IPSecVPNClient ¶
IPSecVPNClient is the client of IPSecVPN
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *IPSecVPNClient
NewClient will return a instance of IPSecVPNClient
func (*IPSecVPNClient) GetVPNGatewayPrice ¶
func (c *IPSecVPNClient) GetVPNGatewayPrice(req *GetVPNGatewayPriceRequest) (*GetVPNGatewayPriceResponse, error)
GetVPNGatewayPrice - 获取VPN价格
func (*IPSecVPNClient) GetVPNGatewayUpgradePrice ¶
func (c *IPSecVPNClient) GetVPNGatewayUpgradePrice(req *GetVPNGatewayUpgradePriceRequest) (*GetVPNGatewayUpgradePriceResponse, error)
GetVPNGatewayUpgradePrice - 获取VPN网关规格改动价格
func (*IPSecVPNClient) NewGetVPNGatewayPriceRequest ¶
func (c *IPSecVPNClient) NewGetVPNGatewayPriceRequest() *GetVPNGatewayPriceRequest
NewGetVPNGatewayPriceRequest will create request of GetVPNGatewayPrice action.
func (*IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest ¶
func (c *IPSecVPNClient) NewGetVPNGatewayUpgradePriceRequest() *GetVPNGatewayUpgradePriceRequest
NewGetVPNGatewayUpgradePriceRequest will create request of GetVPNGatewayUpgradePrice action.
type VPNGatewayPriceSet ¶
type VPNGatewayPriceSet struct { // VPN网关付费方式 ChargeType string // VPN网关价格, 单位"元" Price float64 // 资源有效期, 以Unix Timestamp表示 PurchaseValue int }
VPNGatewayPriceSet - VPN网关的价格信息
this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.