ipsecvpn

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ipsecvpn include resources of ucloud ipsecvpn product

See also

for detail.

Index

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

type IPSecVPNClient struct {
	*ucloud.Client
}

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

GetVPNGatewayPrice - 获取VPN价格

func (*IPSecVPNClient) GetVPNGatewayUpgradePrice

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL