model

package
v0.1.65 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityZones

type AvailabilityZones struct {
	Basic *VpnGatewayAvailabilityZones `json:"basic,omitempty"`

	Professional1 *VpnGatewayAvailabilityZones `json:"professional1,omitempty"`

	Professional2 *VpnGatewayAvailabilityZones `json:"professional2,omitempty"`

	Gm *VpnGatewayAvailabilityZones `json:"gm,omitempty"`
}

AvailabilityZones 可用区情况

func (AvailabilityZones) String

func (o AvailabilityZones) String() string

type CaCertificate

type CaCertificate struct {

	// 证书序列号
	SerialNumber *string `json:"serial_number,omitempty"`

	// 签名算法
	SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`

	// 证书颁发者
	Issuer *string `json:"issuer,omitempty"`

	// 证书主题
	Subject *string `json:"subject,omitempty"`

	// 证书过期时间
	ExpireTime *sdktime.SdkTime `json:"expire_time,omitempty"`

	// 是否能更新内容
	IsUpdatable *bool `json:"is_updatable,omitempty"`
}

CaCertificate 对端网关CA证书信息

func (CaCertificate) String

func (o CaCertificate) String() string

type CaCertificateRequest

type CaCertificateRequest struct {

	// 对端网关CA证书内容
	Content *string `json:"content,omitempty"`
}

CaCertificateRequest 对端网关CA证书

func (CaCertificateRequest) String

func (o CaCertificateRequest) String() string

type ConnectionMonitorInfo

type ConnectionMonitorInfo struct {

	// VPN连接监控ID
	Id *string `json:"id,omitempty"`

	Status *string `json:"status,omitempty"`

	// VPN连接监控对应的VPN连接ID
	VpnConnectionId *string `json:"vpn_connection_id,omitempty"`

	// 网关连通性,取值范围:gateway
	Type *string `json:"type,omitempty"`

	// VPN连接监控的源地址
	SourceIp *string `json:"source_ip,omitempty"`

	// VPN连接监控的目的地址
	DestinationIp *string `json:"destination_ip,omitempty"`

	// 预留字段,nqa使用的协议类型,目前使用默认值ICMP
	ProtoType *string `json:"proto_type,omitempty"`
}

func (ConnectionMonitorInfo) String

func (o ConnectionMonitorInfo) String() string

type CreateCgwRequest

type CreateCgwRequest struct {
	Body *CreateCgwRequestBody `json:"body,omitempty"`
}

CreateCgwRequest Request Object

func (CreateCgwRequest) String

func (o CreateCgwRequest) String() string

type CreateCgwRequestBody

type CreateCgwRequestBody struct {
	CustomerGateway *CreateCgwRequestBodyContent `json:"customer_gateway"`
}

func (CreateCgwRequestBody) String

func (o CreateCgwRequestBody) String() string

type CreateCgwRequestBodyContent

type CreateCgwRequestBodyContent struct {

	// 网关名称
	Name *string `json:"name,omitempty"`

	// 网关路由模式
	RouteMode *CreateCgwRequestBodyContentRouteMode `json:"route_mode,omitempty"`

	// 网关的bgp asn号,仅当route_mode为bgp时需要,默认值为65000
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// 网关ip地址
	Ip string `json:"ip"`

	CaCertificate *CaCertificateRequest `json:"ca_certificate,omitempty"`
}

func (CreateCgwRequestBodyContent) String

type CreateCgwRequestBodyContentRouteMode

type CreateCgwRequestBodyContentRouteMode struct {
	// contains filtered or unexported fields
}

func (CreateCgwRequestBodyContentRouteMode) MarshalJSON

func (c CreateCgwRequestBodyContentRouteMode) MarshalJSON() ([]byte, error)

func (*CreateCgwRequestBodyContentRouteMode) UnmarshalJSON

func (c *CreateCgwRequestBodyContentRouteMode) UnmarshalJSON(b []byte) error

func (CreateCgwRequestBodyContentRouteMode) Value

type CreateCgwRequestBodyContentRouteModeEnum

type CreateCgwRequestBodyContentRouteModeEnum struct {
	STATIC CreateCgwRequestBodyContentRouteMode
	BGP    CreateCgwRequestBodyContentRouteMode
}

func GetCreateCgwRequestBodyContentRouteModeEnum

func GetCreateCgwRequestBodyContentRouteModeEnum() CreateCgwRequestBodyContentRouteModeEnum

type CreateCgwResponse

type CreateCgwResponse struct {
	CustomerGateway *ResponseCustomerGateway `json:"customer_gateway,omitempty"`

	// 请求id
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateCgwResponse Response Object

func (CreateCgwResponse) String

func (o CreateCgwResponse) String() string

type CreateConnectionMonitorInfo

type CreateConnectionMonitorInfo struct {

	// VPN连接监控ID
	Id *string `json:"id,omitempty"`

	// VPN连接监控对应的VPN连接ID
	VpnConnectionId *string `json:"vpn_connection_id,omitempty"`

	// 网关连通性,取值范围:gateway
	Type *string `json:"type,omitempty"`

	// VPN连接监控的源地址
	SourceIp *string `json:"source_ip,omitempty"`

	// VPN连接监控的目的地址
	DestinationIp *string `json:"destination_ip,omitempty"`

	// 预留字段,nqa使用的协议类型,目前使用默认值ICMP
	ProtoType *string `json:"proto_type,omitempty"`
}

func (CreateConnectionMonitorInfo) String

type CreateConnectionMonitorRequest

type CreateConnectionMonitorRequest struct {
	Body *CreateConnectionMonitorRequestBody `json:"body,omitempty"`
}

CreateConnectionMonitorRequest Request Object

func (CreateConnectionMonitorRequest) String

type CreateConnectionMonitorRequestBody

type CreateConnectionMonitorRequestBody struct {
	ConnectionMonitor *CreateConnectionMonitorRequestBodyContent `json:"connection_monitor"`
}

func (CreateConnectionMonitorRequestBody) String

type CreateConnectionMonitorRequestBodyContent

type CreateConnectionMonitorRequestBodyContent struct {

	// VPN连接监控对应的VPN连接ID
	VpnConnectionId string `json:"vpn_connection_id"`
}

CreateConnectionMonitorRequestBodyContent 创建连接监控请求体

func (CreateConnectionMonitorRequestBodyContent) String

type CreateConnectionMonitorResponse

type CreateConnectionMonitorResponse struct {
	ConnectionMonitor *CreateConnectionMonitorInfo `json:"connection_monitor,omitempty"`

	// 请求id
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateConnectionMonitorResponse Response Object

func (CreateConnectionMonitorResponse) String

type CreateRequestEip

type CreateRequestEip struct {

	// 功能说明:公网IP的唯一标识
	Id *string `json:"id,omitempty"`

	// 功能说明:EIP的类型  取值范围:5_bgp(全动态BGP),5_sbgp(静态BGP)  华南-广州:5_bgp、5_sbgp  华东-上海一:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp  中国-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  拉美-圣地亚哥:5_bgp  拉美-圣保罗一:5_bgp  拉美-墨西哥城一:5_bgp  拉美-布宜诺斯艾利一:5_bgp  拉美-利马一:5_bgp  拉美-圣地亚哥二: 5_bgp 约束:必须是系统具体支持的类型。
	Type *string `json:"type,omitempty"`

	// 功能说明:按流量计费还是按带宽计费  取值范围:bandwidth,traffic
	ChargeMode *CreateRequestEipChargeMode `json:"charge_mode,omitempty"`

	// 带宽大小Mbit/s。flavor为Basic时,取值不能大于100;flavor为Professional1时,取值不能大于300;flavor为Professional2时,取值不能大于1024
	BandwidthSize *int32 `json:"bandwidth_size,omitempty"`

	// 带宽名称
	BandwidthName *string `json:"bandwidth_name,omitempty"`
}

func (CreateRequestEip) String

func (o CreateRequestEip) String() string

type CreateRequestEipChargeMode

type CreateRequestEipChargeMode struct {
	// contains filtered or unexported fields
}

func (CreateRequestEipChargeMode) MarshalJSON

func (c CreateRequestEipChargeMode) MarshalJSON() ([]byte, error)

func (*CreateRequestEipChargeMode) UnmarshalJSON

func (c *CreateRequestEipChargeMode) UnmarshalJSON(b []byte) error

func (CreateRequestEipChargeMode) Value

type CreateRequestEipChargeModeEnum

type CreateRequestEipChargeModeEnum struct {
	BANDWIDTH CreateRequestEipChargeMode
	TRAFFIC   CreateRequestEipChargeMode
}

func GetCreateRequestEipChargeModeEnum

func GetCreateRequestEipChargeModeEnum() CreateRequestEipChargeModeEnum

type CreateResponseVpnConnection

type CreateResponseVpnConnection struct {

	// VPN连接ID
	Id *string `json:"id,omitempty"`

	// VPN连接名称
	Name *string `json:"name,omitempty"`

	// VPN网关ID
	VgwId *string `json:"vgw_id,omitempty"`

	// VGW IP
	VgwIp *string `json:"vgw_ip,omitempty"`

	// 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式
	Style *CreateResponseVpnConnectionStyle `json:"style,omitempty"`

	// 对端网关ID
	CgwId *string `json:"cgw_id,omitempty"`

	// 对端网段
	PeerSubnets *[]string `json:"peer_subnets,omitempty"`

	// 本端隧道口地址
	TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"`

	// 对端隧道口地址
	TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"`

	// 开启NQA检测
	EnableNqa *bool `json:"enable_nqa,omitempty"`

	// 策略模式的策略规则组
	PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"`

	Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"`

	Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 连接监控ID
	ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"`

	// 连接的HA角色
	HaRole *string `json:"ha_role,omitempty"`
}

func (CreateResponseVpnConnection) String

type CreateResponseVpnConnectionStyle

type CreateResponseVpnConnectionStyle struct {
	// contains filtered or unexported fields
}

func (CreateResponseVpnConnectionStyle) MarshalJSON

func (c CreateResponseVpnConnectionStyle) MarshalJSON() ([]byte, error)

func (*CreateResponseVpnConnectionStyle) UnmarshalJSON

func (c *CreateResponseVpnConnectionStyle) UnmarshalJSON(b []byte) error

func (CreateResponseVpnConnectionStyle) Value

type CreateResponseVpnGateway

type CreateResponseVpnGateway struct {

	// VPN网关ID
	Id *string `json:"id,omitempty"`

	// VPN网关名称
	Name *string `json:"name,omitempty"`

	// 关联模式
	AttachmentType *CreateResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"`

	// VPN网关所连接的ER实例的ID
	ErId *string `json:"er_id,omitempty"`

	// VPN网关所连接的VPC的ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 本端子网
	LocalSubnets *[]string `json:"local_subnets,omitempty"`

	// VPN网关所使用的VPC子网ID
	ConnectSubnet *string `json:"connect_subnet,omitempty"`

	// VPN网关北向类型,默认为公网(public)
	NetworkType *CreateResponseVpnGatewayNetworkType `json:"network_type,omitempty"`

	// VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值
	AccessVpcId *string `json:"access_vpc_id,omitempty"`

	// VPN网关北向接入VPC中的接入子网ID
	AccessSubnetId *string `json:"access_subnet_id,omitempty"`

	// bgp所使用的asn号
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// VPN网关的规格类型
	Flavor *string `json:"flavor,omitempty"`

	// 最大可创建的VPN连接数
	ConnectionNumber *int32 `json:"connection_number,omitempty"`

	// 当前已经使用的VPN连接数
	UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"`

	// 当前已经使用的VPN连接组个数
	UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (CreateResponseVpnGateway) String

func (o CreateResponseVpnGateway) String() string

type CreateResponseVpnGatewayAttachmentType

type CreateResponseVpnGatewayAttachmentType struct {
	// contains filtered or unexported fields
}

func (CreateResponseVpnGatewayAttachmentType) MarshalJSON

func (c CreateResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)

func (*CreateResponseVpnGatewayAttachmentType) UnmarshalJSON

func (c *CreateResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error

func (CreateResponseVpnGatewayAttachmentType) Value

type CreateResponseVpnGatewayNetworkType

type CreateResponseVpnGatewayNetworkType struct {
	// contains filtered or unexported fields
}

func (CreateResponseVpnGatewayNetworkType) MarshalJSON

func (c CreateResponseVpnGatewayNetworkType) MarshalJSON() ([]byte, error)

func (*CreateResponseVpnGatewayNetworkType) UnmarshalJSON

func (c *CreateResponseVpnGatewayNetworkType) UnmarshalJSON(b []byte) error

func (CreateResponseVpnGatewayNetworkType) Value

type CreateResponseVpnGatewayNetworkTypeEnum

type CreateResponseVpnGatewayNetworkTypeEnum struct {
	PUBLIC  CreateResponseVpnGatewayNetworkType
	PRIVATE CreateResponseVpnGatewayNetworkType
}

func GetCreateResponseVpnGatewayNetworkTypeEnum

func GetCreateResponseVpnGatewayNetworkTypeEnum() CreateResponseVpnGatewayNetworkTypeEnum

type CreateVgwCertificateRequest

type CreateVgwCertificateRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`

	Body *VpnGatewayCertificateRequestBody `json:"body,omitempty"`
}

CreateVgwCertificateRequest Request Object

func (CreateVgwCertificateRequest) String

type CreateVgwCertificateResponse

type CreateVgwCertificateResponse struct {
	Certificate *VpnGatewayCertificateConfig `json:"certificate,omitempty"`

	// 请求id
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateVgwCertificateResponse Response Object

func (CreateVgwCertificateResponse) String

type CreateVgwRequest

type CreateVgwRequest struct {
	Body *CreateVgwRequestBody `json:"body,omitempty"`
}

CreateVgwRequest Request Object

func (CreateVgwRequest) String

func (o CreateVgwRequest) String() string

type CreateVgwRequestBody

type CreateVgwRequestBody struct {
	VpnGateway *CreateVgwRequestBodyContent `json:"vpn_gateway"`
}

func (CreateVgwRequestBody) String

func (o CreateVgwRequestBody) String() string

type CreateVgwRequestBodyContent

type CreateVgwRequestBodyContent struct {

	// VPN网关名称
	Name *string `json:"name,omitempty"`

	// 关联模式
	AttachmentType *CreateVgwRequestBodyContentAttachmentType `json:"attachment_type,omitempty"`

	// VPN网关所连接的ER实例的ID,当attachment_type配置为\"er\"时必填,否则不填
	ErId *string `json:"er_id,omitempty"`

	// VPN网关所连接的VPC的ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 本端子网,当attachment_type配置为\"vpc\"时必填,否则不填
	LocalSubnets *[]string `json:"local_subnets,omitempty"`

	// VPN网关所使用的VPC子网ID
	ConnectSubnet *string `json:"connect_subnet,omitempty"`

	// bgp所使用的asn号
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// VPN网关的规格类型,当attachment_type为er时不能填写Basic
	Flavor *CreateVgwRequestBodyContentFlavor `json:"flavor,omitempty"`

	// 不填写则采用默认可用区。如果需要指定可用区可以调用查询VPN网关可用区接口来选择
	AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	MasterEip *CreateRequestEip `json:"master_eip,omitempty"`

	SlaveEip *CreateRequestEip `json:"slave_eip,omitempty"`

	Eip1 *CreateRequestEip `json:"eip1,omitempty"`

	Eip2 *CreateRequestEip `json:"eip2,omitempty"`

	// VPN网关北向类型,默认为公网(public)
	NetworkType *CreateVgwRequestBodyContentNetworkType `json:"network_type,omitempty"`

	// VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值
	AccessVpcId *string `json:"access_vpc_id,omitempty"`

	// VPN网关北向接入VPC中的接入子网ID,在填写了access_vpc_id时必填
	AccessSubnetId *string `json:"access_subnet_id,omitempty"`

	// ha模式
	HaMode *CreateVgwRequestBodyContentHaMode `json:"ha_mode,omitempty"`
}

func (CreateVgwRequestBodyContent) String

type CreateVgwRequestBodyContentAttachmentType

type CreateVgwRequestBodyContentAttachmentType struct {
	// contains filtered or unexported fields
}

func (CreateVgwRequestBodyContentAttachmentType) MarshalJSON

func (*CreateVgwRequestBodyContentAttachmentType) UnmarshalJSON

func (CreateVgwRequestBodyContentAttachmentType) Value

type CreateVgwRequestBodyContentFlavor

type CreateVgwRequestBodyContentFlavor struct {
	// contains filtered or unexported fields
}

func (CreateVgwRequestBodyContentFlavor) MarshalJSON

func (c CreateVgwRequestBodyContentFlavor) MarshalJSON() ([]byte, error)

func (*CreateVgwRequestBodyContentFlavor) UnmarshalJSON

func (c *CreateVgwRequestBodyContentFlavor) UnmarshalJSON(b []byte) error

func (CreateVgwRequestBodyContentFlavor) Value

type CreateVgwRequestBodyContentFlavorEnum

type CreateVgwRequestBodyContentFlavorEnum struct {
	BASIC         CreateVgwRequestBodyContentFlavor
	PROFESSIONAL1 CreateVgwRequestBodyContentFlavor
	PROFESSIONAL2 CreateVgwRequestBodyContentFlavor
}

func GetCreateVgwRequestBodyContentFlavorEnum

func GetCreateVgwRequestBodyContentFlavorEnum() CreateVgwRequestBodyContentFlavorEnum

type CreateVgwRequestBodyContentHaMode

type CreateVgwRequestBodyContentHaMode struct {
	// contains filtered or unexported fields
}

func (CreateVgwRequestBodyContentHaMode) MarshalJSON

func (c CreateVgwRequestBodyContentHaMode) MarshalJSON() ([]byte, error)

func (*CreateVgwRequestBodyContentHaMode) UnmarshalJSON

func (c *CreateVgwRequestBodyContentHaMode) UnmarshalJSON(b []byte) error

func (CreateVgwRequestBodyContentHaMode) Value

type CreateVgwRequestBodyContentHaModeEnum

type CreateVgwRequestBodyContentHaModeEnum struct {
	ACTIVE_ACTIVE  CreateVgwRequestBodyContentHaMode
	ACTIVE_STANDBY CreateVgwRequestBodyContentHaMode
}

func GetCreateVgwRequestBodyContentHaModeEnum

func GetCreateVgwRequestBodyContentHaModeEnum() CreateVgwRequestBodyContentHaModeEnum

type CreateVgwRequestBodyContentNetworkType

type CreateVgwRequestBodyContentNetworkType struct {
	// contains filtered or unexported fields
}

func (CreateVgwRequestBodyContentNetworkType) MarshalJSON

func (c CreateVgwRequestBodyContentNetworkType) MarshalJSON() ([]byte, error)

func (*CreateVgwRequestBodyContentNetworkType) UnmarshalJSON

func (c *CreateVgwRequestBodyContentNetworkType) UnmarshalJSON(b []byte) error

func (CreateVgwRequestBodyContentNetworkType) Value

type CreateVgwRequestBodyContentNetworkTypeEnum

type CreateVgwRequestBodyContentNetworkTypeEnum struct {
	PUBLIC  CreateVgwRequestBodyContentNetworkType
	PRIVATE CreateVgwRequestBodyContentNetworkType
}

func GetCreateVgwRequestBodyContentNetworkTypeEnum

func GetCreateVgwRequestBodyContentNetworkTypeEnum() CreateVgwRequestBodyContentNetworkTypeEnum

type CreateVgwResponse

type CreateVgwResponse struct {
	VpnGateway *CreateResponseVpnGateway `json:"vpn_gateway,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateVgwResponse Response Object

func (CreateVgwResponse) String

func (o CreateVgwResponse) String() string

type CreateVpnConnectionRequest

type CreateVpnConnectionRequest struct {
	Body *CreateVpnConnectionRequestBody `json:"body,omitempty"`
}

CreateVpnConnectionRequest Request Object

func (CreateVpnConnectionRequest) String

type CreateVpnConnectionRequestBody

type CreateVpnConnectionRequestBody struct {
	VpnConnection *CreateVpnConnectionRequestBodyContent `json:"vpn_connection"`
}

func (CreateVpnConnectionRequestBody) String

type CreateVpnConnectionRequestBodyContent

type CreateVpnConnectionRequestBodyContent struct {

	// VPN连接名称
	Name *string `json:"name,omitempty"`

	// VPN网关ID
	VgwId string `json:"vgw_id"`

	// VGW IP
	VgwIp string `json:"vgw_ip"`

	// 连接模式 允许范围[policy, static, bgp] policy: 策略模式 static: 静态路由模式 bgp: bgp路由模式
	Style *CreateVpnConnectionRequestBodyContentStyle `json:"style,omitempty"`

	// 对端网关ID
	CgwId string `json:"cgw_id"`

	// 对端子网
	PeerSubnets *[]string `json:"peer_subnets,omitempty"`

	// 本端隧道口地址
	TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"`

	// 对端隧道口地址
	TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"`

	// 开启NQA检测
	EnableNqa *bool `json:"enable_nqa,omitempty"`

	// 预共享密钥,只能包含大写字母、小写字母、数字和特殊字符(~!@#$%^()-_+={ },./:;)且至少包含四种字符的三种
	Psk *string `json:"psk,omitempty"`

	// 策略模式的策略规则组
	PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"`

	Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"`

	Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"`

	// 连接的HA角色
	HaRole *CreateVpnConnectionRequestBodyContentHaRole `json:"ha_role,omitempty"`
}

func (CreateVpnConnectionRequestBodyContent) String

type CreateVpnConnectionRequestBodyContentHaRole

type CreateVpnConnectionRequestBodyContentHaRole struct {
	// contains filtered or unexported fields
}

func (CreateVpnConnectionRequestBodyContentHaRole) MarshalJSON

func (*CreateVpnConnectionRequestBodyContentHaRole) UnmarshalJSON

func (CreateVpnConnectionRequestBodyContentHaRole) Value

type CreateVpnConnectionRequestBodyContentStyle

type CreateVpnConnectionRequestBodyContentStyle struct {
	// contains filtered or unexported fields
}

func (CreateVpnConnectionRequestBodyContentStyle) MarshalJSON

func (*CreateVpnConnectionRequestBodyContentStyle) UnmarshalJSON

func (CreateVpnConnectionRequestBodyContentStyle) Value

type CreateVpnConnectionResponse

type CreateVpnConnectionResponse struct {
	VpnConnection *CreateResponseVpnConnection `json:"vpn_connection,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

CreateVpnConnectionResponse Response Object

func (CreateVpnConnectionResponse) String

type DeleteCgwRequest

type DeleteCgwRequest struct {

	// 对端网关ID
	CustomerGatewayId string `json:"customer_gateway_id"`
}

DeleteCgwRequest Request Object

func (DeleteCgwRequest) String

func (o DeleteCgwRequest) String() string

type DeleteCgwResponse

type DeleteCgwResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteCgwResponse Response Object

func (DeleteCgwResponse) String

func (o DeleteCgwResponse) String() string

type DeleteConnectionMonitorRequest

type DeleteConnectionMonitorRequest struct {

	// VPN连接监控的ID
	ConnectionMonitorId string `json:"connection_monitor_id"`
}

DeleteConnectionMonitorRequest Request Object

func (DeleteConnectionMonitorRequest) String

type DeleteConnectionMonitorResponse

type DeleteConnectionMonitorResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteConnectionMonitorResponse Response Object

func (DeleteConnectionMonitorResponse) String

type DeleteVgwRequest

type DeleteVgwRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`
}

DeleteVgwRequest Request Object

func (DeleteVgwRequest) String

func (o DeleteVgwRequest) String() string

type DeleteVgwResponse

type DeleteVgwResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteVgwResponse Response Object

func (DeleteVgwResponse) String

func (o DeleteVgwResponse) String() string

type DeleteVpnConnectionRequest

type DeleteVpnConnectionRequest struct {

	// vpn连接ID
	VpnConnectionId string `json:"vpn_connection_id"`
}

DeleteVpnConnectionRequest Request Object

func (DeleteVpnConnectionRequest) String

type DeleteVpnConnectionResponse

type DeleteVpnConnectionResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteVpnConnectionResponse Response Object

func (DeleteVpnConnectionResponse) String

type Dpd

type Dpd struct {

	// DPD检测间隔时长
	Interval *int32 `json:"interval,omitempty"`

	// DPD检测间隔超时时间
	Timeout *int32 `json:"timeout,omitempty"`

	// DPD检测报文格式
	Msg *DpdMsg `json:"msg,omitempty"`
}

func (Dpd) String

func (o Dpd) String() string

type DpdMsg

type DpdMsg struct {
	// contains filtered or unexported fields
}

func (DpdMsg) MarshalJSON

func (c DpdMsg) MarshalJSON() ([]byte, error)

func (*DpdMsg) UnmarshalJSON

func (c *DpdMsg) UnmarshalJSON(b []byte) error

func (DpdMsg) Value

func (c DpdMsg) Value() string

type DpdMsgEnum

type DpdMsgEnum struct {
	SEQ_HASH_NOTIFY DpdMsg
	SEQ_NOTIFY_HASH DpdMsg
}

func GetDpdMsgEnum

func GetDpdMsgEnum() DpdMsgEnum

type IkePolicy

type IkePolicy struct {

	// IKE协商版本
	IkeVersion *IkePolicyIkeVersion `json:"ike_version,omitempty"`

	// 协商模式,ike版本为v1时生效
	Phase1NegotiationMode *IkePolicyPhase1NegotiationMode `json:"phase1_negotiation_mode,omitempty"`

	// 认证算法,SHA1和MD5安全性较低,请慎用
	AuthenticationAlgorithm *IkePolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法,3DES安全性较低,请慎用
	EncryptionAlgorithm *IkePolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// DH密钥组
	DhGroup *string `json:"dh_group,omitempty"`

	// ike协商时的认证方法
	AuthenticationMethod *IkePolicyAuthenticationMethod `json:"authentication_method,omitempty"`

	// 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新
	LifetimeSeconds *int32 `json:"lifetime_seconds,omitempty"`

	// 本端ID类型
	LocalIdType *IkePolicyLocalIdType `json:"local_id_type,omitempty"`

	// 本端ID
	LocalId *string `json:"local_id,omitempty"`

	// 对端ID类型
	PeerIdType *IkePolicyPeerIdType `json:"peer_id_type,omitempty"`

	// 对端ID
	PeerId *string `json:"peer_id,omitempty"`

	Dpd *Dpd `json:"dpd,omitempty"`
}

func (IkePolicy) String

func (o IkePolicy) String() string

type IkePolicyAuthenticationAlgorithm

type IkePolicyAuthenticationAlgorithm struct {
	// contains filtered or unexported fields
}

func (IkePolicyAuthenticationAlgorithm) MarshalJSON

func (c IkePolicyAuthenticationAlgorithm) MarshalJSON() ([]byte, error)

func (*IkePolicyAuthenticationAlgorithm) UnmarshalJSON

func (c *IkePolicyAuthenticationAlgorithm) UnmarshalJSON(b []byte) error

func (IkePolicyAuthenticationAlgorithm) Value

type IkePolicyAuthenticationMethod

type IkePolicyAuthenticationMethod struct {
	// contains filtered or unexported fields
}

func (IkePolicyAuthenticationMethod) MarshalJSON

func (c IkePolicyAuthenticationMethod) MarshalJSON() ([]byte, error)

func (*IkePolicyAuthenticationMethod) UnmarshalJSON

func (c *IkePolicyAuthenticationMethod) UnmarshalJSON(b []byte) error

func (IkePolicyAuthenticationMethod) Value

type IkePolicyAuthenticationMethodEnum

type IkePolicyAuthenticationMethodEnum struct {
	PRE_SHARE           IkePolicyAuthenticationMethod
	DIGITAL_ENVELOPE_V2 IkePolicyAuthenticationMethod
}

func GetIkePolicyAuthenticationMethodEnum

func GetIkePolicyAuthenticationMethodEnum() IkePolicyAuthenticationMethodEnum

type IkePolicyEncryptionAlgorithm

type IkePolicyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (IkePolicyEncryptionAlgorithm) MarshalJSON

func (c IkePolicyEncryptionAlgorithm) MarshalJSON() ([]byte, error)

func (*IkePolicyEncryptionAlgorithm) UnmarshalJSON

func (c *IkePolicyEncryptionAlgorithm) UnmarshalJSON(b []byte) error

func (IkePolicyEncryptionAlgorithm) Value

type IkePolicyIkeVersion

type IkePolicyIkeVersion struct {
	// contains filtered or unexported fields
}

func (IkePolicyIkeVersion) MarshalJSON

func (c IkePolicyIkeVersion) MarshalJSON() ([]byte, error)

func (*IkePolicyIkeVersion) UnmarshalJSON

func (c *IkePolicyIkeVersion) UnmarshalJSON(b []byte) error

func (IkePolicyIkeVersion) Value

func (c IkePolicyIkeVersion) Value() string

type IkePolicyIkeVersionEnum

type IkePolicyIkeVersionEnum struct {
	V1 IkePolicyIkeVersion
	V2 IkePolicyIkeVersion
}

func GetIkePolicyIkeVersionEnum

func GetIkePolicyIkeVersionEnum() IkePolicyIkeVersionEnum

type IkePolicyLocalIdType

type IkePolicyLocalIdType struct {
	// contains filtered or unexported fields
}

func (IkePolicyLocalIdType) MarshalJSON

func (c IkePolicyLocalIdType) MarshalJSON() ([]byte, error)

func (*IkePolicyLocalIdType) UnmarshalJSON

func (c *IkePolicyLocalIdType) UnmarshalJSON(b []byte) error

func (IkePolicyLocalIdType) Value

func (c IkePolicyLocalIdType) Value() string

type IkePolicyLocalIdTypeEnum

type IkePolicyLocalIdTypeEnum struct {
	IP   IkePolicyLocalIdType
	FQDN IkePolicyLocalIdType
}

func GetIkePolicyLocalIdTypeEnum

func GetIkePolicyLocalIdTypeEnum() IkePolicyLocalIdTypeEnum

type IkePolicyPeerIdType

type IkePolicyPeerIdType struct {
	// contains filtered or unexported fields
}

func (IkePolicyPeerIdType) MarshalJSON

func (c IkePolicyPeerIdType) MarshalJSON() ([]byte, error)

func (*IkePolicyPeerIdType) UnmarshalJSON

func (c *IkePolicyPeerIdType) UnmarshalJSON(b []byte) error

func (IkePolicyPeerIdType) Value

func (c IkePolicyPeerIdType) Value() string

type IkePolicyPeerIdTypeEnum

type IkePolicyPeerIdTypeEnum struct {
	IP   IkePolicyPeerIdType
	FQDN IkePolicyPeerIdType
}

func GetIkePolicyPeerIdTypeEnum

func GetIkePolicyPeerIdTypeEnum() IkePolicyPeerIdTypeEnum

type IkePolicyPhase1NegotiationMode

type IkePolicyPhase1NegotiationMode struct {
	// contains filtered or unexported fields
}

func (IkePolicyPhase1NegotiationMode) MarshalJSON

func (c IkePolicyPhase1NegotiationMode) MarshalJSON() ([]byte, error)

func (*IkePolicyPhase1NegotiationMode) UnmarshalJSON

func (c *IkePolicyPhase1NegotiationMode) UnmarshalJSON(b []byte) error

func (IkePolicyPhase1NegotiationMode) Value

type IkePolicyPhase1NegotiationModeEnum

type IkePolicyPhase1NegotiationModeEnum struct {
	MAIN       IkePolicyPhase1NegotiationMode
	AGGRESSIVE IkePolicyPhase1NegotiationMode
}

func GetIkePolicyPhase1NegotiationModeEnum

func GetIkePolicyPhase1NegotiationModeEnum() IkePolicyPhase1NegotiationModeEnum

type IpsecPolicy

type IpsecPolicy struct {

	// 认证算法,SHA1和MD5安全性较低,请慎用
	AuthenticationAlgorithm *IpsecPolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法,3DES安全性较低,请慎用
	EncryptionAlgorithm *IpsecPolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// PFS使用的DH密钥组
	Pfs *string `json:"pfs,omitempty"`

	// 传输模式
	TransformProtocol *IpsecPolicyTransformProtocol `json:"transform_protocol,omitempty"`

	// 表示配置IPSec连接建立的隧道以时间为基准的生存周期
	LifetimeSeconds *int32 `json:"lifetime_seconds,omitempty"`

	// 封装模式,当前只有tunnel模式
	EncapsulationMode *IpsecPolicyEncapsulationMode `json:"encapsulation_mode,omitempty"`
}

func (IpsecPolicy) String

func (o IpsecPolicy) String() string

type IpsecPolicyAuthenticationAlgorithm

type IpsecPolicyAuthenticationAlgorithm struct {
	// contains filtered or unexported fields
}

func (IpsecPolicyAuthenticationAlgorithm) MarshalJSON

func (c IpsecPolicyAuthenticationAlgorithm) MarshalJSON() ([]byte, error)

func (*IpsecPolicyAuthenticationAlgorithm) UnmarshalJSON

func (c *IpsecPolicyAuthenticationAlgorithm) UnmarshalJSON(b []byte) error

func (IpsecPolicyAuthenticationAlgorithm) Value

type IpsecPolicyEncapsulationMode

type IpsecPolicyEncapsulationMode struct {
	// contains filtered or unexported fields
}

func (IpsecPolicyEncapsulationMode) MarshalJSON

func (c IpsecPolicyEncapsulationMode) MarshalJSON() ([]byte, error)

func (*IpsecPolicyEncapsulationMode) UnmarshalJSON

func (c *IpsecPolicyEncapsulationMode) UnmarshalJSON(b []byte) error

func (IpsecPolicyEncapsulationMode) Value

type IpsecPolicyEncapsulationModeEnum

type IpsecPolicyEncapsulationModeEnum struct {
	TUNNEL IpsecPolicyEncapsulationMode
}

func GetIpsecPolicyEncapsulationModeEnum

func GetIpsecPolicyEncapsulationModeEnum() IpsecPolicyEncapsulationModeEnum

type IpsecPolicyEncryptionAlgorithm

type IpsecPolicyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (IpsecPolicyEncryptionAlgorithm) MarshalJSON

func (c IpsecPolicyEncryptionAlgorithm) MarshalJSON() ([]byte, error)

func (*IpsecPolicyEncryptionAlgorithm) UnmarshalJSON

func (c *IpsecPolicyEncryptionAlgorithm) UnmarshalJSON(b []byte) error

func (IpsecPolicyEncryptionAlgorithm) Value

type IpsecPolicyTransformProtocol

type IpsecPolicyTransformProtocol struct {
	// contains filtered or unexported fields
}

func (IpsecPolicyTransformProtocol) MarshalJSON

func (c IpsecPolicyTransformProtocol) MarshalJSON() ([]byte, error)

func (*IpsecPolicyTransformProtocol) UnmarshalJSON

func (c *IpsecPolicyTransformProtocol) UnmarshalJSON(b []byte) error

func (IpsecPolicyTransformProtocol) Value

type IpsecPolicyTransformProtocolEnum

type IpsecPolicyTransformProtocolEnum struct {
	ESP IpsecPolicyTransformProtocol
}

func GetIpsecPolicyTransformProtocolEnum

func GetIpsecPolicyTransformProtocolEnum() IpsecPolicyTransformProtocolEnum

type ListAvailabilityZonesRequest

type ListAvailabilityZonesRequest struct {
}

ListAvailabilityZonesRequest Request Object

func (ListAvailabilityZonesRequest) String

type ListAvailabilityZonesResponse

type ListAvailabilityZonesResponse struct {
	AvailabilityZones *AvailabilityZones `json:"availability_zones,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListAvailabilityZonesResponse Response Object

func (ListAvailabilityZonesResponse) String

type ListCgwsRequest

type ListCgwsRequest struct {

	// CustomerGateway ID
	CgwId *string `json:"cgw_id,omitempty"`

	// 分页查询时每页返回的记录数量
	Limit *int32 `json:"limit,omitempty"`

	// 上一页最后一条记录的id,为空时为查询第一页。使用说明:必须与limit一起使用。
	Marker *string `json:"marker,omitempty"`
}

ListCgwsRequest Request Object

func (ListCgwsRequest) String

func (o ListCgwsRequest) String() string

type ListCgwsResponse

type ListCgwsResponse struct {

	// 对端网关信息
	CustomerGateways *[]ResponseCustomerGateway `json:"customer_gateways,omitempty"`

	// 租户下对端网关总数
	TotalCount *int64 `json:"total_count,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListCgwsResponse Response Object

func (ListCgwsResponse) String

func (o ListCgwsResponse) String() string

type ListConnectionMonitorsRequest

type ListConnectionMonitorsRequest struct {

	// VPN连接Id
	VpnConnectionId *string `json:"vpn_connection_id,omitempty"`

	// 企业项目id
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

ListConnectionMonitorsRequest Request Object

func (ListConnectionMonitorsRequest) String

type ListConnectionMonitorsResponse

type ListConnectionMonitorsResponse struct {
	ConnectionMonitors *[]ConnectionMonitorInfo `json:"connection_monitors,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListConnectionMonitorsResponse Response Object

func (ListConnectionMonitorsResponse) String

type ListVgwsRequest

type ListVgwsRequest struct {

	// vgw ID
	VgwId *string `json:"vgw_id,omitempty"`

	// 企业项目id
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

ListVgwsRequest Request Object

func (ListVgwsRequest) String

func (o ListVgwsRequest) String() string

type ListVgwsResponse

type ListVgwsResponse struct {

	// 网关信息
	VpnGateways *[]ResponseVpnGateway `json:"vpn_gateways,omitempty"`

	// 请求ID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListVgwsResponse Response Object

func (ListVgwsResponse) String

func (o ListVgwsResponse) String() string

type ListVpnConnectionsRequest

type ListVpnConnectionsRequest struct {

	// VPN ID
	VpnId *string `json:"vpn_id,omitempty"`

	// Eip ID
	EipId *string `json:"eip_id,omitempty"`

	// VGW IP
	VgwIp *string `json:"vgw_ip,omitempty"`

	// vgw ID
	VgwId *string `json:"vgw_id,omitempty"`

	// 企业项目id
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 分页查询时每页返回的记录数量
	Limit *int32 `json:"limit,omitempty"`

	// 上一页最后一条记录的id,为空时为查询第一页。使用说明:必须与limit一起使用。
	Marker *string `json:"marker,omitempty"`
}

ListVpnConnectionsRequest Request Object

func (ListVpnConnectionsRequest) String

func (o ListVpnConnectionsRequest) String() string

type ListVpnConnectionsResponse

type ListVpnConnectionsResponse struct {
	VpnConnections *[]ResponseVpnConnection `json:"vpn_connections,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 租户下连接总数
	TotalCount *int64 `json:"total_count,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ListVpnConnectionsResponse Response Object

func (ListVpnConnectionsResponse) String

type PageInfo

type PageInfo struct {

	// 下一页的marker,值为上一次消息的最后一个id,为空时为查询第一页
	NextMarker *string `json:"next_marker,omitempty"`

	// 当前列表中资源数量
	CurrentCount *int32 `json:"current_count,omitempty"`
}

PageInfo 分页查询页的信息

func (PageInfo) String

func (o PageInfo) String() string

type PolicyRule

type PolicyRule struct {

	// 规则ID
	RuleIndex *int32 `json:"rule_index,omitempty"`

	// 源地址网段
	Source *string `json:"source,omitempty"`

	// 目的地址网段
	Destination *[]string `json:"destination,omitempty"`
}

func (PolicyRule) String

func (o PolicyRule) String() string

type Quota

type Quota struct {

	// 资源类型
	Type *string `json:"type,omitempty"`

	// 配额上限
	Quota *int32 `json:"quota,omitempty"`

	// 已使用数
	Used *int32 `json:"used,omitempty"`
}

func (Quota) String

func (o Quota) String() string

type Quotas

type Quotas struct {
	Resources *[]Quota `json:"resources,omitempty"`
}

func (Quotas) String

func (o Quotas) String() string

type ResponseCustomerGateway

type ResponseCustomerGateway struct {

	// 网关的ID
	Id *string `json:"id,omitempty"`

	// 网关名称
	Name *string `json:"name,omitempty"`

	// 网关路由模式
	RouteMode *ResponseCustomerGatewayRouteMode `json:"route_mode,omitempty"`

	// 网关的bgp asn号
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// 网关ip地址
	Ip *string `json:"ip,omitempty"`

	CaCertificate *CaCertificate `json:"ca_certificate,omitempty"`

	// 创建时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

func (ResponseCustomerGateway) String

func (o ResponseCustomerGateway) String() string

type ResponseCustomerGatewayRouteMode

type ResponseCustomerGatewayRouteMode struct {
	// contains filtered or unexported fields
}

func (ResponseCustomerGatewayRouteMode) MarshalJSON

func (c ResponseCustomerGatewayRouteMode) MarshalJSON() ([]byte, error)

func (*ResponseCustomerGatewayRouteMode) UnmarshalJSON

func (c *ResponseCustomerGatewayRouteMode) UnmarshalJSON(b []byte) error

func (ResponseCustomerGatewayRouteMode) Value

type ResponseCustomerGatewayRouteModeEnum

type ResponseCustomerGatewayRouteModeEnum struct {
	STATIC ResponseCustomerGatewayRouteMode
	BGP    ResponseCustomerGatewayRouteMode
}

func GetResponseCustomerGatewayRouteModeEnum

func GetResponseCustomerGatewayRouteModeEnum() ResponseCustomerGatewayRouteModeEnum

type ResponseEip

type ResponseEip struct {

	// 功能说明:公网IP的唯一标识
	Id *string `json:"id,omitempty"`

	// 功能说明: 公网IP版本号
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 功能说明:公网IP的订单信息 约束:包周期才会有订单信息,按需资源此字段为空
	IpBillingInfo *string `json:"ip_billing_info,omitempty"`

	// 功能说明:EIP的类型  取值范围:5_bgp(全动态BGP),5_sbgp(静态BGP)  华南-广州:5_bgp、5_sbgp  华东-上海一:5_bgp、5_sbgp  华东-上海二:5_bgp、5_sbgp  华北-北京一:5_bgp、5_sbgp  中国-香港:5_bgp  亚太-曼谷:5_bgp  亚太-新加坡:5_bgp  非洲-约翰内斯堡:5_bgp  西南-贵阳一:5_bgp、5_sbgp  华北-北京四:5_bgp、5_sbgp  拉美-圣地亚哥:5_bgp  拉美-圣保罗一:5_bgp  拉美-墨西哥城一:5_bgp  拉美-布宜诺斯艾利一:5_bgp  拉美-利马一:5_bgp  拉美-圣地亚哥二: 5_bgp 约束:必须是系统具体支持的类型。
	Type *string `json:"type,omitempty"`

	// 功能说明: 公网IPv4地址
	IpAddress *string `json:"ip_address,omitempty"`

	// 功能说明:按流量计费还是按带宽计费  取值范围:  bandwidth:按带宽计费  traffic:按流量计费  95peak_plus:按增强型95计费
	ChargeMode *ResponseEipChargeMode `json:"charge_mode,omitempty"`

	// 功能说明:带宽ID
	BandwidthId *string `json:"bandwidth_id,omitempty"`

	// 带宽大小Mbit/s,flavor为V300时,取值不能大于300,flavor为V1G时,取值不能大于1024
	BandwidthSize *int32 `json:"bandwidth_size,omitempty"`

	// 带宽名称
	BandwidthName *string `json:"bandwidth_name,omitempty"`

	// 带宽订单信息
	BandwidthBillingInfo *string `json:"bandwidth_billing_info,omitempty"`
}

func (ResponseEip) String

func (o ResponseEip) String() string

type ResponseEipChargeMode

type ResponseEipChargeMode struct {
	// contains filtered or unexported fields
}

func (ResponseEipChargeMode) MarshalJSON

func (c ResponseEipChargeMode) MarshalJSON() ([]byte, error)

func (*ResponseEipChargeMode) UnmarshalJSON

func (c *ResponseEipChargeMode) UnmarshalJSON(b []byte) error

func (ResponseEipChargeMode) Value

func (c ResponseEipChargeMode) Value() string

type ResponseEipChargeModeEnum

type ResponseEipChargeModeEnum struct {
	BANDWIDTH     ResponseEipChargeMode
	TRAFFIC       ResponseEipChargeMode
	E_95PEAK_PLUS ResponseEipChargeMode
}

func GetResponseEipChargeModeEnum

func GetResponseEipChargeModeEnum() ResponseEipChargeModeEnum

type ResponseVpnConnection

type ResponseVpnConnection struct {

	// VPN连接ID
	Id *string `json:"id,omitempty"`

	// VPN连接名称
	Name *string `json:"name,omitempty"`

	// VPN连接状态
	Status *string `json:"status,omitempty"`

	// VPN网关ID
	VgwId *string `json:"vgw_id,omitempty"`

	// VGW IP
	VgwIp *string `json:"vgw_ip,omitempty"`

	// 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式
	Style *ResponseVpnConnectionStyle `json:"style,omitempty"`

	// 对端网关ID
	CgwId *string `json:"cgw_id,omitempty"`

	// 对端网段
	PeerSubnets *[]string `json:"peer_subnets,omitempty"`

	// 本端隧道口地址
	TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"`

	// 对端隧道口地址
	TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"`

	// 开启NQA检测
	EnableNqa *bool `json:"enable_nqa,omitempty"`

	// 策略模式的策略规则组
	PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"`

	Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"`

	Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 连接监控ID
	ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"`

	// 连接的HA角色
	HaRole *string `json:"ha_role,omitempty"`
}

func (ResponseVpnConnection) String

func (o ResponseVpnConnection) String() string

type ResponseVpnConnectionStyle

type ResponseVpnConnectionStyle struct {
	// contains filtered or unexported fields
}

func (ResponseVpnConnectionStyle) MarshalJSON

func (c ResponseVpnConnectionStyle) MarshalJSON() ([]byte, error)

func (*ResponseVpnConnectionStyle) UnmarshalJSON

func (c *ResponseVpnConnectionStyle) UnmarshalJSON(b []byte) error

func (ResponseVpnConnectionStyle) Value

type ResponseVpnConnectionStyleEnum

type ResponseVpnConnectionStyleEnum struct {
	POLICY ResponseVpnConnectionStyle
	STATIC ResponseVpnConnectionStyle
	BGP    ResponseVpnConnectionStyle
}

func GetResponseVpnConnectionStyleEnum

func GetResponseVpnConnectionStyleEnum() ResponseVpnConnectionStyleEnum

type ResponseVpnGateway

type ResponseVpnGateway struct {

	// VPN网关ID
	Id *string `json:"id,omitempty"`

	// VPN网关名称
	Name *string `json:"name,omitempty"`

	// VPN网关状态
	Status *string `json:"status,omitempty"`

	// 关联模式
	AttachmentType *ResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"`

	CertificateId *string `json:"certificate_id,omitempty"`

	// VPN网关所连接的ER实例的ID
	ErId *string `json:"er_id,omitempty"`

	// VPN网关所连接的VPC的ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 本端子网
	LocalSubnets *[]string `json:"local_subnets,omitempty"`

	// VPN网关所使用的VPC子网ID
	ConnectSubnet *string `json:"connect_subnet,omitempty"`

	// VPN网关北向类型,默认为公网(public)
	NetworkType *ResponseVpnGatewayNetworkType `json:"network_type,omitempty"`

	// VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值
	AccessVpcId *string `json:"access_vpc_id,omitempty"`

	// VPN网关北向接入VPC中的接入子网ID
	AccessSubnetId *string `json:"access_subnet_id,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值
	AccessPrivateIps *[]string `json:"access_private_ips,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP
	AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP
	AccessPrivateIp2 *string `json:"access_private_ip_2,omitempty"`

	// bgp所使用的asn号
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// VPN网关的规格类型
	Flavor *string `json:"flavor,omitempty"`

	// 可用区列表
	AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"`

	// 最大可创建的VPN连接数
	ConnectionNumber *int32 `json:"connection_number,omitempty"`

	// 当前已经使用的VPN连接数
	UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"`

	// 当前已经使用的VPN连接组个数
	UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// ha模式
	HaMode *string `json:"ha_mode,omitempty"`

	MasterEip *ResponseEip `json:"master_eip,omitempty"`

	SlaveEip *ResponseEip `json:"slave_eip,omitempty"`

	Eip1 *ResponseEip `json:"eip1,omitempty"`

	Eip2 *ResponseEip `json:"eip2,omitempty"`

	// 创建时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

func (ResponseVpnGateway) String

func (o ResponseVpnGateway) String() string

type ResponseVpnGatewayAttachmentType

type ResponseVpnGatewayAttachmentType struct {
	// contains filtered or unexported fields
}

func (ResponseVpnGatewayAttachmentType) MarshalJSON

func (c ResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)

func (*ResponseVpnGatewayAttachmentType) UnmarshalJSON

func (c *ResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error

func (ResponseVpnGatewayAttachmentType) Value

type ResponseVpnGatewayAttachmentTypeEnum

type ResponseVpnGatewayAttachmentTypeEnum struct {
	VPC ResponseVpnGatewayAttachmentType
	ER  ResponseVpnGatewayAttachmentType
}

func GetResponseVpnGatewayAttachmentTypeEnum

func GetResponseVpnGatewayAttachmentTypeEnum() ResponseVpnGatewayAttachmentTypeEnum

type ResponseVpnGatewayNetworkType

type ResponseVpnGatewayNetworkType struct {
	// contains filtered or unexported fields
}

func (ResponseVpnGatewayNetworkType) MarshalJSON

func (c ResponseVpnGatewayNetworkType) MarshalJSON() ([]byte, error)

func (*ResponseVpnGatewayNetworkType) UnmarshalJSON

func (c *ResponseVpnGatewayNetworkType) UnmarshalJSON(b []byte) error

func (ResponseVpnGatewayNetworkType) Value

type ResponseVpnGatewayNetworkTypeEnum

type ResponseVpnGatewayNetworkTypeEnum struct {
	PUBLIC  ResponseVpnGatewayNetworkType
	PRIVATE ResponseVpnGatewayNetworkType
}

func GetResponseVpnGatewayNetworkTypeEnum

func GetResponseVpnGatewayNetworkTypeEnum() ResponseVpnGatewayNetworkTypeEnum

type ShowCgwRequest

type ShowCgwRequest struct {

	// 对端网关ID
	CustomerGatewayId string `json:"customer_gateway_id"`
}

ShowCgwRequest Request Object

func (ShowCgwRequest) String

func (o ShowCgwRequest) String() string

type ShowCgwResponse

type ShowCgwResponse struct {
	CustomerGateway *ResponseCustomerGateway `json:"customer_gateway,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCgwResponse Response Object

func (ShowCgwResponse) String

func (o ShowCgwResponse) String() string

type ShowConnectionMonitorRequest

type ShowConnectionMonitorRequest struct {

	// VPN连接监控的ID
	ConnectionMonitorId string `json:"connection_monitor_id"`
}

ShowConnectionMonitorRequest Request Object

func (ShowConnectionMonitorRequest) String

type ShowConnectionMonitorResponse

type ShowConnectionMonitorResponse struct {
	ConnectionMonitor *ConnectionMonitorInfo `json:"connection_monitor,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowConnectionMonitorResponse Response Object

func (ShowConnectionMonitorResponse) String

type ShowQuotasInfoRequest

type ShowQuotasInfoRequest struct {
}

ShowQuotasInfoRequest Request Object

func (ShowQuotasInfoRequest) String

func (o ShowQuotasInfoRequest) String() string

type ShowQuotasInfoResponse

type ShowQuotasInfoResponse struct {
	Quotas *Quotas `json:"quotas,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowQuotasInfoResponse Response Object

func (ShowQuotasInfoResponse) String

func (o ShowQuotasInfoResponse) String() string

type ShowVgwRequest

type ShowVgwRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`
}

ShowVgwRequest Request Object

func (ShowVgwRequest) String

func (o ShowVgwRequest) String() string

type ShowVgwResponse

type ShowVgwResponse struct {
	VpnGateway *ResponseVpnGateway `json:"vpn_gateway,omitempty"`

	// 请求ID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowVgwResponse Response Object

func (ShowVgwResponse) String

func (o ShowVgwResponse) String() string

type ShowVpnConnectionRequest

type ShowVpnConnectionRequest struct {

	// vpn连接ID
	VpnConnectionId string `json:"vpn_connection_id"`
}

ShowVpnConnectionRequest Request Object

func (ShowVpnConnectionRequest) String

func (o ShowVpnConnectionRequest) String() string

type ShowVpnConnectionResponse

type ShowVpnConnectionResponse struct {
	VpnConnection *ResponseVpnConnection `json:"vpn_connection,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

ShowVpnConnectionResponse Response Object

func (ShowVpnConnectionResponse) String

func (o ShowVpnConnectionResponse) String() string

type ShowVpnGatewayCertificateRequest

type ShowVpnGatewayCertificateRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`
}

ShowVpnGatewayCertificateRequest Request Object

func (ShowVpnGatewayCertificateRequest) String

type ShowVpnGatewayCertificateResponse

type ShowVpnGatewayCertificateResponse struct {
	Certificate *VpnGatewayCertificate `json:"certificate,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowVpnGatewayCertificateResponse Response Object

func (ShowVpnGatewayCertificateResponse) String

type UpdateCgwRequest

type UpdateCgwRequest struct {

	// 对端网关ID
	CustomerGatewayId string `json:"customer_gateway_id"`

	Body *UpdateCgwRequestBody `json:"body,omitempty"`
}

UpdateCgwRequest Request Object

func (UpdateCgwRequest) String

func (o UpdateCgwRequest) String() string

type UpdateCgwRequestBody

type UpdateCgwRequestBody struct {
	CustomerGateway *UpdateCgwRequestBodyContent `json:"customer_gateway"`
}

func (UpdateCgwRequestBody) String

func (o UpdateCgwRequestBody) String() string

type UpdateCgwRequestBodyContent

type UpdateCgwRequestBodyContent struct {

	// 网关名称
	Name *string `json:"name,omitempty"`
}

func (UpdateCgwRequestBodyContent) String

type UpdateCgwResponse

type UpdateCgwResponse struct {
	CustomerGateway *ResponseCustomerGateway `json:"customer_gateway,omitempty"`

	// 请求id
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateCgwResponse Response Object

func (UpdateCgwResponse) String

func (o UpdateCgwResponse) String() string

type UpdateDpd

type UpdateDpd struct {

	// DPD检测间隔时长
	Interval *int32 `json:"interval,omitempty"`

	// DPD检测间隔超时时间
	Timeout *int32 `json:"timeout,omitempty"`

	// DPD检测报文格式
	Msg *UpdateDpdMsg `json:"msg,omitempty"`
}

func (UpdateDpd) String

func (o UpdateDpd) String() string

type UpdateDpdMsg

type UpdateDpdMsg struct {
	// contains filtered or unexported fields
}

func (UpdateDpdMsg) MarshalJSON

func (c UpdateDpdMsg) MarshalJSON() ([]byte, error)

func (*UpdateDpdMsg) UnmarshalJSON

func (c *UpdateDpdMsg) UnmarshalJSON(b []byte) error

func (UpdateDpdMsg) Value

func (c UpdateDpdMsg) Value() string

type UpdateDpdMsgEnum

type UpdateDpdMsgEnum struct {
	SEQ_HASH_NOTIFY UpdateDpdMsg
	SEQ_NOTIFY_HASH UpdateDpdMsg
}

func GetUpdateDpdMsgEnum

func GetUpdateDpdMsgEnum() UpdateDpdMsgEnum

type UpdateIkePolicy

type UpdateIkePolicy struct {

	// IKE协商版本
	IkeVersion *UpdateIkePolicyIkeVersion `json:"ike_version,omitempty"`

	// 协商模式,ike版本为v1时生效
	Phase1NegotiationMode *UpdateIkePolicyPhase1NegotiationMode `json:"phase1_negotiation_mode,omitempty"`

	// 认证算法,SHA1和MD5安全性较低,请慎用
	AuthenticationAlgorithm *UpdateIkePolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法,3DES安全性较低,请慎用
	EncryptionAlgorithm *UpdateIkePolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// DH密钥组
	DhGroup *string `json:"dh_group,omitempty"`

	// 表示SA的生存周期,当该生存周期超时后IKE SA将自动更新
	LifetimeSeconds *int32 `json:"lifetime_seconds,omitempty"`

	// 本端ID类型
	LocalIdType *UpdateIkePolicyLocalIdType `json:"local_id_type,omitempty"`

	// 本端ID
	LocalId *string `json:"local_id,omitempty"`

	// 对端ID类型
	PeerIdType *UpdateIkePolicyPeerIdType `json:"peer_id_type,omitempty"`

	// 对端ID
	PeerId *string `json:"peer_id,omitempty"`

	Dpd *UpdateDpd `json:"dpd,omitempty"`
}

func (UpdateIkePolicy) String

func (o UpdateIkePolicy) String() string

type UpdateIkePolicyAuthenticationAlgorithm

type UpdateIkePolicyAuthenticationAlgorithm struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyAuthenticationAlgorithm) MarshalJSON

func (c UpdateIkePolicyAuthenticationAlgorithm) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyAuthenticationAlgorithm) UnmarshalJSON

func (c *UpdateIkePolicyAuthenticationAlgorithm) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyAuthenticationAlgorithm) Value

type UpdateIkePolicyEncryptionAlgorithm

type UpdateIkePolicyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyEncryptionAlgorithm) MarshalJSON

func (c UpdateIkePolicyEncryptionAlgorithm) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyEncryptionAlgorithm) UnmarshalJSON

func (c *UpdateIkePolicyEncryptionAlgorithm) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyEncryptionAlgorithm) Value

type UpdateIkePolicyIkeVersion

type UpdateIkePolicyIkeVersion struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyIkeVersion) MarshalJSON

func (c UpdateIkePolicyIkeVersion) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyIkeVersion) UnmarshalJSON

func (c *UpdateIkePolicyIkeVersion) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyIkeVersion) Value

type UpdateIkePolicyIkeVersionEnum

type UpdateIkePolicyIkeVersionEnum struct {
	V1 UpdateIkePolicyIkeVersion
	V2 UpdateIkePolicyIkeVersion
}

func GetUpdateIkePolicyIkeVersionEnum

func GetUpdateIkePolicyIkeVersionEnum() UpdateIkePolicyIkeVersionEnum

type UpdateIkePolicyLocalIdType

type UpdateIkePolicyLocalIdType struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyLocalIdType) MarshalJSON

func (c UpdateIkePolicyLocalIdType) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyLocalIdType) UnmarshalJSON

func (c *UpdateIkePolicyLocalIdType) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyLocalIdType) Value

type UpdateIkePolicyLocalIdTypeEnum

type UpdateIkePolicyLocalIdTypeEnum struct {
	IP   UpdateIkePolicyLocalIdType
	FQDN UpdateIkePolicyLocalIdType
}

func GetUpdateIkePolicyLocalIdTypeEnum

func GetUpdateIkePolicyLocalIdTypeEnum() UpdateIkePolicyLocalIdTypeEnum

type UpdateIkePolicyPeerIdType

type UpdateIkePolicyPeerIdType struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyPeerIdType) MarshalJSON

func (c UpdateIkePolicyPeerIdType) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyPeerIdType) UnmarshalJSON

func (c *UpdateIkePolicyPeerIdType) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyPeerIdType) Value

type UpdateIkePolicyPeerIdTypeEnum

type UpdateIkePolicyPeerIdTypeEnum struct {
	IP   UpdateIkePolicyPeerIdType
	FQDN UpdateIkePolicyPeerIdType
}

func GetUpdateIkePolicyPeerIdTypeEnum

func GetUpdateIkePolicyPeerIdTypeEnum() UpdateIkePolicyPeerIdTypeEnum

type UpdateIkePolicyPhase1NegotiationMode

type UpdateIkePolicyPhase1NegotiationMode struct {
	// contains filtered or unexported fields
}

func (UpdateIkePolicyPhase1NegotiationMode) MarshalJSON

func (c UpdateIkePolicyPhase1NegotiationMode) MarshalJSON() ([]byte, error)

func (*UpdateIkePolicyPhase1NegotiationMode) UnmarshalJSON

func (c *UpdateIkePolicyPhase1NegotiationMode) UnmarshalJSON(b []byte) error

func (UpdateIkePolicyPhase1NegotiationMode) Value

type UpdateIkePolicyPhase1NegotiationModeEnum

type UpdateIkePolicyPhase1NegotiationModeEnum struct {
	MAIN       UpdateIkePolicyPhase1NegotiationMode
	AGGRESSIVE UpdateIkePolicyPhase1NegotiationMode
}

func GetUpdateIkePolicyPhase1NegotiationModeEnum

func GetUpdateIkePolicyPhase1NegotiationModeEnum() UpdateIkePolicyPhase1NegotiationModeEnum

type UpdateIpsecPolicy

type UpdateIpsecPolicy struct {

	// 认证算法,SHA1和MD5安全性较低,请慎用
	AuthenticationAlgorithm *UpdateIpsecPolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法,3DES安全性较低,请慎用
	EncryptionAlgorithm *UpdateIpsecPolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

	// PFS使用的DH密钥组
	Pfs *string `json:"pfs,omitempty"`

	// 传输模式
	TransformProtocol *UpdateIpsecPolicyTransformProtocol `json:"transform_protocol,omitempty"`

	// 表示配置IPSec连接建立的隧道以时间为基准的生存周期
	LifetimeSeconds *int32 `json:"lifetime_seconds,omitempty"`

	// 封装模式,当前只有tunnel模式
	EncapsulationMode *UpdateIpsecPolicyEncapsulationMode `json:"encapsulation_mode,omitempty"`
}

func (UpdateIpsecPolicy) String

func (o UpdateIpsecPolicy) String() string

type UpdateIpsecPolicyAuthenticationAlgorithm

type UpdateIpsecPolicyAuthenticationAlgorithm struct {
	// contains filtered or unexported fields
}

func (UpdateIpsecPolicyAuthenticationAlgorithm) MarshalJSON

func (*UpdateIpsecPolicyAuthenticationAlgorithm) UnmarshalJSON

func (c *UpdateIpsecPolicyAuthenticationAlgorithm) UnmarshalJSON(b []byte) error

func (UpdateIpsecPolicyAuthenticationAlgorithm) Value

type UpdateIpsecPolicyEncapsulationMode

type UpdateIpsecPolicyEncapsulationMode struct {
	// contains filtered or unexported fields
}

func (UpdateIpsecPolicyEncapsulationMode) MarshalJSON

func (c UpdateIpsecPolicyEncapsulationMode) MarshalJSON() ([]byte, error)

func (*UpdateIpsecPolicyEncapsulationMode) UnmarshalJSON

func (c *UpdateIpsecPolicyEncapsulationMode) UnmarshalJSON(b []byte) error

func (UpdateIpsecPolicyEncapsulationMode) Value

type UpdateIpsecPolicyEncapsulationModeEnum

type UpdateIpsecPolicyEncapsulationModeEnum struct {
	TUNNEL UpdateIpsecPolicyEncapsulationMode
}

func GetUpdateIpsecPolicyEncapsulationModeEnum

func GetUpdateIpsecPolicyEncapsulationModeEnum() UpdateIpsecPolicyEncapsulationModeEnum

type UpdateIpsecPolicyEncryptionAlgorithm

type UpdateIpsecPolicyEncryptionAlgorithm struct {
	// contains filtered or unexported fields
}

func (UpdateIpsecPolicyEncryptionAlgorithm) MarshalJSON

func (c UpdateIpsecPolicyEncryptionAlgorithm) MarshalJSON() ([]byte, error)

func (*UpdateIpsecPolicyEncryptionAlgorithm) UnmarshalJSON

func (c *UpdateIpsecPolicyEncryptionAlgorithm) UnmarshalJSON(b []byte) error

func (UpdateIpsecPolicyEncryptionAlgorithm) Value

type UpdateIpsecPolicyTransformProtocol

type UpdateIpsecPolicyTransformProtocol struct {
	// contains filtered or unexported fields
}

func (UpdateIpsecPolicyTransformProtocol) MarshalJSON

func (c UpdateIpsecPolicyTransformProtocol) MarshalJSON() ([]byte, error)

func (*UpdateIpsecPolicyTransformProtocol) UnmarshalJSON

func (c *UpdateIpsecPolicyTransformProtocol) UnmarshalJSON(b []byte) error

func (UpdateIpsecPolicyTransformProtocol) Value

type UpdateIpsecPolicyTransformProtocolEnum

type UpdateIpsecPolicyTransformProtocolEnum struct {
	ESP UpdateIpsecPolicyTransformProtocol
}

func GetUpdateIpsecPolicyTransformProtocolEnum

func GetUpdateIpsecPolicyTransformProtocolEnum() UpdateIpsecPolicyTransformProtocolEnum

type UpdateResponseVpnConnection

type UpdateResponseVpnConnection struct {

	// VPN连接ID
	Id *string `json:"id,omitempty"`

	// VPN连接名称
	Name *string `json:"name,omitempty"`

	// VPN网关ID
	VgwId *string `json:"vgw_id,omitempty"`

	// VGW IP
	VgwIp *string `json:"vgw_ip,omitempty"`

	// 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式
	Style *UpdateResponseVpnConnectionStyle `json:"style,omitempty"`

	// 对端网关ID
	CgwId *string `json:"cgw_id,omitempty"`

	// 对端网段
	PeerSubnets *[]string `json:"peer_subnets,omitempty"`

	// 本端隧道口地址
	TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"`

	// 对端隧道口地址
	TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"`

	// 开启NQA检测
	EnableNqa *bool `json:"enable_nqa,omitempty"`

	// 策略模式的策略规则组
	PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"`

	Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"`

	Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 连接监控ID
	ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"`

	// 连接的HA角色
	HaRole *string `json:"ha_role,omitempty"`
}

func (UpdateResponseVpnConnection) String

type UpdateResponseVpnConnectionStyle

type UpdateResponseVpnConnectionStyle struct {
	// contains filtered or unexported fields
}

func (UpdateResponseVpnConnectionStyle) MarshalJSON

func (c UpdateResponseVpnConnectionStyle) MarshalJSON() ([]byte, error)

func (*UpdateResponseVpnConnectionStyle) UnmarshalJSON

func (c *UpdateResponseVpnConnectionStyle) UnmarshalJSON(b []byte) error

func (UpdateResponseVpnConnectionStyle) Value

type UpdateResponseVpnGateway

type UpdateResponseVpnGateway struct {

	// VPN网关ID
	Id *string `json:"id,omitempty"`

	// VPN网关名称
	Name *string `json:"name,omitempty"`

	// 关联模式
	AttachmentType *UpdateResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"`

	// VPN网关所连接的ER实例的ID
	ErId *string `json:"er_id,omitempty"`

	// VPN网关所连接的VPC的ID
	VpcId *string `json:"vpc_id,omitempty"`

	// 本端子网
	LocalSubnets *[]string `json:"local_subnets,omitempty"`

	// VPN网关所使用的VPC子网ID
	ConnectSubnet *string `json:"connect_subnet,omitempty"`

	// VPN网关北向类型,默认为公网(public)
	NetworkType *UpdateResponseVpnGatewayNetworkType `json:"network_type,omitempty"`

	// VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值
	AccessVpcId *string `json:"access_vpc_id,omitempty"`

	// VPN网关北向接入VPC中的接入子网ID
	AccessSubnetId *string `json:"access_subnet_id,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值
	AccessPrivateIps *[]string `json:"access_private_ips,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP
	AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"`

	// VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP
	AccessPrivateIp2 *string `json:"access_private_ip_2,omitempty"`

	// bgp所使用的asn号
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

	// VPN网关的规格类型
	Flavor *string `json:"flavor,omitempty"`

	// 可用区列表
	AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"`

	// 最大可创建的VPN连接数
	ConnectionNumber *int32 `json:"connection_number,omitempty"`

	// 当前已经使用的VPN连接数
	UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"`

	// 当前已经使用的VPN连接组个数
	UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// ha模式
	HaMode *string `json:"ha_mode,omitempty"`

	MasterEip *ResponseEip `json:"master_eip,omitempty"`

	SlaveEip *ResponseEip `json:"slave_eip,omitempty"`

	Eip1 *ResponseEip `json:"eip1,omitempty"`

	Eip2 *ResponseEip `json:"eip2,omitempty"`

	// 创建时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

func (UpdateResponseVpnGateway) String

func (o UpdateResponseVpnGateway) String() string

type UpdateResponseVpnGatewayAttachmentType

type UpdateResponseVpnGatewayAttachmentType struct {
	// contains filtered or unexported fields
}

func (UpdateResponseVpnGatewayAttachmentType) MarshalJSON

func (c UpdateResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)

func (*UpdateResponseVpnGatewayAttachmentType) UnmarshalJSON

func (c *UpdateResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error

func (UpdateResponseVpnGatewayAttachmentType) Value

type UpdateResponseVpnGatewayNetworkType

type UpdateResponseVpnGatewayNetworkType struct {
	// contains filtered or unexported fields
}

func (UpdateResponseVpnGatewayNetworkType) MarshalJSON

func (c UpdateResponseVpnGatewayNetworkType) MarshalJSON() ([]byte, error)

func (*UpdateResponseVpnGatewayNetworkType) UnmarshalJSON

func (c *UpdateResponseVpnGatewayNetworkType) UnmarshalJSON(b []byte) error

func (UpdateResponseVpnGatewayNetworkType) Value

type UpdateResponseVpnGatewayNetworkTypeEnum

type UpdateResponseVpnGatewayNetworkTypeEnum struct {
	PUBLIC  UpdateResponseVpnGatewayNetworkType
	PRIVATE UpdateResponseVpnGatewayNetworkType
}

func GetUpdateResponseVpnGatewayNetworkTypeEnum

func GetUpdateResponseVpnGatewayNetworkTypeEnum() UpdateResponseVpnGatewayNetworkTypeEnum

type UpdateVgwCertificateRequest

type UpdateVgwCertificateRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`

	// VPN网关证书ID
	CertificateId string `json:"certificate_id"`

	Body *VpnGatewayCertificateRequestBody `json:"body,omitempty"`
}

UpdateVgwCertificateRequest Request Object

func (UpdateVgwCertificateRequest) String

type UpdateVgwCertificateResponse

type UpdateVgwCertificateResponse struct {
	Certificate *VpnGatewayCertificateConfig `json:"certificate,omitempty"`

	// 请求id
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

UpdateVgwCertificateResponse Response Object

func (UpdateVgwCertificateResponse) String

type UpdateVgwRequest

type UpdateVgwRequest struct {

	// VPN网关实例ID
	VgwId string `json:"vgw_id"`

	Body *UpdateVgwRequestBody `json:"body,omitempty"`
}

UpdateVgwRequest Request Object

func (UpdateVgwRequest) String

func (o UpdateVgwRequest) String() string

type UpdateVgwRequestBody

type UpdateVgwRequestBody struct {
	VpnGateway *UpdateVgwRequestBodyContent `json:"vpn_gateway"`
}

func (UpdateVgwRequestBody) String

func (o UpdateVgwRequestBody) String() string

type UpdateVgwRequestBodyContent

type UpdateVgwRequestBodyContent struct {

	// 网关名称
	Name *string `json:"name,omitempty"`

	// 本端子网
	LocalSubnets *[]string `json:"local_subnets,omitempty"`

	// 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP
	MasterEipId *string `json:"master_eip_id,omitempty"`

	// 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP
	SlaveEipId *string `json:"slave_eip_id,omitempty"`

	// 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP
	EipId1 *string `json:"eip_id_1,omitempty"`

	// 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP
	EipId2 *string `json:"eip_id_2,omitempty"`
}

func (UpdateVgwRequestBodyContent) String

type UpdateVgwResponse

type UpdateVgwResponse struct {
	VpnGateway *UpdateResponseVpnGateway `json:"vpn_gateway,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

UpdateVgwResponse Response Object

func (UpdateVgwResponse) String

func (o UpdateVgwResponse) String() string

type UpdateVpnConnectionRequest

type UpdateVpnConnectionRequest struct {

	// vpn连接ID
	VpnConnectionId string `json:"vpn_connection_id"`

	Body *UpdateVpnConnectionRequestBody `json:"body,omitempty"`
}

UpdateVpnConnectionRequest Request Object

func (UpdateVpnConnectionRequest) String

type UpdateVpnConnectionRequestBody

type UpdateVpnConnectionRequestBody struct {
	VpnConnection *UpdateVpnConnectionRequestBodyContent `json:"vpn_connection"`
}

func (UpdateVpnConnectionRequestBody) String

type UpdateVpnConnectionRequestBodyContent

type UpdateVpnConnectionRequestBodyContent struct {

	// VPN连接名称
	Name *string `json:"name,omitempty"`

	// 对端网关ID
	CgwId *string `json:"cgw_id,omitempty"`

	// 对端网段
	PeerSubnets *[]string `json:"peer_subnets,omitempty"`

	// 本端隧道口地址
	TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"`

	// 对端隧道口地址
	TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"`

	// 预共享密钥,只能包含大写字母、小写字母、数字和特殊字符(~!@#$%^()-_+={ },./:;)且至少包含四种字符的三种
	Psk *string `json:"psk,omitempty"`

	// 策略模式的策略规则组
	PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"`

	Ikepolicy *UpdateIkePolicy `json:"ikepolicy,omitempty"`

	Ipsecpolicy *UpdateIpsecPolicy `json:"ipsecpolicy,omitempty"`
}

func (UpdateVpnConnectionRequestBodyContent) String

type UpdateVpnConnectionResponse

type UpdateVpnConnectionResponse struct {
	VpnConnection *UpdateResponseVpnConnection `json:"vpn_connection,omitempty"`

	// 请求ID
	RequestId *string `json:"request_id,omitempty"`

	HeaderResponseToken *string `json:"header-response-token,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

UpdateVpnConnectionResponse Response Object

func (UpdateVpnConnectionResponse) String

type VpnGatewayAvailabilityZones

type VpnGatewayAvailabilityZones struct {

	// VPC关联类型的可用区列表
	Vpc *[]string `json:"vpc,omitempty"`

	// ER关联类型的可用区列表
	Er *[]string `json:"er,omitempty"`
}

VpnGatewayAvailabilityZones 指定规格的可用区情况

func (VpnGatewayAvailabilityZones) String

type VpnGatewayCertificate

type VpnGatewayCertificate struct {

	// VPN网关证书ID
	Id *string `json:"id,omitempty"`

	// VPN网关证书名称
	Name *string `json:"name,omitempty"`

	// 租户的项目ID
	ProjectId *string `json:"project_id,omitempty"`

	// VPN网关ID
	VgwId *string `json:"vgw_id,omitempty"`

	// 网关证书状态
	Status *VpnGatewayCertificateStatus `json:"status,omitempty"`

	// 签名证书颁发者,国密证书时为签名证书颁发者
	Issuer *string `json:"issuer,omitempty"`

	// 签名证书签名算法,国密证书时为签名证书签名算法
	SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`

	// 证书序列号,国密证书时为签名证书序列号
	CertificateSerialNumber *string `json:"certificate_serial_number,omitempty"`

	// 签名证书主题,国密证书时为签名证书主题
	CertificateSubject *string `json:"certificate_subject,omitempty"`

	// 签名证书过期时间,国密证书时为签名证书过期时间
	CertificateExpireTime *sdktime.SdkTime `json:"certificate_expire_time,omitempty"`

	// CA证书序列号
	CertificateChainSerialNumber *string `json:"certificate_chain_serial_number,omitempty"`

	// CA证书主题
	CertificateChainSubject *string `json:"certificate_chain_subject,omitempty"`

	// CA证书过期时间
	CertificateChainExpireTime *sdktime.SdkTime `json:"certificate_chain_expire_time,omitempty"`

	// 国密证书的加密证书序列号,
	EncCertificateSerialNumber *string `json:"enc_certificate_serial_number,omitempty"`

	// 国密证书的加密证书主题
	EncCertificateSubject *string `json:"enc_certificate_subject,omitempty"`

	// 国密证书的加密证书过期时间
	EncCertificateExpireTime *sdktime.SdkTime `json:"enc_certificate_expire_time,omitempty"`

	// 创建时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

func (VpnGatewayCertificate) String

func (o VpnGatewayCertificate) String() string

type VpnGatewayCertificateConfig

type VpnGatewayCertificateConfig struct {

	// VPN网关证书ID
	Id *string `json:"id,omitempty"`

	// VPN网关证书名称
	Name *string `json:"name,omitempty"`

	// VPN网关ID
	VgwId *string `json:"vgw_id,omitempty"`

	// 签名证书颁发者,国密证书时为签名证书颁发者
	Issuer *string `json:"issuer,omitempty"`

	// 签名证书签名算法,国密证书时为签名证书签名算法
	SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`

	// 证书序列号,国密证书时为签名证书序列号
	CertificateSerialNumber *string `json:"certificate_serial_number,omitempty"`

	// 签名证书主题,国密证书时为签名证书主题
	CertificateSubject *string `json:"certificate_subject,omitempty"`

	// 签名证书过期时间,国密证书时为签名证书过期时间
	CertificateExpireTime *sdktime.SdkTime `json:"certificate_expire_time,omitempty"`

	// CA证书序列号
	CertificateChainSerialNumber *string `json:"certificate_chain_serial_number,omitempty"`

	// CA证书主题
	CertificateChainSubject *string `json:"certificate_chain_subject,omitempty"`

	// CA证书过期时间
	CertificateChainExpireTime *sdktime.SdkTime `json:"certificate_chain_expire_time,omitempty"`

	// 国密证书的加密证书序列号,
	EncCertificateSerialNumber *string `json:"enc_certificate_serial_number,omitempty"`

	// 国密证书的加密证书主题
	EncCertificateSubject *string `json:"enc_certificate_subject,omitempty"`

	// 国密证书的加密证书过期时间
	EncCertificateExpireTime *sdktime.SdkTime `json:"enc_certificate_expire_time,omitempty"`

	// 创建时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
}

func (VpnGatewayCertificateConfig) String

type VpnGatewayCertificateRequestBody

type VpnGatewayCertificateRequestBody struct {
	Certificate *VpnGatewayCertificateRequestBodyContent `json:"certificate,omitempty"`
}

func (VpnGatewayCertificateRequestBody) String

type VpnGatewayCertificateRequestBodyContent

type VpnGatewayCertificateRequestBodyContent struct {

	// VPN网关证书名称
	Name *string `json:"name,omitempty"`

	// 证书内容,国密证书时为签名证书内容
	Certificate *string `json:"certificate,omitempty"`

	// 证书私钥,国密证书时为签名证书私钥
	PrivateKey *string `json:"private_key,omitempty"`

	// VPN网关CA证书内容
	CertificateChain *string `json:"certificate_chain,omitempty"`

	// 国密证书的加密证书内容
	EncCertificate *string `json:"enc_certificate,omitempty"`

	// 国密证书的加密证书私钥
	EncPrivateKey *string `json:"enc_private_key,omitempty"`
}

func (VpnGatewayCertificateRequestBodyContent) String

type VpnGatewayCertificateStatus

type VpnGatewayCertificateStatus struct {
	// contains filtered or unexported fields
}

func (VpnGatewayCertificateStatus) MarshalJSON

func (c VpnGatewayCertificateStatus) MarshalJSON() ([]byte, error)

func (*VpnGatewayCertificateStatus) UnmarshalJSON

func (c *VpnGatewayCertificateStatus) UnmarshalJSON(b []byte) error

func (VpnGatewayCertificateStatus) Value

type VpnGatewayCertificateStatusEnum

type VpnGatewayCertificateStatusEnum struct {
	BOUND   VpnGatewayCertificateStatus
	FAULT   VpnGatewayCertificateStatus
	BINDING VpnGatewayCertificateStatus
}

func GetVpnGatewayCertificateStatusEnum

func GetVpnGatewayCertificateStatusEnum() VpnGatewayCertificateStatusEnum

Source Files

Jump to

Keyboard shortcuts

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