model

package
v0.1.104 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 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"`

	Professional1NonFixedIP *VpnGatewayAvailabilityZones `json:"Professional1-NonFixedIP,omitempty"`

	Professional2NonFixedIP *VpnGatewayAvailabilityZones `json:"Professional2-NonFixedIP,omitempty"`

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

func (AvailabilityZones) String

func (o AvailabilityZones) String() string

type BatchCreateResourceTagsRequest added in v0.1.78

type BatchCreateResourceTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType BatchCreateResourceTagsRequestResourceType `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`

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

BatchCreateResourceTagsRequest Request Object

func (BatchCreateResourceTagsRequest) String added in v0.1.78

type BatchCreateResourceTagsRequestResourceType added in v0.1.78

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

func (BatchCreateResourceTagsRequestResourceType) MarshalJSON added in v0.1.78

func (*BatchCreateResourceTagsRequestResourceType) UnmarshalJSON added in v0.1.78

func (BatchCreateResourceTagsRequestResourceType) Value added in v0.1.78

type BatchCreateResourceTagsRequestResourceTypeEnum added in v0.1.78

type BatchCreateResourceTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      BatchCreateResourceTagsRequestResourceType
	VPN_CONNECTION   BatchCreateResourceTagsRequestResourceType
	CUSTOMER_GATEWAY BatchCreateResourceTagsRequestResourceType
}

func GetBatchCreateResourceTagsRequestResourceTypeEnum added in v0.1.78

func GetBatchCreateResourceTagsRequestResourceTypeEnum() BatchCreateResourceTagsRequestResourceTypeEnum

type BatchCreateResourceTagsResponse added in v0.1.78

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

BatchCreateResourceTagsResponse Response Object

func (BatchCreateResourceTagsResponse) String added in v0.1.78

type BatchDeleteResourceTagsRequest added in v0.1.78

type BatchDeleteResourceTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType BatchDeleteResourceTagsRequestResourceType `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`

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

BatchDeleteResourceTagsRequest Request Object

func (BatchDeleteResourceTagsRequest) String added in v0.1.78

type BatchDeleteResourceTagsRequestResourceType added in v0.1.78

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

func (BatchDeleteResourceTagsRequestResourceType) MarshalJSON added in v0.1.78

func (*BatchDeleteResourceTagsRequestResourceType) UnmarshalJSON added in v0.1.78

func (BatchDeleteResourceTagsRequestResourceType) Value added in v0.1.78

type BatchDeleteResourceTagsRequestResourceTypeEnum added in v0.1.78

type BatchDeleteResourceTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      BatchDeleteResourceTagsRequestResourceType
	VPN_CONNECTION   BatchDeleteResourceTagsRequestResourceType
	CUSTOMER_GATEWAY BatchDeleteResourceTagsRequestResourceType
}

func GetBatchDeleteResourceTagsRequestResourceTypeEnum added in v0.1.78

func GetBatchDeleteResourceTagsRequestResourceTypeEnum() BatchDeleteResourceTagsRequestResourceTypeEnum

type BatchDeleteResourceTagsResponse added in v0.1.78

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

BatchDeleteResourceTagsResponse Response Object

func (BatchDeleteResourceTagsResponse) String added in v0.1.78

type CaCertificate

type CaCertificate struct {

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

	// 证书序列号
	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 {

	// 使用已有证书ID
	Id *string `json:"id,omitempty"`

	// 对端网关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 CountResourcesByTagsRequest added in v0.1.78

type CountResourcesByTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType CountResourcesByTagsRequestResourceType `json:"resource_type"`

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

CountResourcesByTagsRequest Request Object

func (CountResourcesByTagsRequest) String added in v0.1.78

type CountResourcesByTagsRequestResourceType added in v0.1.78

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

func (CountResourcesByTagsRequestResourceType) MarshalJSON added in v0.1.78

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

func (*CountResourcesByTagsRequestResourceType) UnmarshalJSON added in v0.1.78

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

func (CountResourcesByTagsRequestResourceType) Value added in v0.1.78

type CountResourcesByTagsRequestResourceTypeEnum added in v0.1.78

type CountResourcesByTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      CountResourcesByTagsRequestResourceType
	VPN_CONNECTION   CountResourcesByTagsRequestResourceType
	CUSTOMER_GATEWAY CountResourcesByTagsRequestResourceType
}

func GetCountResourcesByTagsRequestResourceTypeEnum added in v0.1.78

func GetCountResourcesByTagsRequestResourceTypeEnum() CountResourcesByTagsRequestResourceTypeEnum

type CountResourcesByTagsResponse added in v0.1.78

type CountResourcesByTagsResponse struct {
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CountResourcesByTagsResponse Response Object

func (CountResourcesByTagsResponse) String added in v0.1.78

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"`

	// 对端网关标识类型
	IdType *CreateCgwRequestBodyContentIdType `json:"id_type,omitempty"`

	// 对端网关标识值
	IdValue string `json:"id_value"`

	// 网关的bgp asn号,默认值为65000
	BgpAsn *int64 `json:"bgp_asn,omitempty"`

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

	// 标签
	Tags *[]VpnResourceTag `json:"tags,omitempty"`
}

func (CreateCgwRequestBodyContent) String

type CreateCgwRequestBodyContentIdType added in v0.1.78

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

func (CreateCgwRequestBodyContentIdType) MarshalJSON added in v0.1.78

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

func (*CreateCgwRequestBodyContentIdType) UnmarshalJSON added in v0.1.78

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

func (CreateCgwRequestBodyContentIdType) Value added in v0.1.78

type CreateCgwRequestBodyContentIdTypeEnum added in v0.1.78

type CreateCgwRequestBodyContentIdTypeEnum struct {
	IP   CreateCgwRequestBodyContentIdType
	FQDN CreateCgwRequestBodyContentIdType
}

func GetCreateCgwRequestBodyContentIdTypeEnum added in v0.1.78

func GetCreateCgwRequestBodyContentIdTypeEnum() CreateCgwRequestBodyContentIdTypeEnum

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:按流量计费  95peak_plus:按增强型95计费
	ChargeMode *CreateRequestEipChargeMode `json:"charge_mode,omitempty"`

	// 带宽大小Mbit/s。flavor为Basic时,取值不能大于100;flavor为Professional1时,取值不能大于300;flavor为Professional2时,取值不能大于1000
	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 CreateResourcesTagsRequestBody added in v0.1.78

type CreateResourcesTagsRequestBody struct {
	Tags []ResourceTag `json:"tags"`
}

func (CreateResourcesTagsRequestBody) String added in v0.1.78

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"`

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

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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"`

	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 *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"`

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

	PolicyTemplate *PolicyTemplate `json:"policy_template,omitempty"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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 *CreateVpnGatewayCertificateRequestBody `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网关的可用区。不填时自动为VPN网关选择可用区。如果需要指定可用区可以通过查询VPN网关可用区查询可用区列表。
	AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"`

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

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

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

	// 私网类型VPN网关的接入私网IP1,指定ip创建私网网关时设置,主备网关时为主ip,双活网关时为主ip1
	AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"`

	// 私网类型VPN网关的接入私网IP2,指定ip创建私网网关时设置,主备网关时为备ip,双活网关时为主ip2
	AccessPrivateIp2 *string `json:"access_private_ip_2,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"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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
	PROFESSIONAL1_NON_FIXED_IP CreateVgwRequestBodyContentFlavor
	PROFESSIONAL2_NON_FIXED_IP 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"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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 CreateVpnGatewayCertificateRequestBody added in v0.1.81

type CreateVpnGatewayCertificateRequestBody struct {
	Certificate *CreateVpnGatewayCertificateRequestBodyContent `json:"certificate"`
}

func (CreateVpnGatewayCertificateRequestBody) String added in v0.1.81

type CreateVpnGatewayCertificateRequestBodyContent added in v0.1.81

type CreateVpnGatewayCertificateRequestBodyContent struct {

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

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

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

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

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

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

func (CreateVpnGatewayCertificateRequestBodyContent) String added in v0.1.81

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 DeleteResourcesTagsRequestBody added in v0.1.78

type DeleteResourcesTagsRequestBody struct {
	Tags []ResourceTag `json:"tags"`
}

func (DeleteResourcesTagsRequestBody) String added in v0.1.78

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 {

	// 对等体存活检测空闲时间
	Interval *int32 `json:"interval,omitempty"`

	// 对等体存活检测报文重传间隔
	Timeout *int32 `json:"timeout,omitempty"`

	// 对等体存活检测报文格式
	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 ListProjectTagsRequest added in v0.1.78

type ListProjectTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType ListProjectTagsRequestResourceType `json:"resource_type"`
}

ListProjectTagsRequest Request Object

func (ListProjectTagsRequest) String added in v0.1.78

func (o ListProjectTagsRequest) String() string

type ListProjectTagsRequestResourceType added in v0.1.78

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

func (ListProjectTagsRequestResourceType) MarshalJSON added in v0.1.78

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

func (*ListProjectTagsRequestResourceType) UnmarshalJSON added in v0.1.78

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

func (ListProjectTagsRequestResourceType) Value added in v0.1.78

type ListProjectTagsRequestResourceTypeEnum added in v0.1.78

type ListProjectTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      ListProjectTagsRequestResourceType
	VPN_CONNECTION   ListProjectTagsRequestResourceType
	CUSTOMER_GATEWAY ListProjectTagsRequestResourceType
}

func GetListProjectTagsRequestResourceTypeEnum added in v0.1.78

func GetListProjectTagsRequestResourceTypeEnum() ListProjectTagsRequestResourceTypeEnum

type ListProjectTagsResponse added in v0.1.78

type ListProjectTagsResponse struct {
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListProjectTagsResponse Response Object

func (ListProjectTagsResponse) String added in v0.1.78

func (o ListProjectTagsResponse) String() string

type ListResourcesByTagsRequest added in v0.1.78

type ListResourcesByTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType ListResourcesByTagsRequestResourceType `json:"resource_type"`

	// limit
	Limit *string `json:"limit,omitempty"`

	// offset
	Offset *string `json:"offset,omitempty"`

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

ListResourcesByTagsRequest Request Object

func (ListResourcesByTagsRequest) String added in v0.1.78

type ListResourcesByTagsRequestResourceType added in v0.1.78

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

func (ListResourcesByTagsRequestResourceType) MarshalJSON added in v0.1.78

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

func (*ListResourcesByTagsRequestResourceType) UnmarshalJSON added in v0.1.78

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

func (ListResourcesByTagsRequestResourceType) Value added in v0.1.78

type ListResourcesByTagsRequestResourceTypeEnum added in v0.1.78

type ListResourcesByTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      ListResourcesByTagsRequestResourceType
	VPN_CONNECTION   ListResourcesByTagsRequestResourceType
	CUSTOMER_GATEWAY ListResourcesByTagsRequestResourceType
}

func GetListResourcesByTagsRequestResourceTypeEnum added in v0.1.78

func GetListResourcesByTagsRequestResourceTypeEnum() ListResourcesByTagsRequestResourceTypeEnum

type ListResourcesByTagsResponse added in v0.1.78

type ListResourcesByTagsResponse struct {
	Resources *[]Resource `json:"resources,omitempty"`

	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListResourcesByTagsResponse Response Object

func (ListResourcesByTagsResponse) String added in v0.1.78

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 Match added in v0.1.78

type Match struct {
	Key MatchKey `json:"key"`

	Value string `json:"value"`
}

func (Match) String added in v0.1.78

func (o Match) String() string

type MatchKey added in v0.1.78

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

func (MatchKey) MarshalJSON added in v0.1.78

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

func (*MatchKey) UnmarshalJSON added in v0.1.78

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

func (MatchKey) Value added in v0.1.78

func (c MatchKey) Value() string

type MatchKeyEnum added in v0.1.78

type MatchKeyEnum struct {
	RESOURCE_NAME MatchKey
}

func GetMatchKeyEnum added in v0.1.78

func GetMatchKeyEnum() MatchKeyEnum

type PageInfo

type PageInfo struct {

	// 下一页的marker,值为上一次查询响应中最后一个资源的创建时间
	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 PolicyTemplate added in v0.1.78

type PolicyTemplate struct {
	IkePolicy *VgwIkePolicy `json:"ike_policy,omitempty"`

	IpsecPolicy *VgwIpsecPolicy `json:"ipsec_policy,omitempty"`
}

func (PolicyTemplate) String added in v0.1.78

func (o PolicyTemplate) String() string

type QueryResourcesRequestBody added in v0.1.78

type QueryResourcesRequestBody struct {
	WithoutAnyTag *bool `json:"without_any_tag,omitempty"`

	Tags *[]Tag `json:"tags,omitempty"`

	Matches *[]Match `json:"matches,omitempty"`
}

func (QueryResourcesRequestBody) String added in v0.1.78

func (o QueryResourcesRequestBody) String() string

type QuotaInfo added in v0.1.81

type QuotaInfo struct {

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

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

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

func (QuotaInfo) String added in v0.1.81

func (o QuotaInfo) String() string

type Quotas

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

func (Quotas) String

func (o Quotas) String() string

type Resource added in v0.1.78

type Resource struct {
	ResourceId *string `json:"resource_id,omitempty"`

	ResourceDetail *interface{} `json:"resource_detail,omitempty"`

	Tags *[]ResourceTag `json:"tags,omitempty"`

	ResourceName *string `json:"resource_name,omitempty"`
}

func (Resource) String added in v0.1.78

func (o Resource) String() string

type ResourceTag added in v0.1.78

type ResourceTag struct {

	// 标签的key
	Key string `json:"key"`

	// 标签的value
	Value *string `json:"value,omitempty"`
}

func (ResourceTag) String added in v0.1.78

func (o ResourceTag) String() string

type ResponseCustomerGateway

type ResponseCustomerGateway struct {

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

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

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

	// 对端网关标识类型
	IdType *string `json:"id_type,omitempty"`

	// 对端网关标识值
	IdValue *string `json:"id_value,omitempty"`

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

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

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

	// 标签
	Tags *[]VpnResourceTag `json:"tags,omitempty"`
}

func (ResponseCustomerGateway) String

func (o ResponseCustomerGateway) String() string

type ResponseEip

type ResponseEip struct {

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

	// 功能说明: 公网IP版本号  取值范围:4
	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时,取值不能大于1000
	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"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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网关使用该私网IP与对端网关建连。双活网关表示使用的第一个私网地址,主备表示主私网地址。
	AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"`

	// 私网类型VPN网关的接入私网IP,VPN网关使用该私网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"`

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

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

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

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

	PolicyTemplate *PolicyTemplate `json:"policy_template,omitempty"`

	// 网关可升配到的目标规格
	SupportedFlavors *[]string `json:"supported_flavors,omitempty"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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 ShowResourceTagsRequest added in v0.1.78

type ShowResourceTagsRequest struct {

	// 内容类型
	ContentType string `json:"Content-Type"`

	// 资源类型
	ResourceType ShowResourceTagsRequestResourceType `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`
}

ShowResourceTagsRequest Request Object

func (ShowResourceTagsRequest) String added in v0.1.78

func (o ShowResourceTagsRequest) String() string

type ShowResourceTagsRequestResourceType added in v0.1.78

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

func (ShowResourceTagsRequestResourceType) MarshalJSON added in v0.1.78

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

func (*ShowResourceTagsRequestResourceType) UnmarshalJSON added in v0.1.78

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

func (ShowResourceTagsRequestResourceType) Value added in v0.1.78

type ShowResourceTagsRequestResourceTypeEnum added in v0.1.78

type ShowResourceTagsRequestResourceTypeEnum struct {
	VPN_GATEWAY      ShowResourceTagsRequestResourceType
	VPN_CONNECTION   ShowResourceTagsRequestResourceType
	CUSTOMER_GATEWAY ShowResourceTagsRequestResourceType
}

func GetShowResourceTagsRequestResourceTypeEnum added in v0.1.78

func GetShowResourceTagsRequestResourceTypeEnum() ShowResourceTagsRequestResourceTypeEnum

type ShowResourceTagsResponse added in v0.1.78

type ShowResourceTagsResponse struct {
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowResourceTagsResponse Response Object

func (ShowResourceTagsResponse) String added in v0.1.78

func (o ShowResourceTagsResponse) 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 Tag added in v0.1.78

type Tag struct {
	Key string `json:"key"`

	Values []string `json:"values"`
}

func (Tag) String added in v0.1.78

func (o Tag) String() 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"`

	CaCertificate *CaCertificateRequest `json:"ca_certificate,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 {

	// 对等体存活检测空闲时间
	Interval *int32 `json:"interval,omitempty"`

	// 对等体存活检测报文重传间隔
	Timeout *int32 `json:"timeout,omitempty"`

	// 对等体存活检测报文格式
	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 UpdateRequestPolicyTemplate added in v0.1.78

type UpdateRequestPolicyTemplate struct {
	IkePolicy *UpdateVgwIkePolicy `json:"ike_policy,omitempty"`

	IpsecPolicy *UpdateVgwIpsecPolicy `json:"ipsec_policy,omitempty"`
}

func (UpdateRequestPolicyTemplate) String added in v0.1.78

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"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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"`

	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 *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网关使用该私网IP与对端网关建连。双活网关表示使用的第一个私网地址,主备表示主私网地址。
	AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"`

	// 私网类型VPN网关的接入私网IP,VPN网关使用该私网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"`

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

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

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

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

	PolicyTemplate *PolicyTemplate `json:"policy_template,omitempty"`

	// 标签
	Tags *[]VpnResourceTag `json:"tags,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 *UpdateVpnGatewayCertificateRequestBody `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 UpdateVgwIkePolicy added in v0.1.78

type UpdateVgwIkePolicy struct {

	// 加密算法
	AuthenticationAlgorithm *UpdateVgwIkePolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法
	EncryptionAlgorithm *UpdateVgwIkePolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

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

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

func (UpdateVgwIkePolicy) String added in v0.1.78

func (o UpdateVgwIkePolicy) String() string

type UpdateVgwIkePolicyAuthenticationAlgorithm added in v0.1.78

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

func (UpdateVgwIkePolicyAuthenticationAlgorithm) MarshalJSON added in v0.1.78

func (*UpdateVgwIkePolicyAuthenticationAlgorithm) UnmarshalJSON added in v0.1.78

func (UpdateVgwIkePolicyAuthenticationAlgorithm) Value added in v0.1.78

type UpdateVgwIkePolicyAuthenticationAlgorithmEnum added in v0.1.78

type UpdateVgwIkePolicyAuthenticationAlgorithmEnum struct {
	SHA2_256 UpdateVgwIkePolicyAuthenticationAlgorithm
	SHA2_384 UpdateVgwIkePolicyAuthenticationAlgorithm
	SHA2_512 UpdateVgwIkePolicyAuthenticationAlgorithm
}

func GetUpdateVgwIkePolicyAuthenticationAlgorithmEnum added in v0.1.78

func GetUpdateVgwIkePolicyAuthenticationAlgorithmEnum() UpdateVgwIkePolicyAuthenticationAlgorithmEnum

type UpdateVgwIkePolicyDhGroup added in v0.1.78

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

func (UpdateVgwIkePolicyDhGroup) MarshalJSON added in v0.1.78

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

func (*UpdateVgwIkePolicyDhGroup) UnmarshalJSON added in v0.1.78

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

func (UpdateVgwIkePolicyDhGroup) Value added in v0.1.78

type UpdateVgwIkePolicyDhGroupEnum added in v0.1.78

type UpdateVgwIkePolicyDhGroupEnum struct {
	GROUP14 UpdateVgwIkePolicyDhGroup
	GROUP15 UpdateVgwIkePolicyDhGroup
	GROUP16 UpdateVgwIkePolicyDhGroup
	GROUP19 UpdateVgwIkePolicyDhGroup
	GROUP20 UpdateVgwIkePolicyDhGroup
	GROUP21 UpdateVgwIkePolicyDhGroup
}

func GetUpdateVgwIkePolicyDhGroupEnum added in v0.1.78

func GetUpdateVgwIkePolicyDhGroupEnum() UpdateVgwIkePolicyDhGroupEnum

type UpdateVgwIkePolicyEncryptionAlgorithm added in v0.1.78

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

func (UpdateVgwIkePolicyEncryptionAlgorithm) MarshalJSON added in v0.1.78

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

func (*UpdateVgwIkePolicyEncryptionAlgorithm) UnmarshalJSON added in v0.1.78

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

func (UpdateVgwIkePolicyEncryptionAlgorithm) Value added in v0.1.78

type UpdateVgwIkePolicyEncryptionAlgorithmEnum added in v0.1.78

func GetUpdateVgwIkePolicyEncryptionAlgorithmEnum added in v0.1.78

func GetUpdateVgwIkePolicyEncryptionAlgorithmEnum() UpdateVgwIkePolicyEncryptionAlgorithmEnum

type UpdateVgwIpsecPolicy added in v0.1.78

type UpdateVgwIpsecPolicy struct {

	// 加密算法
	AuthenticationAlgorithm *UpdateVgwIpsecPolicyAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"`

	// 加密算法
	EncryptionAlgorithm *UpdateVgwIpsecPolicyEncryptionAlgorithm `json:"encryption_algorithm,omitempty"`

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

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

func (UpdateVgwIpsecPolicy) String added in v0.1.78

func (o UpdateVgwIpsecPolicy) String() string

type UpdateVgwIpsecPolicyAuthenticationAlgorithm added in v0.1.78

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

func (UpdateVgwIpsecPolicyAuthenticationAlgorithm) MarshalJSON added in v0.1.78

func (*UpdateVgwIpsecPolicyAuthenticationAlgorithm) UnmarshalJSON added in v0.1.78

func (UpdateVgwIpsecPolicyAuthenticationAlgorithm) Value added in v0.1.78

type UpdateVgwIpsecPolicyAuthenticationAlgorithmEnum added in v0.1.78

type UpdateVgwIpsecPolicyAuthenticationAlgorithmEnum struct {
	SHA2_256 UpdateVgwIpsecPolicyAuthenticationAlgorithm
	SHA2_384 UpdateVgwIpsecPolicyAuthenticationAlgorithm
	SHA2_512 UpdateVgwIpsecPolicyAuthenticationAlgorithm
}

func GetUpdateVgwIpsecPolicyAuthenticationAlgorithmEnum added in v0.1.78

func GetUpdateVgwIpsecPolicyAuthenticationAlgorithmEnum() UpdateVgwIpsecPolicyAuthenticationAlgorithmEnum

type UpdateVgwIpsecPolicyEncryptionAlgorithm added in v0.1.78

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

func (UpdateVgwIpsecPolicyEncryptionAlgorithm) MarshalJSON added in v0.1.78

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

func (*UpdateVgwIpsecPolicyEncryptionAlgorithm) UnmarshalJSON added in v0.1.78

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

func (UpdateVgwIpsecPolicyEncryptionAlgorithm) Value added in v0.1.78

type UpdateVgwIpsecPolicyEncryptionAlgorithmEnum added in v0.1.78

func GetUpdateVgwIpsecPolicyEncryptionAlgorithmEnum added in v0.1.78

func GetUpdateVgwIpsecPolicyEncryptionAlgorithmEnum() UpdateVgwIpsecPolicyEncryptionAlgorithmEnum

type UpdateVgwIpsecPolicyPfs added in v0.1.78

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

func (UpdateVgwIpsecPolicyPfs) MarshalJSON added in v0.1.78

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

func (*UpdateVgwIpsecPolicyPfs) UnmarshalJSON added in v0.1.78

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

func (UpdateVgwIpsecPolicyPfs) Value added in v0.1.78

func (c UpdateVgwIpsecPolicyPfs) Value() string

type UpdateVgwIpsecPolicyPfsEnum added in v0.1.78

type UpdateVgwIpsecPolicyPfsEnum struct {
	GROUP14 UpdateVgwIpsecPolicyPfs
	GROUP15 UpdateVgwIpsecPolicyPfs
	GROUP16 UpdateVgwIpsecPolicyPfs
	GROUP19 UpdateVgwIpsecPolicyPfs
	GROUP20 UpdateVgwIpsecPolicyPfs
	GROUP21 UpdateVgwIpsecPolicyPfs
	DISABLE UpdateVgwIpsecPolicyPfs
}

func GetUpdateVgwIpsecPolicyPfsEnum added in v0.1.78

func GetUpdateVgwIpsecPolicyPfsEnum() UpdateVgwIpsecPolicyPfsEnum

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,表示绑定新的EIP作为双活VPN网关使用的第一个EIP或主备VPN网关的主EIP。
	EipId1 *string `json:"eip_id_1,omitempty"`

	// 有效的EIP的ID,表示绑定新的EIP作为双活VPN网关使用的第二个EIP或主备VPN网关的备EIP。
	EipId2 *string `json:"eip_id_2,omitempty"`

	PolicyTemplate *UpdateRequestPolicyTemplate `json:"policy_template,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 UpdateVpnGatewayCertificateRequestBody added in v0.1.81

type UpdateVpnGatewayCertificateRequestBody struct {
	Certificate *UpdateVpnGatewayCertificateRequestBodyContent `json:"certificate"`
}

func (UpdateVpnGatewayCertificateRequestBody) String added in v0.1.81

type UpdateVpnGatewayCertificateRequestBodyContent added in v0.1.81

type UpdateVpnGatewayCertificateRequestBodyContent 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 (UpdateVpnGatewayCertificateRequestBodyContent) String added in v0.1.81

type VgwIkePolicy added in v0.1.78

type VgwIkePolicy struct {

	// 加密算法
	EncryptionAlgorithm *string `json:"encryption_algorithm,omitempty"`

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

	// 认证算法
	AuthenticationAlgorithm *string `json:"authentication_algorithm,omitempty"`

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

func (VgwIkePolicy) String added in v0.1.78

func (o VgwIkePolicy) String() string

type VgwIpsecPolicy added in v0.1.78

type VgwIpsecPolicy struct {

	// 认证算法
	AuthenticationAlgorithm *string `json:"authentication_algorithm,omitempty"`

	// 加密算法
	EncryptionAlgorithm *string `json:"encryption_algorithm,omitempty"`

	// DH密钥组
	Pfs *string `json:"pfs,omitempty"`

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

func (VgwIpsecPolicy) String added in v0.1.78

func (o VgwIpsecPolicy) String() string

type VpnGatewayAvailabilityZones

type VpnGatewayAvailabilityZones struct {

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

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

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 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

type VpnResourceTag added in v0.1.78

type VpnResourceTag struct {

	// 标签的key
	Key string `json:"key"`

	// 标签的value
	Value string `json:"value"`
}

func (VpnResourceTag) String added in v0.1.78

func (o VpnResourceTag) String() string

Source Files

Jump to

Keyboard shortcuts

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