Documentation ¶
Index ¶
- type AvailabilityZones
- type CaCertificate
- type CaCertificateRequest
- type ConnectionMonitorInfo
- type CreateCgwRequest
- type CreateCgwRequestBody
- type CreateCgwRequestBodyContent
- type CreateCgwRequestBodyContentRouteMode
- type CreateCgwRequestBodyContentRouteModeEnum
- type CreateCgwResponse
- type CreateConnectionMonitorInfo
- type CreateConnectionMonitorRequest
- type CreateConnectionMonitorRequestBody
- type CreateConnectionMonitorRequestBodyContent
- type CreateConnectionMonitorResponse
- type CreateRequestEip
- type CreateRequestEipChargeMode
- type CreateRequestEipChargeModeEnum
- type CreateResponseVpnConnection
- type CreateResponseVpnConnectionStyle
- type CreateResponseVpnConnectionStyleEnum
- type CreateResponseVpnGateway
- type CreateResponseVpnGatewayAttachmentType
- type CreateResponseVpnGatewayAttachmentTypeEnum
- type CreateResponseVpnGatewayNetworkType
- type CreateResponseVpnGatewayNetworkTypeEnum
- type CreateVgwCertificateRequest
- type CreateVgwCertificateResponse
- type CreateVgwRequest
- type CreateVgwRequestBody
- type CreateVgwRequestBodyContent
- type CreateVgwRequestBodyContentAttachmentType
- type CreateVgwRequestBodyContentAttachmentTypeEnum
- type CreateVgwRequestBodyContentFlavor
- type CreateVgwRequestBodyContentFlavorEnum
- type CreateVgwRequestBodyContentHaMode
- type CreateVgwRequestBodyContentHaModeEnum
- type CreateVgwRequestBodyContentNetworkType
- type CreateVgwRequestBodyContentNetworkTypeEnum
- type CreateVgwResponse
- type CreateVpnConnectionRequest
- type CreateVpnConnectionRequestBody
- type CreateVpnConnectionRequestBodyContent
- type CreateVpnConnectionRequestBodyContentHaRole
- type CreateVpnConnectionRequestBodyContentHaRoleEnum
- type CreateVpnConnectionRequestBodyContentStyle
- type CreateVpnConnectionRequestBodyContentStyleEnum
- type CreateVpnConnectionResponse
- type DeleteCgwRequest
- type DeleteCgwResponse
- type DeleteConnectionMonitorRequest
- type DeleteConnectionMonitorResponse
- type DeleteVgwRequest
- type DeleteVgwResponse
- type DeleteVpnConnectionRequest
- type DeleteVpnConnectionResponse
- type Dpd
- type DpdMsg
- type DpdMsgEnum
- type IkePolicy
- type IkePolicyAuthenticationAlgorithm
- type IkePolicyAuthenticationAlgorithmEnum
- type IkePolicyAuthenticationMethod
- type IkePolicyAuthenticationMethodEnum
- type IkePolicyEncryptionAlgorithm
- type IkePolicyEncryptionAlgorithmEnum
- type IkePolicyIkeVersion
- type IkePolicyIkeVersionEnum
- type IkePolicyLocalIdType
- type IkePolicyLocalIdTypeEnum
- type IkePolicyPeerIdType
- type IkePolicyPeerIdTypeEnum
- type IkePolicyPhase1NegotiationMode
- type IkePolicyPhase1NegotiationModeEnum
- type IpsecPolicy
- type IpsecPolicyAuthenticationAlgorithm
- type IpsecPolicyAuthenticationAlgorithmEnum
- type IpsecPolicyEncapsulationMode
- type IpsecPolicyEncapsulationModeEnum
- type IpsecPolicyEncryptionAlgorithm
- type IpsecPolicyEncryptionAlgorithmEnum
- type IpsecPolicyTransformProtocol
- type IpsecPolicyTransformProtocolEnum
- type ListAvailabilityZonesRequest
- type ListAvailabilityZonesResponse
- type ListCgwsRequest
- type ListCgwsResponse
- type ListConnectionMonitorsRequest
- type ListConnectionMonitorsResponse
- type ListVgwsRequest
- type ListVgwsResponse
- type ListVpnConnectionsRequest
- type ListVpnConnectionsResponse
- type PageInfo
- type PolicyRule
- type Quota
- type Quotas
- type ResponseCustomerGateway
- type ResponseCustomerGatewayRouteMode
- type ResponseCustomerGatewayRouteModeEnum
- type ResponseEip
- type ResponseEipChargeMode
- type ResponseEipChargeModeEnum
- type ResponseVpnConnection
- type ResponseVpnConnectionStyle
- type ResponseVpnConnectionStyleEnum
- type ResponseVpnGateway
- type ResponseVpnGatewayAttachmentType
- type ResponseVpnGatewayAttachmentTypeEnum
- type ResponseVpnGatewayNetworkType
- type ResponseVpnGatewayNetworkTypeEnum
- type ShowCgwRequest
- type ShowCgwResponse
- type ShowConnectionMonitorRequest
- type ShowConnectionMonitorResponse
- type ShowQuotasInfoRequest
- type ShowQuotasInfoResponse
- type ShowVgwRequest
- type ShowVgwResponse
- type ShowVpnConnectionRequest
- type ShowVpnConnectionResponse
- type ShowVpnGatewayCertificateRequest
- type ShowVpnGatewayCertificateResponse
- type UpdateCgwRequest
- type UpdateCgwRequestBody
- type UpdateCgwRequestBodyContent
- type UpdateCgwResponse
- type UpdateDpd
- type UpdateDpdMsg
- type UpdateDpdMsgEnum
- type UpdateIkePolicy
- type UpdateIkePolicyAuthenticationAlgorithm
- type UpdateIkePolicyAuthenticationAlgorithmEnum
- type UpdateIkePolicyEncryptionAlgorithm
- type UpdateIkePolicyEncryptionAlgorithmEnum
- type UpdateIkePolicyIkeVersion
- type UpdateIkePolicyIkeVersionEnum
- type UpdateIkePolicyLocalIdType
- type UpdateIkePolicyLocalIdTypeEnum
- type UpdateIkePolicyPeerIdType
- type UpdateIkePolicyPeerIdTypeEnum
- type UpdateIkePolicyPhase1NegotiationMode
- type UpdateIkePolicyPhase1NegotiationModeEnum
- type UpdateIpsecPolicy
- type UpdateIpsecPolicyAuthenticationAlgorithm
- type UpdateIpsecPolicyAuthenticationAlgorithmEnum
- type UpdateIpsecPolicyEncapsulationMode
- type UpdateIpsecPolicyEncapsulationModeEnum
- type UpdateIpsecPolicyEncryptionAlgorithm
- type UpdateIpsecPolicyEncryptionAlgorithmEnum
- type UpdateIpsecPolicyTransformProtocol
- type UpdateIpsecPolicyTransformProtocolEnum
- type UpdateResponseVpnConnection
- type UpdateResponseVpnConnectionStyle
- type UpdateResponseVpnConnectionStyleEnum
- type UpdateResponseVpnGateway
- type UpdateResponseVpnGatewayAttachmentType
- type UpdateResponseVpnGatewayAttachmentTypeEnum
- type UpdateResponseVpnGatewayNetworkType
- type UpdateResponseVpnGatewayNetworkTypeEnum
- type UpdateVgwCertificateRequest
- type UpdateVgwCertificateResponse
- type UpdateVgwRequest
- type UpdateVgwRequestBody
- type UpdateVgwRequestBodyContent
- type UpdateVgwResponse
- type UpdateVpnConnectionRequest
- type UpdateVpnConnectionRequestBody
- type UpdateVpnConnectionRequestBodyContent
- type UpdateVpnConnectionResponse
- type VpnGatewayAvailabilityZones
- type VpnGatewayCertificate
- type VpnGatewayCertificateConfig
- type VpnGatewayCertificateRequestBody
- type VpnGatewayCertificateRequestBodyContent
- type VpnGatewayCertificateStatus
- type VpnGatewayCertificateStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityZones ¶
type AvailabilityZones struct { Basic *VpnGatewayAvailabilityZones `json:"basic,omitempty"` Professional1 *VpnGatewayAvailabilityZones `json:"professional1,omitempty"` Professional2 *VpnGatewayAvailabilityZones `json:"professional2,omitempty"` Gm *VpnGatewayAvailabilityZones `json:"gm,omitempty"` }
AvailabilityZones 可用区情况
func (AvailabilityZones) String ¶
func (o AvailabilityZones) String() string
type CaCertificate ¶
type CaCertificate struct { // 证书序列号 SerialNumber *string `json:"serial_number,omitempty"` // 签名算法 SignatureAlgorithm *string `json:"signature_algorithm,omitempty"` // 证书颁发者 Issuer *string `json:"issuer,omitempty"` // 证书主题 Subject *string `json:"subject,omitempty"` // 证书过期时间 ExpireTime *sdktime.SdkTime `json:"expire_time,omitempty"` // 是否能更新内容 IsUpdatable *bool `json:"is_updatable,omitempty"` }
CaCertificate 对端网关CA证书信息
func (CaCertificate) String ¶
func (o CaCertificate) String() string
type CaCertificateRequest ¶
type CaCertificateRequest struct { // 对端网关CA证书内容 Content *string `json:"content,omitempty"` }
CaCertificateRequest 对端网关CA证书
func (CaCertificateRequest) String ¶
func (o CaCertificateRequest) String() string
type ConnectionMonitorInfo ¶
type ConnectionMonitorInfo struct { // VPN连接监控ID Id *string `json:"id,omitempty"` Status *string `json:"status,omitempty"` // VPN连接监控对应的VPN连接ID VpnConnectionId *string `json:"vpn_connection_id,omitempty"` // 网关连通性,取值范围:gateway Type *string `json:"type,omitempty"` // VPN连接监控的源地址 SourceIp *string `json:"source_ip,omitempty"` // VPN连接监控的目的地址 DestinationIp *string `json:"destination_ip,omitempty"` // 预留字段,nqa使用的协议类型,目前使用默认值ICMP ProtoType *string `json:"proto_type,omitempty"` }
func (ConnectionMonitorInfo) String ¶
func (o ConnectionMonitorInfo) String() string
type CreateCgwRequest ¶
type CreateCgwRequest struct {
Body *CreateCgwRequestBody `json:"body,omitempty"`
}
CreateCgwRequest Request Object
func (CreateCgwRequest) String ¶
func (o CreateCgwRequest) String() string
type CreateCgwRequestBody ¶
type CreateCgwRequestBody struct {
CustomerGateway *CreateCgwRequestBodyContent `json:"customer_gateway"`
}
func (CreateCgwRequestBody) String ¶
func (o CreateCgwRequestBody) String() string
type CreateCgwRequestBodyContent ¶
type CreateCgwRequestBodyContent struct { // 网关名称 Name *string `json:"name,omitempty"` // 网关路由模式 RouteMode *CreateCgwRequestBodyContentRouteMode `json:"route_mode,omitempty"` // 网关的bgp asn号,仅当route_mode为bgp时需要,默认值为65000 BgpAsn *int64 `json:"bgp_asn,omitempty"` // 网关ip地址 Ip string `json:"ip"` CaCertificate *CaCertificateRequest `json:"ca_certificate,omitempty"` }
func (CreateCgwRequestBodyContent) String ¶
func (o CreateCgwRequestBodyContent) String() string
type CreateCgwRequestBodyContentRouteMode ¶
type CreateCgwRequestBodyContentRouteMode struct {
// contains filtered or unexported fields
}
func (CreateCgwRequestBodyContentRouteMode) MarshalJSON ¶
func (c CreateCgwRequestBodyContentRouteMode) MarshalJSON() ([]byte, error)
func (*CreateCgwRequestBodyContentRouteMode) UnmarshalJSON ¶
func (c *CreateCgwRequestBodyContentRouteMode) UnmarshalJSON(b []byte) error
func (CreateCgwRequestBodyContentRouteMode) Value ¶
func (c CreateCgwRequestBodyContentRouteMode) Value() string
type CreateCgwRequestBodyContentRouteModeEnum ¶
type CreateCgwRequestBodyContentRouteModeEnum struct { STATIC CreateCgwRequestBodyContentRouteMode BGP CreateCgwRequestBodyContentRouteMode }
func GetCreateCgwRequestBodyContentRouteModeEnum ¶
func GetCreateCgwRequestBodyContentRouteModeEnum() CreateCgwRequestBodyContentRouteModeEnum
type CreateCgwResponse ¶
type CreateCgwResponse struct { CustomerGateway *ResponseCustomerGateway `json:"customer_gateway,omitempty"` // 请求id RequestId *string `json:"request_id,omitempty"` HeaderResponseToken *string `json:"header-response-token,omitempty"` HttpStatusCode int `json:"-"` }
CreateCgwResponse Response Object
func (CreateCgwResponse) String ¶
func (o CreateCgwResponse) String() string
type CreateConnectionMonitorInfo ¶
type CreateConnectionMonitorInfo struct { // VPN连接监控ID Id *string `json:"id,omitempty"` // VPN连接监控对应的VPN连接ID VpnConnectionId *string `json:"vpn_connection_id,omitempty"` // 网关连通性,取值范围:gateway Type *string `json:"type,omitempty"` // VPN连接监控的源地址 SourceIp *string `json:"source_ip,omitempty"` // VPN连接监控的目的地址 DestinationIp *string `json:"destination_ip,omitempty"` // 预留字段,nqa使用的协议类型,目前使用默认值ICMP ProtoType *string `json:"proto_type,omitempty"` }
func (CreateConnectionMonitorInfo) String ¶
func (o CreateConnectionMonitorInfo) String() string
type CreateConnectionMonitorRequest ¶
type CreateConnectionMonitorRequest struct {
Body *CreateConnectionMonitorRequestBody `json:"body,omitempty"`
}
CreateConnectionMonitorRequest Request Object
func (CreateConnectionMonitorRequest) String ¶
func (o CreateConnectionMonitorRequest) String() string
type CreateConnectionMonitorRequestBody ¶
type CreateConnectionMonitorRequestBody struct {
ConnectionMonitor *CreateConnectionMonitorRequestBodyContent `json:"connection_monitor"`
}
func (CreateConnectionMonitorRequestBody) String ¶
func (o CreateConnectionMonitorRequestBody) String() string
type CreateConnectionMonitorRequestBodyContent ¶
type CreateConnectionMonitorRequestBodyContent struct { // VPN连接监控对应的VPN连接ID VpnConnectionId string `json:"vpn_connection_id"` }
CreateConnectionMonitorRequestBodyContent 创建连接监控请求体
func (CreateConnectionMonitorRequestBodyContent) String ¶
func (o CreateConnectionMonitorRequestBodyContent) String() 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 ¶
func (o CreateConnectionMonitorResponse) String() string
type CreateRequestEip ¶
type CreateRequestEip struct { // 功能说明:公网IP的唯一标识 Id *string `json:"id,omitempty"` // 功能说明:EIP的类型 取值范围:5_bgp(全动态BGP),5_sbgp(静态BGP) 华南-广州:5_bgp、5_sbgp 华东-上海一:5_bgp、5_sbgp 华东-上海二:5_bgp、5_sbgp 华北-北京一:5_bgp、5_sbgp 中国-香港:5_bgp 亚太-曼谷:5_bgp 亚太-新加坡:5_bgp 非洲-约翰内斯堡:5_bgp 西南-贵阳一:5_bgp、5_sbgp 华北-北京四:5_bgp、5_sbgp 拉美-圣地亚哥:5_bgp 拉美-圣保罗一:5_bgp 拉美-墨西哥城一:5_bgp 拉美-布宜诺斯艾利一:5_bgp 拉美-利马一:5_bgp 拉美-圣地亚哥二: 5_bgp 约束:必须是系统具体支持的类型。 Type *string `json:"type,omitempty"` // 功能说明:按流量计费还是按带宽计费 取值范围:bandwidth,traffic ChargeMode *CreateRequestEipChargeMode `json:"charge_mode,omitempty"` // 带宽大小Mbit/s。flavor为Basic时,取值不能大于100;flavor为Professional1时,取值不能大于300;flavor为Professional2时,取值不能大于1024 BandwidthSize *int32 `json:"bandwidth_size,omitempty"` // 带宽名称 BandwidthName *string `json:"bandwidth_name,omitempty"` }
func (CreateRequestEip) String ¶
func (o CreateRequestEip) String() string
type CreateRequestEipChargeMode ¶
type CreateRequestEipChargeMode struct {
// contains filtered or unexported fields
}
func (CreateRequestEipChargeMode) MarshalJSON ¶
func (c CreateRequestEipChargeMode) MarshalJSON() ([]byte, error)
func (*CreateRequestEipChargeMode) UnmarshalJSON ¶
func (c *CreateRequestEipChargeMode) UnmarshalJSON(b []byte) error
func (CreateRequestEipChargeMode) Value ¶
func (c CreateRequestEipChargeMode) Value() string
type CreateRequestEipChargeModeEnum ¶
type CreateRequestEipChargeModeEnum struct { BANDWIDTH CreateRequestEipChargeMode TRAFFIC CreateRequestEipChargeMode }
func GetCreateRequestEipChargeModeEnum ¶
func GetCreateRequestEipChargeModeEnum() CreateRequestEipChargeModeEnum
type CreateResponseVpnConnection ¶
type CreateResponseVpnConnection struct { // VPN连接ID Id *string `json:"id,omitempty"` // VPN连接名称 Name *string `json:"name,omitempty"` // VPN网关ID VgwId *string `json:"vgw_id,omitempty"` // VGW IP VgwIp *string `json:"vgw_ip,omitempty"` // 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式 Style *CreateResponseVpnConnectionStyle `json:"style,omitempty"` // 对端网关ID CgwId *string `json:"cgw_id,omitempty"` // 对端网段 PeerSubnets *[]string `json:"peer_subnets,omitempty"` // 本端隧道口地址 TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"` // 对端隧道口地址 TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"` // 开启NQA检测 EnableNqa *bool `json:"enable_nqa,omitempty"` // 策略模式的策略规则组 PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"` Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"` Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 更新时间 UpdatedAt *string `json:"updated_at,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 连接监控ID ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"` // 连接的HA角色 HaRole *string `json:"ha_role,omitempty"` }
func (CreateResponseVpnConnection) String ¶
func (o CreateResponseVpnConnection) String() 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 ¶
func (c CreateResponseVpnConnectionStyle) Value() string
type CreateResponseVpnConnectionStyleEnum ¶
type CreateResponseVpnConnectionStyleEnum struct { POLICY CreateResponseVpnConnectionStyle STATIC CreateResponseVpnConnectionStyle BGP CreateResponseVpnConnectionStyle }
func GetCreateResponseVpnConnectionStyleEnum ¶
func GetCreateResponseVpnConnectionStyleEnum() CreateResponseVpnConnectionStyleEnum
type CreateResponseVpnGateway ¶
type CreateResponseVpnGateway struct { // VPN网关ID Id *string `json:"id,omitempty"` // VPN网关名称 Name *string `json:"name,omitempty"` // 关联模式 AttachmentType *CreateResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"` // VPN网关所连接的ER实例的ID ErId *string `json:"er_id,omitempty"` // VPN网关所连接的VPC的ID VpcId *string `json:"vpc_id,omitempty"` // 本端子网 LocalSubnets *[]string `json:"local_subnets,omitempty"` // VPN网关所使用的VPC子网ID ConnectSubnet *string `json:"connect_subnet,omitempty"` // VPN网关北向类型,默认为公网(public) NetworkType *CreateResponseVpnGatewayNetworkType `json:"network_type,omitempty"` // VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值 AccessVpcId *string `json:"access_vpc_id,omitempty"` // VPN网关北向接入VPC中的接入子网ID AccessSubnetId *string `json:"access_subnet_id,omitempty"` // bgp所使用的asn号 BgpAsn *int64 `json:"bgp_asn,omitempty"` // VPN网关的规格类型 Flavor *string `json:"flavor,omitempty"` // 最大可创建的VPN连接数 ConnectionNumber *int32 `json:"connection_number,omitempty"` // 当前已经使用的VPN连接数 UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"` // 当前已经使用的VPN连接组个数 UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (CreateResponseVpnGateway) String ¶
func (o CreateResponseVpnGateway) String() string
type CreateResponseVpnGatewayAttachmentType ¶
type CreateResponseVpnGatewayAttachmentType struct {
// contains filtered or unexported fields
}
func (CreateResponseVpnGatewayAttachmentType) MarshalJSON ¶
func (c CreateResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)
func (*CreateResponseVpnGatewayAttachmentType) UnmarshalJSON ¶
func (c *CreateResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error
func (CreateResponseVpnGatewayAttachmentType) Value ¶
func (c CreateResponseVpnGatewayAttachmentType) Value() string
type CreateResponseVpnGatewayAttachmentTypeEnum ¶
type CreateResponseVpnGatewayAttachmentTypeEnum struct { VPC CreateResponseVpnGatewayAttachmentType ER CreateResponseVpnGatewayAttachmentType }
func GetCreateResponseVpnGatewayAttachmentTypeEnum ¶
func GetCreateResponseVpnGatewayAttachmentTypeEnum() CreateResponseVpnGatewayAttachmentTypeEnum
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 ¶
func (c CreateResponseVpnGatewayNetworkType) Value() string
type CreateResponseVpnGatewayNetworkTypeEnum ¶
type CreateResponseVpnGatewayNetworkTypeEnum struct { PUBLIC CreateResponseVpnGatewayNetworkType PRIVATE CreateResponseVpnGatewayNetworkType }
func GetCreateResponseVpnGatewayNetworkTypeEnum ¶
func GetCreateResponseVpnGatewayNetworkTypeEnum() CreateResponseVpnGatewayNetworkTypeEnum
type CreateVgwCertificateRequest ¶
type CreateVgwCertificateRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` Body *VpnGatewayCertificateRequestBody `json:"body,omitempty"` }
CreateVgwCertificateRequest Request Object
func (CreateVgwCertificateRequest) String ¶
func (o CreateVgwCertificateRequest) String() 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 ¶
func (o CreateVgwCertificateResponse) String() string
type CreateVgwRequest ¶
type CreateVgwRequest struct {
Body *CreateVgwRequestBody `json:"body,omitempty"`
}
CreateVgwRequest Request Object
func (CreateVgwRequest) String ¶
func (o CreateVgwRequest) String() string
type CreateVgwRequestBody ¶
type CreateVgwRequestBody struct {
VpnGateway *CreateVgwRequestBodyContent `json:"vpn_gateway"`
}
func (CreateVgwRequestBody) String ¶
func (o CreateVgwRequestBody) String() string
type CreateVgwRequestBodyContent ¶
type CreateVgwRequestBodyContent struct { // VPN网关名称 Name *string `json:"name,omitempty"` // 关联模式 AttachmentType *CreateVgwRequestBodyContentAttachmentType `json:"attachment_type,omitempty"` // VPN网关所连接的ER实例的ID,当attachment_type配置为\"er\"时必填,否则不填 ErId *string `json:"er_id,omitempty"` // VPN网关所连接的VPC的ID VpcId *string `json:"vpc_id,omitempty"` // 本端子网,当attachment_type配置为\"vpc\"时必填,否则不填 LocalSubnets *[]string `json:"local_subnets,omitempty"` // VPN网关所使用的VPC子网ID ConnectSubnet *string `json:"connect_subnet,omitempty"` // bgp所使用的asn号 BgpAsn *int64 `json:"bgp_asn,omitempty"` // VPN网关的规格类型,当attachment_type为er时不能填写Basic Flavor *CreateVgwRequestBodyContentFlavor `json:"flavor,omitempty"` // 不填写则采用默认可用区。如果需要指定可用区可以调用查询VPN网关可用区接口来选择 AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` MasterEip *CreateRequestEip `json:"master_eip,omitempty"` SlaveEip *CreateRequestEip `json:"slave_eip,omitempty"` Eip1 *CreateRequestEip `json:"eip1,omitempty"` Eip2 *CreateRequestEip `json:"eip2,omitempty"` // VPN网关北向类型,默认为公网(public) NetworkType *CreateVgwRequestBodyContentNetworkType `json:"network_type,omitempty"` // VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值 AccessVpcId *string `json:"access_vpc_id,omitempty"` // VPN网关北向接入VPC中的接入子网ID,在填写了access_vpc_id时必填 AccessSubnetId *string `json:"access_subnet_id,omitempty"` // ha模式 HaMode *CreateVgwRequestBodyContentHaMode `json:"ha_mode,omitempty"` }
func (CreateVgwRequestBodyContent) String ¶
func (o CreateVgwRequestBodyContent) String() string
type CreateVgwRequestBodyContentAttachmentType ¶
type CreateVgwRequestBodyContentAttachmentType struct {
// contains filtered or unexported fields
}
func (CreateVgwRequestBodyContentAttachmentType) MarshalJSON ¶
func (c CreateVgwRequestBodyContentAttachmentType) MarshalJSON() ([]byte, error)
func (*CreateVgwRequestBodyContentAttachmentType) UnmarshalJSON ¶
func (c *CreateVgwRequestBodyContentAttachmentType) UnmarshalJSON(b []byte) error
func (CreateVgwRequestBodyContentAttachmentType) Value ¶
func (c CreateVgwRequestBodyContentAttachmentType) Value() string
type CreateVgwRequestBodyContentAttachmentTypeEnum ¶
type CreateVgwRequestBodyContentAttachmentTypeEnum struct { VPC CreateVgwRequestBodyContentAttachmentType ER CreateVgwRequestBodyContentAttachmentType }
func GetCreateVgwRequestBodyContentAttachmentTypeEnum ¶
func GetCreateVgwRequestBodyContentAttachmentTypeEnum() CreateVgwRequestBodyContentAttachmentTypeEnum
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 ¶
func (c CreateVgwRequestBodyContentFlavor) Value() string
type CreateVgwRequestBodyContentFlavorEnum ¶
type CreateVgwRequestBodyContentFlavorEnum struct { BASIC CreateVgwRequestBodyContentFlavor PROFESSIONAL1 CreateVgwRequestBodyContentFlavor PROFESSIONAL2 CreateVgwRequestBodyContentFlavor }
func GetCreateVgwRequestBodyContentFlavorEnum ¶
func GetCreateVgwRequestBodyContentFlavorEnum() CreateVgwRequestBodyContentFlavorEnum
type CreateVgwRequestBodyContentHaMode ¶
type CreateVgwRequestBodyContentHaMode struct {
// contains filtered or unexported fields
}
func (CreateVgwRequestBodyContentHaMode) MarshalJSON ¶
func (c CreateVgwRequestBodyContentHaMode) MarshalJSON() ([]byte, error)
func (*CreateVgwRequestBodyContentHaMode) UnmarshalJSON ¶
func (c *CreateVgwRequestBodyContentHaMode) UnmarshalJSON(b []byte) error
func (CreateVgwRequestBodyContentHaMode) Value ¶
func (c CreateVgwRequestBodyContentHaMode) Value() string
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 ¶
func (c CreateVgwRequestBodyContentNetworkType) Value() string
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 ¶
func (o CreateVpnConnectionRequest) String() string
type CreateVpnConnectionRequestBody ¶
type CreateVpnConnectionRequestBody struct {
VpnConnection *CreateVpnConnectionRequestBodyContent `json:"vpn_connection"`
}
func (CreateVpnConnectionRequestBody) String ¶
func (o CreateVpnConnectionRequestBody) String() string
type CreateVpnConnectionRequestBodyContent ¶
type CreateVpnConnectionRequestBodyContent struct { // VPN连接名称 Name *string `json:"name,omitempty"` // VPN网关ID VgwId string `json:"vgw_id"` // VGW IP VgwIp string `json:"vgw_ip"` // 连接模式 允许范围[policy, static, bgp] policy: 策略模式 static: 静态路由模式 bgp: bgp路由模式 Style *CreateVpnConnectionRequestBodyContentStyle `json:"style,omitempty"` // 对端网关ID CgwId string `json:"cgw_id"` // 对端子网 PeerSubnets *[]string `json:"peer_subnets,omitempty"` // 本端隧道口地址 TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"` // 对端隧道口地址 TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"` // 开启NQA检测 EnableNqa *bool `json:"enable_nqa,omitempty"` // 预共享密钥,只能包含大写字母、小写字母、数字和特殊字符(~!@#$%^()-_+={ },./:;)且至少包含四种字符的三种 Psk *string `json:"psk,omitempty"` // 策略模式的策略规则组 PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"` Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"` Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"` // 连接的HA角色 HaRole *CreateVpnConnectionRequestBodyContentHaRole `json:"ha_role,omitempty"` }
func (CreateVpnConnectionRequestBodyContent) String ¶
func (o CreateVpnConnectionRequestBodyContent) String() string
type CreateVpnConnectionRequestBodyContentHaRole ¶
type CreateVpnConnectionRequestBodyContentHaRole struct {
// contains filtered or unexported fields
}
func (CreateVpnConnectionRequestBodyContentHaRole) MarshalJSON ¶
func (c CreateVpnConnectionRequestBodyContentHaRole) MarshalJSON() ([]byte, error)
func (*CreateVpnConnectionRequestBodyContentHaRole) UnmarshalJSON ¶
func (c *CreateVpnConnectionRequestBodyContentHaRole) UnmarshalJSON(b []byte) error
func (CreateVpnConnectionRequestBodyContentHaRole) Value ¶
func (c CreateVpnConnectionRequestBodyContentHaRole) Value() string
type CreateVpnConnectionRequestBodyContentHaRoleEnum ¶
type CreateVpnConnectionRequestBodyContentHaRoleEnum struct { MASTER CreateVpnConnectionRequestBodyContentHaRole SLAVE CreateVpnConnectionRequestBodyContentHaRole }
func GetCreateVpnConnectionRequestBodyContentHaRoleEnum ¶
func GetCreateVpnConnectionRequestBodyContentHaRoleEnum() CreateVpnConnectionRequestBodyContentHaRoleEnum
type CreateVpnConnectionRequestBodyContentStyle ¶
type CreateVpnConnectionRequestBodyContentStyle struct {
// contains filtered or unexported fields
}
func (CreateVpnConnectionRequestBodyContentStyle) MarshalJSON ¶
func (c CreateVpnConnectionRequestBodyContentStyle) MarshalJSON() ([]byte, error)
func (*CreateVpnConnectionRequestBodyContentStyle) UnmarshalJSON ¶
func (c *CreateVpnConnectionRequestBodyContentStyle) UnmarshalJSON(b []byte) error
func (CreateVpnConnectionRequestBodyContentStyle) Value ¶
func (c CreateVpnConnectionRequestBodyContentStyle) Value() string
type CreateVpnConnectionRequestBodyContentStyleEnum ¶
type CreateVpnConnectionRequestBodyContentStyleEnum struct { POLICY CreateVpnConnectionRequestBodyContentStyle STATIC CreateVpnConnectionRequestBodyContentStyle BGP CreateVpnConnectionRequestBodyContentStyle }
func GetCreateVpnConnectionRequestBodyContentStyleEnum ¶
func GetCreateVpnConnectionRequestBodyContentStyleEnum() CreateVpnConnectionRequestBodyContentStyleEnum
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 ¶
func (o CreateVpnConnectionResponse) String() string
type DeleteCgwRequest ¶
type DeleteCgwRequest struct { // 对端网关ID CustomerGatewayId string `json:"customer_gateway_id"` }
DeleteCgwRequest Request Object
func (DeleteCgwRequest) String ¶
func (o DeleteCgwRequest) String() string
type DeleteCgwResponse ¶
type DeleteCgwResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteCgwResponse Response Object
func (DeleteCgwResponse) String ¶
func (o DeleteCgwResponse) String() string
type DeleteConnectionMonitorRequest ¶
type DeleteConnectionMonitorRequest struct { // VPN连接监控的ID ConnectionMonitorId string `json:"connection_monitor_id"` }
DeleteConnectionMonitorRequest Request Object
func (DeleteConnectionMonitorRequest) String ¶
func (o DeleteConnectionMonitorRequest) String() string
type DeleteConnectionMonitorResponse ¶
type DeleteConnectionMonitorResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteConnectionMonitorResponse Response Object
func (DeleteConnectionMonitorResponse) String ¶
func (o DeleteConnectionMonitorResponse) String() string
type DeleteVgwRequest ¶
type DeleteVgwRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` }
DeleteVgwRequest Request Object
func (DeleteVgwRequest) String ¶
func (o DeleteVgwRequest) String() string
type DeleteVgwResponse ¶
type DeleteVgwResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteVgwResponse Response Object
func (DeleteVgwResponse) String ¶
func (o DeleteVgwResponse) String() string
type DeleteVpnConnectionRequest ¶
type DeleteVpnConnectionRequest struct { // vpn连接ID VpnConnectionId string `json:"vpn_connection_id"` }
DeleteVpnConnectionRequest Request Object
func (DeleteVpnConnectionRequest) String ¶
func (o DeleteVpnConnectionRequest) String() string
type DeleteVpnConnectionResponse ¶
type DeleteVpnConnectionResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteVpnConnectionResponse Response Object
func (DeleteVpnConnectionResponse) String ¶
func (o DeleteVpnConnectionResponse) String() string
type Dpd ¶
type DpdMsg ¶
type DpdMsg struct {
// contains filtered or unexported fields
}
func (DpdMsg) MarshalJSON ¶
func (*DpdMsg) UnmarshalJSON ¶
type DpdMsgEnum ¶
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"` }
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 ¶
func (c IkePolicyAuthenticationAlgorithm) Value() string
type IkePolicyAuthenticationAlgorithmEnum ¶
type IkePolicyAuthenticationAlgorithmEnum struct { SHA1 IkePolicyAuthenticationAlgorithm MD5 IkePolicyAuthenticationAlgorithm SHA2_256 IkePolicyAuthenticationAlgorithm SHA2_384 IkePolicyAuthenticationAlgorithm SHA2_512 IkePolicyAuthenticationAlgorithm }
func GetIkePolicyAuthenticationAlgorithmEnum ¶
func GetIkePolicyAuthenticationAlgorithmEnum() IkePolicyAuthenticationAlgorithmEnum
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 ¶
func (c IkePolicyAuthenticationMethod) Value() string
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 ¶
func (c IkePolicyEncryptionAlgorithm) Value() string
type IkePolicyEncryptionAlgorithmEnum ¶
type IkePolicyEncryptionAlgorithmEnum struct { E_3DES IkePolicyEncryptionAlgorithm AES_128 IkePolicyEncryptionAlgorithm AES_192 IkePolicyEncryptionAlgorithm AES_256 IkePolicyEncryptionAlgorithm AES_128_GCM_16 IkePolicyEncryptionAlgorithm AES_256_GCM_16 IkePolicyEncryptionAlgorithm AES_128_GCM_128 IkePolicyEncryptionAlgorithm AES_256_GCM_128 IkePolicyEncryptionAlgorithm }
func GetIkePolicyEncryptionAlgorithmEnum ¶
func GetIkePolicyEncryptionAlgorithmEnum() IkePolicyEncryptionAlgorithmEnum
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 ¶
func (c IkePolicyPhase1NegotiationMode) Value() string
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 ¶
func (c IpsecPolicyAuthenticationAlgorithm) Value() string
type IpsecPolicyAuthenticationAlgorithmEnum ¶
type IpsecPolicyAuthenticationAlgorithmEnum struct { SHA1 IpsecPolicyAuthenticationAlgorithm MD5 IpsecPolicyAuthenticationAlgorithm SHA2_256 IpsecPolicyAuthenticationAlgorithm SHA2_384 IpsecPolicyAuthenticationAlgorithm SHA2_512 IpsecPolicyAuthenticationAlgorithm }
func GetIpsecPolicyAuthenticationAlgorithmEnum ¶
func GetIpsecPolicyAuthenticationAlgorithmEnum() IpsecPolicyAuthenticationAlgorithmEnum
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 ¶
func (c IpsecPolicyEncapsulationMode) Value() string
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 ¶
func (c IpsecPolicyEncryptionAlgorithm) Value() string
type IpsecPolicyEncryptionAlgorithmEnum ¶
type IpsecPolicyEncryptionAlgorithmEnum struct { E_3DES IpsecPolicyEncryptionAlgorithm AES_128 IpsecPolicyEncryptionAlgorithm AES_192 IpsecPolicyEncryptionAlgorithm AES_256 IpsecPolicyEncryptionAlgorithm AES_128_GCM_16 IpsecPolicyEncryptionAlgorithm AES_256_GCM_16 IpsecPolicyEncryptionAlgorithm AES_128_GCM_128 IpsecPolicyEncryptionAlgorithm AES_256_GCM_128 IpsecPolicyEncryptionAlgorithm }
func GetIpsecPolicyEncryptionAlgorithmEnum ¶
func GetIpsecPolicyEncryptionAlgorithmEnum() IpsecPolicyEncryptionAlgorithmEnum
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 ¶
func (c IpsecPolicyTransformProtocol) Value() string
type IpsecPolicyTransformProtocolEnum ¶
type IpsecPolicyTransformProtocolEnum struct {
ESP IpsecPolicyTransformProtocol
}
func GetIpsecPolicyTransformProtocolEnum ¶
func GetIpsecPolicyTransformProtocolEnum() IpsecPolicyTransformProtocolEnum
type ListAvailabilityZonesRequest ¶
type ListAvailabilityZonesRequest struct { }
ListAvailabilityZonesRequest Request Object
func (ListAvailabilityZonesRequest) String ¶
func (o ListAvailabilityZonesRequest) String() 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 ¶
func (o ListAvailabilityZonesResponse) String() 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 ¶
func (o ListConnectionMonitorsRequest) String() 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 ¶
func (o ListConnectionMonitorsResponse) String() string
type ListVgwsRequest ¶
type ListVgwsRequest struct { // vgw ID VgwId *string `json:"vgw_id,omitempty"` // 企业项目id EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"` }
ListVgwsRequest Request Object
func (ListVgwsRequest) String ¶
func (o ListVgwsRequest) String() string
type ListVgwsResponse ¶
type ListVgwsResponse struct { // 网关信息 VpnGateways *[]ResponseVpnGateway `json:"vpn_gateways,omitempty"` // 请求ID RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
ListVgwsResponse Response Object
func (ListVgwsResponse) String ¶
func (o ListVgwsResponse) String() string
type ListVpnConnectionsRequest ¶
type ListVpnConnectionsRequest struct { // VPN ID VpnId *string `json:"vpn_id,omitempty"` // Eip ID EipId *string `json:"eip_id,omitempty"` // VGW IP VgwIp *string `json:"vgw_ip,omitempty"` // vgw ID VgwId *string `json:"vgw_id,omitempty"` // 企业项目id EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"` // 分页查询时每页返回的记录数量 Limit *int32 `json:"limit,omitempty"` // 上一页最后一条记录的id,为空时为查询第一页。使用说明:必须与limit一起使用。 Marker *string `json:"marker,omitempty"` }
ListVpnConnectionsRequest Request Object
func (ListVpnConnectionsRequest) String ¶
func (o ListVpnConnectionsRequest) String() string
type ListVpnConnectionsResponse ¶
type ListVpnConnectionsResponse struct { VpnConnections *[]ResponseVpnConnection `json:"vpn_connections,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` // 请求ID RequestId *string `json:"request_id,omitempty"` // 租户下连接总数 TotalCount *int64 `json:"total_count,omitempty"` HeaderResponseToken *string `json:"header-response-token,omitempty"` HttpStatusCode int `json:"-"` }
ListVpnConnectionsResponse Response Object
func (ListVpnConnectionsResponse) String ¶
func (o ListVpnConnectionsResponse) String() string
type PageInfo ¶
type PageInfo struct { // 下一页的marker,值为上一次消息的最后一个id,为空时为查询第一页 NextMarker *string `json:"next_marker,omitempty"` // 当前列表中资源数量 CurrentCount *int32 `json:"current_count,omitempty"` }
PageInfo 分页查询页的信息
type PolicyRule ¶
type PolicyRule struct { // 规则ID RuleIndex *int32 `json:"rule_index,omitempty"` // 源地址网段 Source *string `json:"source,omitempty"` // 目的地址网段 Destination *[]string `json:"destination,omitempty"` }
func (PolicyRule) String ¶
func (o PolicyRule) String() string
type Quota ¶
type ResponseCustomerGateway ¶
type ResponseCustomerGateway struct { // 网关的ID Id *string `json:"id,omitempty"` // 网关名称 Name *string `json:"name,omitempty"` // 网关路由模式 RouteMode *ResponseCustomerGatewayRouteMode `json:"route_mode,omitempty"` // 网关的bgp asn号 BgpAsn *int64 `json:"bgp_asn,omitempty"` // 网关ip地址 Ip *string `json:"ip,omitempty"` CaCertificate *CaCertificate `json:"ca_certificate,omitempty"` // 创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` }
func (ResponseCustomerGateway) String ¶
func (o ResponseCustomerGateway) String() string
type ResponseCustomerGatewayRouteMode ¶
type ResponseCustomerGatewayRouteMode struct {
// contains filtered or unexported fields
}
func (ResponseCustomerGatewayRouteMode) MarshalJSON ¶
func (c ResponseCustomerGatewayRouteMode) MarshalJSON() ([]byte, error)
func (*ResponseCustomerGatewayRouteMode) UnmarshalJSON ¶
func (c *ResponseCustomerGatewayRouteMode) UnmarshalJSON(b []byte) error
func (ResponseCustomerGatewayRouteMode) Value ¶
func (c ResponseCustomerGatewayRouteMode) Value() string
type ResponseCustomerGatewayRouteModeEnum ¶
type ResponseCustomerGatewayRouteModeEnum struct { STATIC ResponseCustomerGatewayRouteMode BGP ResponseCustomerGatewayRouteMode }
func GetResponseCustomerGatewayRouteModeEnum ¶
func GetResponseCustomerGatewayRouteModeEnum() ResponseCustomerGatewayRouteModeEnum
type ResponseEip ¶
type ResponseEip struct { // 功能说明:公网IP的唯一标识 Id *string `json:"id,omitempty"` // 功能说明: 公网IP版本号 IpVersion *int32 `json:"ip_version,omitempty"` // 功能说明:公网IP的订单信息 约束:包周期才会有订单信息,按需资源此字段为空 IpBillingInfo *string `json:"ip_billing_info,omitempty"` // 功能说明:EIP的类型 取值范围:5_bgp(全动态BGP),5_sbgp(静态BGP) 华南-广州:5_bgp、5_sbgp 华东-上海一:5_bgp、5_sbgp 华东-上海二:5_bgp、5_sbgp 华北-北京一:5_bgp、5_sbgp 中国-香港:5_bgp 亚太-曼谷:5_bgp 亚太-新加坡:5_bgp 非洲-约翰内斯堡:5_bgp 西南-贵阳一:5_bgp、5_sbgp 华北-北京四:5_bgp、5_sbgp 拉美-圣地亚哥:5_bgp 拉美-圣保罗一:5_bgp 拉美-墨西哥城一:5_bgp 拉美-布宜诺斯艾利一:5_bgp 拉美-利马一:5_bgp 拉美-圣地亚哥二: 5_bgp 约束:必须是系统具体支持的类型。 Type *string `json:"type,omitempty"` // 功能说明: 公网IPv4地址 IpAddress *string `json:"ip_address,omitempty"` // 功能说明:按流量计费还是按带宽计费 取值范围: bandwidth:按带宽计费 traffic:按流量计费 95peak_plus:按增强型95计费 ChargeMode *ResponseEipChargeMode `json:"charge_mode,omitempty"` // 功能说明:带宽ID BandwidthId *string `json:"bandwidth_id,omitempty"` // 带宽大小Mbit/s,flavor为V300时,取值不能大于300,flavor为V1G时,取值不能大于1024 BandwidthSize *int32 `json:"bandwidth_size,omitempty"` // 带宽名称 BandwidthName *string `json:"bandwidth_name,omitempty"` // 带宽订单信息 BandwidthBillingInfo *string `json:"bandwidth_billing_info,omitempty"` }
func (ResponseEip) String ¶
func (o ResponseEip) String() string
type ResponseEipChargeMode ¶
type ResponseEipChargeMode struct {
// contains filtered or unexported fields
}
func (ResponseEipChargeMode) MarshalJSON ¶
func (c ResponseEipChargeMode) MarshalJSON() ([]byte, error)
func (*ResponseEipChargeMode) UnmarshalJSON ¶
func (c *ResponseEipChargeMode) UnmarshalJSON(b []byte) error
func (ResponseEipChargeMode) Value ¶
func (c ResponseEipChargeMode) Value() string
type ResponseEipChargeModeEnum ¶
type ResponseEipChargeModeEnum struct { BANDWIDTH ResponseEipChargeMode TRAFFIC ResponseEipChargeMode E_95PEAK_PLUS ResponseEipChargeMode }
func GetResponseEipChargeModeEnum ¶
func GetResponseEipChargeModeEnum() ResponseEipChargeModeEnum
type ResponseVpnConnection ¶
type ResponseVpnConnection struct { // VPN连接ID Id *string `json:"id,omitempty"` // VPN连接名称 Name *string `json:"name,omitempty"` // VPN连接状态 Status *string `json:"status,omitempty"` // VPN网关ID VgwId *string `json:"vgw_id,omitempty"` // VGW IP VgwIp *string `json:"vgw_ip,omitempty"` // 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式 Style *ResponseVpnConnectionStyle `json:"style,omitempty"` // 对端网关ID CgwId *string `json:"cgw_id,omitempty"` // 对端网段 PeerSubnets *[]string `json:"peer_subnets,omitempty"` // 本端隧道口地址 TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"` // 对端隧道口地址 TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"` // 开启NQA检测 EnableNqa *bool `json:"enable_nqa,omitempty"` // 策略模式的策略规则组 PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"` Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"` Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 更新时间 UpdatedAt *string `json:"updated_at,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 连接监控ID ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"` // 连接的HA角色 HaRole *string `json:"ha_role,omitempty"` }
func (ResponseVpnConnection) String ¶
func (o ResponseVpnConnection) String() string
type ResponseVpnConnectionStyle ¶
type ResponseVpnConnectionStyle struct {
// contains filtered or unexported fields
}
func (ResponseVpnConnectionStyle) MarshalJSON ¶
func (c ResponseVpnConnectionStyle) MarshalJSON() ([]byte, error)
func (*ResponseVpnConnectionStyle) UnmarshalJSON ¶
func (c *ResponseVpnConnectionStyle) UnmarshalJSON(b []byte) error
func (ResponseVpnConnectionStyle) Value ¶
func (c ResponseVpnConnectionStyle) Value() string
type ResponseVpnConnectionStyleEnum ¶
type ResponseVpnConnectionStyleEnum struct { POLICY ResponseVpnConnectionStyle STATIC ResponseVpnConnectionStyle BGP ResponseVpnConnectionStyle }
func GetResponseVpnConnectionStyleEnum ¶
func GetResponseVpnConnectionStyleEnum() ResponseVpnConnectionStyleEnum
type ResponseVpnGateway ¶
type ResponseVpnGateway struct { // VPN网关ID Id *string `json:"id,omitempty"` // VPN网关名称 Name *string `json:"name,omitempty"` // VPN网关状态 Status *string `json:"status,omitempty"` // 关联模式 AttachmentType *ResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"` CertificateId *string `json:"certificate_id,omitempty"` // VPN网关所连接的ER实例的ID ErId *string `json:"er_id,omitempty"` // VPN网关所连接的VPC的ID VpcId *string `json:"vpc_id,omitempty"` // 本端子网 LocalSubnets *[]string `json:"local_subnets,omitempty"` // VPN网关所使用的VPC子网ID ConnectSubnet *string `json:"connect_subnet,omitempty"` // VPN网关北向类型,默认为公网(public) NetworkType *ResponseVpnGatewayNetworkType `json:"network_type,omitempty"` // VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值 AccessVpcId *string `json:"access_vpc_id,omitempty"` // VPN网关北向接入VPC中的接入子网ID AccessSubnetId *string `json:"access_subnet_id,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 AccessPrivateIps *[]string `json:"access_private_ips,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP AccessPrivateIp2 *string `json:"access_private_ip_2,omitempty"` // bgp所使用的asn号 BgpAsn *int64 `json:"bgp_asn,omitempty"` // VPN网关的规格类型 Flavor *string `json:"flavor,omitempty"` // 可用区列表 AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"` // 最大可创建的VPN连接数 ConnectionNumber *int32 `json:"connection_number,omitempty"` // 当前已经使用的VPN连接数 UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"` // 当前已经使用的VPN连接组个数 UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // ha模式 HaMode *string `json:"ha_mode,omitempty"` MasterEip *ResponseEip `json:"master_eip,omitempty"` SlaveEip *ResponseEip `json:"slave_eip,omitempty"` Eip1 *ResponseEip `json:"eip1,omitempty"` Eip2 *ResponseEip `json:"eip2,omitempty"` // 创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` }
func (ResponseVpnGateway) String ¶
func (o ResponseVpnGateway) String() string
type ResponseVpnGatewayAttachmentType ¶
type ResponseVpnGatewayAttachmentType struct {
// contains filtered or unexported fields
}
func (ResponseVpnGatewayAttachmentType) MarshalJSON ¶
func (c ResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)
func (*ResponseVpnGatewayAttachmentType) UnmarshalJSON ¶
func (c *ResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error
func (ResponseVpnGatewayAttachmentType) Value ¶
func (c ResponseVpnGatewayAttachmentType) Value() string
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 ¶
func (c ResponseVpnGatewayNetworkType) Value() string
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 ¶
func (o ShowConnectionMonitorRequest) String() 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 ¶
func (o ShowConnectionMonitorResponse) String() string
type ShowQuotasInfoRequest ¶
type ShowQuotasInfoRequest struct { }
ShowQuotasInfoRequest Request Object
func (ShowQuotasInfoRequest) String ¶
func (o ShowQuotasInfoRequest) String() string
type ShowQuotasInfoResponse ¶
type ShowQuotasInfoResponse struct { Quotas *Quotas `json:"quotas,omitempty"` // 请求id RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
ShowQuotasInfoResponse Response Object
func (ShowQuotasInfoResponse) String ¶
func (o ShowQuotasInfoResponse) String() string
type ShowVgwRequest ¶
type ShowVgwRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` }
ShowVgwRequest Request Object
func (ShowVgwRequest) String ¶
func (o ShowVgwRequest) String() string
type ShowVgwResponse ¶
type ShowVgwResponse struct { VpnGateway *ResponseVpnGateway `json:"vpn_gateway,omitempty"` // 请求ID RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
ShowVgwResponse Response Object
func (ShowVgwResponse) String ¶
func (o ShowVgwResponse) String() string
type ShowVpnConnectionRequest ¶
type ShowVpnConnectionRequest struct { // vpn连接ID VpnConnectionId string `json:"vpn_connection_id"` }
ShowVpnConnectionRequest Request Object
func (ShowVpnConnectionRequest) String ¶
func (o ShowVpnConnectionRequest) String() string
type ShowVpnConnectionResponse ¶
type ShowVpnConnectionResponse struct { VpnConnection *ResponseVpnConnection `json:"vpn_connection,omitempty"` // 请求ID RequestId *string `json:"request_id,omitempty"` HeaderResponseToken *string `json:"header-response-token,omitempty"` HttpStatusCode int `json:"-"` }
ShowVpnConnectionResponse Response Object
func (ShowVpnConnectionResponse) String ¶
func (o ShowVpnConnectionResponse) String() string
type ShowVpnGatewayCertificateRequest ¶
type ShowVpnGatewayCertificateRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` }
ShowVpnGatewayCertificateRequest Request Object
func (ShowVpnGatewayCertificateRequest) String ¶
func (o ShowVpnGatewayCertificateRequest) String() 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 ¶
func (o ShowVpnGatewayCertificateResponse) 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"` }
func (UpdateCgwRequestBodyContent) String ¶
func (o UpdateCgwRequestBodyContent) String() string
type UpdateCgwResponse ¶
type UpdateCgwResponse struct { CustomerGateway *ResponseCustomerGateway `json:"customer_gateway,omitempty"` // 请求id RequestId *string `json:"request_id,omitempty"` HttpStatusCode int `json:"-"` }
UpdateCgwResponse Response Object
func (UpdateCgwResponse) String ¶
func (o UpdateCgwResponse) String() string
type UpdateDpd ¶
type UpdateDpd struct { // DPD检测间隔时长 Interval *int32 `json:"interval,omitempty"` // DPD检测间隔超时时间 Timeout *int32 `json:"timeout,omitempty"` // DPD检测报文格式 Msg *UpdateDpdMsg `json:"msg,omitempty"` }
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 ¶
func (c UpdateIkePolicyAuthenticationAlgorithm) Value() string
type UpdateIkePolicyAuthenticationAlgorithmEnum ¶
type UpdateIkePolicyAuthenticationAlgorithmEnum struct { SHA1 UpdateIkePolicyAuthenticationAlgorithm MD5 UpdateIkePolicyAuthenticationAlgorithm SHA2_256 UpdateIkePolicyAuthenticationAlgorithm SHA2_384 UpdateIkePolicyAuthenticationAlgorithm SHA2_512 UpdateIkePolicyAuthenticationAlgorithm }
func GetUpdateIkePolicyAuthenticationAlgorithmEnum ¶
func GetUpdateIkePolicyAuthenticationAlgorithmEnum() UpdateIkePolicyAuthenticationAlgorithmEnum
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 ¶
func (c UpdateIkePolicyEncryptionAlgorithm) Value() string
type UpdateIkePolicyEncryptionAlgorithmEnum ¶
type UpdateIkePolicyEncryptionAlgorithmEnum struct { E_3DES UpdateIkePolicyEncryptionAlgorithm AES_128 UpdateIkePolicyEncryptionAlgorithm AES_192 UpdateIkePolicyEncryptionAlgorithm AES_256 UpdateIkePolicyEncryptionAlgorithm AES_128_GCM_16 UpdateIkePolicyEncryptionAlgorithm AES_256_GCM_16 UpdateIkePolicyEncryptionAlgorithm AES_128_GCM_128 UpdateIkePolicyEncryptionAlgorithm AES_256_GCM_128 UpdateIkePolicyEncryptionAlgorithm }
func GetUpdateIkePolicyEncryptionAlgorithmEnum ¶
func GetUpdateIkePolicyEncryptionAlgorithmEnum() UpdateIkePolicyEncryptionAlgorithmEnum
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 ¶
func (c UpdateIkePolicyIkeVersion) Value() string
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 ¶
func (c UpdateIkePolicyLocalIdType) Value() string
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 ¶
func (c UpdateIkePolicyPeerIdType) Value() string
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 ¶
func (c UpdateIkePolicyPhase1NegotiationMode) Value() string
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 (c UpdateIpsecPolicyAuthenticationAlgorithm) MarshalJSON() ([]byte, error)
func (*UpdateIpsecPolicyAuthenticationAlgorithm) UnmarshalJSON ¶
func (c *UpdateIpsecPolicyAuthenticationAlgorithm) UnmarshalJSON(b []byte) error
func (UpdateIpsecPolicyAuthenticationAlgorithm) Value ¶
func (c UpdateIpsecPolicyAuthenticationAlgorithm) Value() string
type UpdateIpsecPolicyAuthenticationAlgorithmEnum ¶
type UpdateIpsecPolicyAuthenticationAlgorithmEnum struct { SHA1 UpdateIpsecPolicyAuthenticationAlgorithm MD5 UpdateIpsecPolicyAuthenticationAlgorithm SHA2_256 UpdateIpsecPolicyAuthenticationAlgorithm SHA2_384 UpdateIpsecPolicyAuthenticationAlgorithm SHA2_512 UpdateIpsecPolicyAuthenticationAlgorithm }
func GetUpdateIpsecPolicyAuthenticationAlgorithmEnum ¶
func GetUpdateIpsecPolicyAuthenticationAlgorithmEnum() UpdateIpsecPolicyAuthenticationAlgorithmEnum
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 ¶
func (c UpdateIpsecPolicyEncapsulationMode) Value() string
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 ¶
func (c UpdateIpsecPolicyEncryptionAlgorithm) Value() string
type UpdateIpsecPolicyEncryptionAlgorithmEnum ¶
type UpdateIpsecPolicyEncryptionAlgorithmEnum struct { E_3DES UpdateIpsecPolicyEncryptionAlgorithm AES_128 UpdateIpsecPolicyEncryptionAlgorithm AES_192 UpdateIpsecPolicyEncryptionAlgorithm AES_256 UpdateIpsecPolicyEncryptionAlgorithm AES_128_GCM_16 UpdateIpsecPolicyEncryptionAlgorithm AES_256_GCM_16 UpdateIpsecPolicyEncryptionAlgorithm AES_128_GCM_128 UpdateIpsecPolicyEncryptionAlgorithm AES_256_GCM_128 UpdateIpsecPolicyEncryptionAlgorithm }
func GetUpdateIpsecPolicyEncryptionAlgorithmEnum ¶
func GetUpdateIpsecPolicyEncryptionAlgorithmEnum() UpdateIpsecPolicyEncryptionAlgorithmEnum
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 ¶
func (c UpdateIpsecPolicyTransformProtocol) Value() string
type UpdateIpsecPolicyTransformProtocolEnum ¶
type UpdateIpsecPolicyTransformProtocolEnum struct {
ESP UpdateIpsecPolicyTransformProtocol
}
func GetUpdateIpsecPolicyTransformProtocolEnum ¶
func GetUpdateIpsecPolicyTransformProtocolEnum() UpdateIpsecPolicyTransformProtocolEnum
type UpdateResponseVpnConnection ¶
type UpdateResponseVpnConnection struct { // VPN连接ID Id *string `json:"id,omitempty"` // VPN连接名称 Name *string `json:"name,omitempty"` // VPN网关ID VgwId *string `json:"vgw_id,omitempty"` // VGW IP VgwIp *string `json:"vgw_ip,omitempty"` // 连接模式 允许范围[POLICY, STATIC, BGP] POLICY: 策略模式 STATIC: 静态路由模式 BGP: bgp路由模式 Style *UpdateResponseVpnConnectionStyle `json:"style,omitempty"` // 对端网关ID CgwId *string `json:"cgw_id,omitempty"` // 对端网段 PeerSubnets *[]string `json:"peer_subnets,omitempty"` // 本端隧道口地址 TunnelLocalAddress *string `json:"tunnel_local_address,omitempty"` // 对端隧道口地址 TunnelPeerAddress *string `json:"tunnel_peer_address,omitempty"` // 开启NQA检测 EnableNqa *bool `json:"enable_nqa,omitempty"` // 策略模式的策略规则组 PolicyRules *[]PolicyRule `json:"policy_rules,omitempty"` Ikepolicy *IkePolicy `json:"ikepolicy,omitempty"` Ipsecpolicy *IpsecPolicy `json:"ipsecpolicy,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 更新时间 UpdatedAt *string `json:"updated_at,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // 连接监控ID ConnectionMonitorId *string `json:"connection_monitor_id,omitempty"` // 连接的HA角色 HaRole *string `json:"ha_role,omitempty"` }
func (UpdateResponseVpnConnection) String ¶
func (o UpdateResponseVpnConnection) String() 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 ¶
func (c UpdateResponseVpnConnectionStyle) Value() string
type UpdateResponseVpnConnectionStyleEnum ¶
type UpdateResponseVpnConnectionStyleEnum struct { POLICY UpdateResponseVpnConnectionStyle STATIC UpdateResponseVpnConnectionStyle BGP UpdateResponseVpnConnectionStyle }
func GetUpdateResponseVpnConnectionStyleEnum ¶
func GetUpdateResponseVpnConnectionStyleEnum() UpdateResponseVpnConnectionStyleEnum
type UpdateResponseVpnGateway ¶
type UpdateResponseVpnGateway struct { // VPN网关ID Id *string `json:"id,omitempty"` // VPN网关名称 Name *string `json:"name,omitempty"` // 关联模式 AttachmentType *UpdateResponseVpnGatewayAttachmentType `json:"attachment_type,omitempty"` // VPN网关所连接的ER实例的ID ErId *string `json:"er_id,omitempty"` // VPN网关所连接的VPC的ID VpcId *string `json:"vpc_id,omitempty"` // 本端子网 LocalSubnets *[]string `json:"local_subnets,omitempty"` // VPN网关所使用的VPC子网ID ConnectSubnet *string `json:"connect_subnet,omitempty"` // VPN网关北向类型,默认为公网(public) NetworkType *UpdateResponseVpnGatewayNetworkType `json:"network_type,omitempty"` // VPN网关北向接入VPC ID,不填时默认使用vpc_id字段的值 AccessVpcId *string `json:"access_vpc_id,omitempty"` // VPN网关北向接入VPC中的接入子网ID AccessSubnetId *string `json:"access_subnet_id,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值 AccessPrivateIps *[]string `json:"access_private_ips,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表主worker的私网IP AccessPrivateIp1 *string `json:"access_private_ip_1,omitempty"` // VPN网关北向接入私网IP列表,当VPN网关的北向类型是私网(private)时有值,主备模式代表备worker的私网IP AccessPrivateIp2 *string `json:"access_private_ip_2,omitempty"` // bgp所使用的asn号 BgpAsn *int64 `json:"bgp_asn,omitempty"` // VPN网关的规格类型 Flavor *string `json:"flavor,omitempty"` // 可用区列表 AvailabilityZoneIds *[]string `json:"availability_zone_ids,omitempty"` // 最大可创建的VPN连接数 ConnectionNumber *int32 `json:"connection_number,omitempty"` // 当前已经使用的VPN连接数 UsedConnectionNumber *int32 `json:"used_connection_number,omitempty"` // 当前已经使用的VPN连接组个数 UsedConnectionGroup *int32 `json:"used_connection_group,omitempty"` // 企业项目ID EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` // ha模式 HaMode *string `json:"ha_mode,omitempty"` MasterEip *ResponseEip `json:"master_eip,omitempty"` SlaveEip *ResponseEip `json:"slave_eip,omitempty"` Eip1 *ResponseEip `json:"eip1,omitempty"` Eip2 *ResponseEip `json:"eip2,omitempty"` // 创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` }
func (UpdateResponseVpnGateway) String ¶
func (o UpdateResponseVpnGateway) String() string
type UpdateResponseVpnGatewayAttachmentType ¶
type UpdateResponseVpnGatewayAttachmentType struct {
// contains filtered or unexported fields
}
func (UpdateResponseVpnGatewayAttachmentType) MarshalJSON ¶
func (c UpdateResponseVpnGatewayAttachmentType) MarshalJSON() ([]byte, error)
func (*UpdateResponseVpnGatewayAttachmentType) UnmarshalJSON ¶
func (c *UpdateResponseVpnGatewayAttachmentType) UnmarshalJSON(b []byte) error
func (UpdateResponseVpnGatewayAttachmentType) Value ¶
func (c UpdateResponseVpnGatewayAttachmentType) Value() string
type UpdateResponseVpnGatewayAttachmentTypeEnum ¶
type UpdateResponseVpnGatewayAttachmentTypeEnum struct { VPC UpdateResponseVpnGatewayAttachmentType ER UpdateResponseVpnGatewayAttachmentType }
func GetUpdateResponseVpnGatewayAttachmentTypeEnum ¶
func GetUpdateResponseVpnGatewayAttachmentTypeEnum() UpdateResponseVpnGatewayAttachmentTypeEnum
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 ¶
func (c UpdateResponseVpnGatewayNetworkType) Value() string
type UpdateResponseVpnGatewayNetworkTypeEnum ¶
type UpdateResponseVpnGatewayNetworkTypeEnum struct { PUBLIC UpdateResponseVpnGatewayNetworkType PRIVATE UpdateResponseVpnGatewayNetworkType }
func GetUpdateResponseVpnGatewayNetworkTypeEnum ¶
func GetUpdateResponseVpnGatewayNetworkTypeEnum() UpdateResponseVpnGatewayNetworkTypeEnum
type UpdateVgwCertificateRequest ¶
type UpdateVgwCertificateRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` // VPN网关证书ID CertificateId string `json:"certificate_id"` Body *VpnGatewayCertificateRequestBody `json:"body,omitempty"` }
UpdateVgwCertificateRequest Request Object
func (UpdateVgwCertificateRequest) String ¶
func (o UpdateVgwCertificateRequest) String() 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 ¶
func (o UpdateVgwCertificateResponse) String() string
type UpdateVgwRequest ¶
type UpdateVgwRequest struct { // VPN网关实例ID VgwId string `json:"vgw_id"` Body *UpdateVgwRequestBody `json:"body,omitempty"` }
UpdateVgwRequest Request Object
func (UpdateVgwRequest) String ¶
func (o UpdateVgwRequest) String() string
type UpdateVgwRequestBody ¶
type UpdateVgwRequestBody struct {
VpnGateway *UpdateVgwRequestBodyContent `json:"vpn_gateway"`
}
func (UpdateVgwRequestBody) String ¶
func (o UpdateVgwRequestBody) String() string
type UpdateVgwRequestBodyContent ¶
type UpdateVgwRequestBodyContent struct { // 网关名称 Name *string `json:"name,omitempty"` // 本端子网 LocalSubnets *[]string `json:"local_subnets,omitempty"` // 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP MasterEipId *string `json:"master_eip_id,omitempty"` // 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP SlaveEipId *string `json:"slave_eip_id,omitempty"` // 主eip的ID。用于给VPN网关绑定新的主EIP,需要先解绑当前的主EIP EipId1 *string `json:"eip_id_1,omitempty"` // 备eip的ID。用于给VPN网关绑定新的备EIP,需要先解绑当前的备EIP EipId2 *string `json:"eip_id_2,omitempty"` }
func (UpdateVgwRequestBodyContent) String ¶
func (o UpdateVgwRequestBodyContent) String() 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 ¶
func (o UpdateVpnConnectionRequest) String() string
type UpdateVpnConnectionRequestBody ¶
type UpdateVpnConnectionRequestBody struct {
VpnConnection *UpdateVpnConnectionRequestBodyContent `json:"vpn_connection"`
}
func (UpdateVpnConnectionRequestBody) String ¶
func (o UpdateVpnConnectionRequestBody) String() 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 ¶
func (o UpdateVpnConnectionRequestBodyContent) String() 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 ¶
func (o UpdateVpnConnectionResponse) String() string
type VpnGatewayAvailabilityZones ¶
type VpnGatewayAvailabilityZones struct { // VPC关联类型的可用区列表 Vpc *[]string `json:"vpc,omitempty"` // ER关联类型的可用区列表 Er *[]string `json:"er,omitempty"` }
VpnGatewayAvailabilityZones 指定规格的可用区情况
func (VpnGatewayAvailabilityZones) String ¶
func (o VpnGatewayAvailabilityZones) String() 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 ¶
func (o VpnGatewayCertificateConfig) String() string
type VpnGatewayCertificateRequestBody ¶
type VpnGatewayCertificateRequestBody struct {
Certificate *VpnGatewayCertificateRequestBodyContent `json:"certificate,omitempty"`
}
func (VpnGatewayCertificateRequestBody) String ¶
func (o VpnGatewayCertificateRequestBody) String() string
type VpnGatewayCertificateRequestBodyContent ¶
type VpnGatewayCertificateRequestBodyContent struct { // VPN网关证书名称 Name *string `json:"name,omitempty"` // 证书内容,国密证书时为签名证书内容 Certificate *string `json:"certificate,omitempty"` // 证书私钥,国密证书时为签名证书私钥 PrivateKey *string `json:"private_key,omitempty"` // VPN网关CA证书内容 CertificateChain *string `json:"certificate_chain,omitempty"` // 国密证书的加密证书内容 EncCertificate *string `json:"enc_certificate,omitempty"` // 国密证书的加密证书私钥 EncPrivateKey *string `json:"enc_private_key,omitempty"` }
func (VpnGatewayCertificateRequestBodyContent) String ¶
func (o VpnGatewayCertificateRequestBodyContent) String() 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 ¶
func (c VpnGatewayCertificateStatus) Value() string
type VpnGatewayCertificateStatusEnum ¶
type VpnGatewayCertificateStatusEnum struct { BOUND VpnGatewayCertificateStatus FAULT VpnGatewayCertificateStatus BINDING VpnGatewayCertificateStatus }
func GetVpnGatewayCertificateStatusEnum ¶
func GetVpnGatewayCertificateStatusEnum() VpnGatewayCertificateStatusEnum
Source Files ¶
- model_availability_zones.go
- model_ca_certificate.go
- model_ca_certificate_request.go
- model_connection_monitor_info.go
- model_create_cgw_request.go
- model_create_cgw_request_body.go
- model_create_cgw_request_body_content.go
- model_create_cgw_response.go
- model_create_connection_monitor_info.go
- model_create_connection_monitor_request.go
- model_create_connection_monitor_request_body.go
- model_create_connection_monitor_request_body_content.go
- model_create_connection_monitor_response.go
- model_create_request_eip.go
- model_create_response_vpn_connection.go
- model_create_response_vpn_gateway.go
- model_create_vgw_certificate_request.go
- model_create_vgw_certificate_response.go
- model_create_vgw_request.go
- model_create_vgw_request_body.go
- model_create_vgw_request_body_content.go
- model_create_vgw_response.go
- model_create_vpn_connection_request.go
- model_create_vpn_connection_request_body.go
- model_create_vpn_connection_request_body_content.go
- model_create_vpn_connection_response.go
- model_delete_cgw_request.go
- model_delete_cgw_response.go
- model_delete_connection_monitor_request.go
- model_delete_connection_monitor_response.go
- model_delete_vgw_request.go
- model_delete_vgw_response.go
- model_delete_vpn_connection_request.go
- model_delete_vpn_connection_response.go
- model_dpd.go
- model_ike_policy.go
- model_ipsec_policy.go
- model_list_availability_zones_request.go
- model_list_availability_zones_response.go
- model_list_cgws_request.go
- model_list_cgws_response.go
- model_list_connection_monitors_request.go
- model_list_connection_monitors_response.go
- model_list_vgws_request.go
- model_list_vgws_response.go
- model_list_vpn_connections_request.go
- model_list_vpn_connections_response.go
- model_page_info.go
- model_policy_rule.go
- model_quota.go
- model_quotas.go
- model_response_customer_gateway.go
- model_response_eip.go
- model_response_vpn_connection.go
- model_response_vpn_gateway.go
- model_show_cgw_request.go
- model_show_cgw_response.go
- model_show_connection_monitor_request.go
- model_show_connection_monitor_response.go
- model_show_quotas_info_request.go
- model_show_quotas_info_response.go
- model_show_vgw_request.go
- model_show_vgw_response.go
- model_show_vpn_connection_request.go
- model_show_vpn_connection_response.go
- model_show_vpn_gateway_certificate_request.go
- model_show_vpn_gateway_certificate_response.go
- model_update_cgw_request.go
- model_update_cgw_request_body.go
- model_update_cgw_request_body_content.go
- model_update_cgw_response.go
- model_update_dpd.go
- model_update_ike_policy.go
- model_update_ipsec_policy.go
- model_update_response_vpn_connection.go
- model_update_response_vpn_gateway.go
- model_update_vgw_certificate_request.go
- model_update_vgw_certificate_response.go
- model_update_vgw_request.go
- model_update_vgw_request_body.go
- model_update_vgw_request_body_content.go
- model_update_vgw_response.go
- model_update_vpn_connection_request.go
- model_update_vpn_connection_request_body.go
- model_update_vpn_connection_request_body_content.go
- model_update_vpn_connection_response.go
- model_vpn_gateway_availability_zones.go
- model_vpn_gateway_certificate.go
- model_vpn_gateway_certificate_config.go
- model_vpn_gateway_certificate_request_body.go
- model_vpn_gateway_certificate_request_body_content.go