Documentation ¶
Index ¶
- Constants
- type AcceptDirectConnectTunnelRequest
- type AcceptDirectConnectTunnelResponse
- type AccessPoint
- type ApplyInternetAddressRequest
- type ApplyInternetAddressResponse
- type BFDInfo
- type BgpPeer
- type Client
- func (c *Client) AcceptDirectConnectTunnel(request *AcceptDirectConnectTunnelRequest) (response *AcceptDirectConnectTunnelResponse, err error)
- func (c *Client) AcceptDirectConnectTunnelWithContext(ctx context.Context, request *AcceptDirectConnectTunnelRequest) (response *AcceptDirectConnectTunnelResponse, err error)
- func (c *Client) ApplyInternetAddress(request *ApplyInternetAddressRequest) (response *ApplyInternetAddressResponse, err error)
- func (c *Client) ApplyInternetAddressWithContext(ctx context.Context, request *ApplyInternetAddressRequest) (response *ApplyInternetAddressResponse, err error)
- func (c *Client) CreateDirectConnect(request *CreateDirectConnectRequest) (response *CreateDirectConnectResponse, err error)
- func (c *Client) CreateDirectConnectTunnel(request *CreateDirectConnectTunnelRequest) (response *CreateDirectConnectTunnelResponse, err error)
- func (c *Client) CreateDirectConnectTunnelWithContext(ctx context.Context, request *CreateDirectConnectTunnelRequest) (response *CreateDirectConnectTunnelResponse, err error)
- func (c *Client) CreateDirectConnectWithContext(ctx context.Context, request *CreateDirectConnectRequest) (response *CreateDirectConnectResponse, err error)
- func (c *Client) DeleteDirectConnect(request *DeleteDirectConnectRequest) (response *DeleteDirectConnectResponse, err error)
- func (c *Client) DeleteDirectConnectTunnel(request *DeleteDirectConnectTunnelRequest) (response *DeleteDirectConnectTunnelResponse, err error)
- func (c *Client) DeleteDirectConnectTunnelWithContext(ctx context.Context, request *DeleteDirectConnectTunnelRequest) (response *DeleteDirectConnectTunnelResponse, err error)
- func (c *Client) DeleteDirectConnectWithContext(ctx context.Context, request *DeleteDirectConnectRequest) (response *DeleteDirectConnectResponse, err error)
- func (c *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error)
- func (c *Client) DescribeAccessPointsWithContext(ctx context.Context, request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error)
- func (c *Client) DescribeDirectConnectTunnels(request *DescribeDirectConnectTunnelsRequest) (response *DescribeDirectConnectTunnelsResponse, err error)
- func (c *Client) DescribeDirectConnectTunnelsWithContext(ctx context.Context, request *DescribeDirectConnectTunnelsRequest) (response *DescribeDirectConnectTunnelsResponse, err error)
- func (c *Client) DescribeDirectConnects(request *DescribeDirectConnectsRequest) (response *DescribeDirectConnectsResponse, err error)
- func (c *Client) DescribeDirectConnectsWithContext(ctx context.Context, request *DescribeDirectConnectsRequest) (response *DescribeDirectConnectsResponse, err error)
- func (c *Client) DescribeInternetAddress(request *DescribeInternetAddressRequest) (response *DescribeInternetAddressResponse, err error)
- func (c *Client) DescribeInternetAddressQuota(request *DescribeInternetAddressQuotaRequest) (response *DescribeInternetAddressQuotaResponse, err error)
- func (c *Client) DescribeInternetAddressQuotaWithContext(ctx context.Context, request *DescribeInternetAddressQuotaRequest) (response *DescribeInternetAddressQuotaResponse, err error)
- func (c *Client) DescribeInternetAddressStatistics(request *DescribeInternetAddressStatisticsRequest) (response *DescribeInternetAddressStatisticsResponse, err error)
- func (c *Client) DescribeInternetAddressStatisticsWithContext(ctx context.Context, request *DescribeInternetAddressStatisticsRequest) (response *DescribeInternetAddressStatisticsResponse, err error)
- func (c *Client) DescribeInternetAddressWithContext(ctx context.Context, request *DescribeInternetAddressRequest) (response *DescribeInternetAddressResponse, err error)
- func (c *Client) DisableInternetAddress(request *DisableInternetAddressRequest) (response *DisableInternetAddressResponse, err error)
- func (c *Client) DisableInternetAddressWithContext(ctx context.Context, request *DisableInternetAddressRequest) (response *DisableInternetAddressResponse, err error)
- func (c *Client) EnableInternetAddress(request *EnableInternetAddressRequest) (response *EnableInternetAddressResponse, err error)
- func (c *Client) EnableInternetAddressWithContext(ctx context.Context, request *EnableInternetAddressRequest) (response *EnableInternetAddressResponse, err error)
- func (c *Client) ModifyDirectConnectAttribute(request *ModifyDirectConnectAttributeRequest) (response *ModifyDirectConnectAttributeResponse, err error)
- func (c *Client) ModifyDirectConnectAttributeWithContext(ctx context.Context, request *ModifyDirectConnectAttributeRequest) (response *ModifyDirectConnectAttributeResponse, err error)
- func (c *Client) ModifyDirectConnectTunnelAttribute(request *ModifyDirectConnectTunnelAttributeRequest) (response *ModifyDirectConnectTunnelAttributeResponse, err error)
- func (c *Client) ModifyDirectConnectTunnelAttributeWithContext(ctx context.Context, request *ModifyDirectConnectTunnelAttributeRequest) (response *ModifyDirectConnectTunnelAttributeResponse, err error)
- func (c *Client) RejectDirectConnectTunnel(request *RejectDirectConnectTunnelRequest) (response *RejectDirectConnectTunnelResponse, err error)
- func (c *Client) RejectDirectConnectTunnelWithContext(ctx context.Context, request *RejectDirectConnectTunnelRequest) (response *RejectDirectConnectTunnelResponse, err error)
- func (c *Client) ReleaseInternetAddress(request *ReleaseInternetAddressRequest) (response *ReleaseInternetAddressResponse, err error)
- func (c *Client) ReleaseInternetAddressWithContext(ctx context.Context, request *ReleaseInternetAddressRequest) (response *ReleaseInternetAddressResponse, err error)
- type Coordinate
- type CreateDirectConnectRequest
- type CreateDirectConnectResponse
- type CreateDirectConnectTunnelRequest
- type CreateDirectConnectTunnelResponse
- type DeleteDirectConnectRequest
- type DeleteDirectConnectResponse
- type DeleteDirectConnectTunnelRequest
- type DeleteDirectConnectTunnelResponse
- type DescribeAccessPointsRequest
- type DescribeAccessPointsResponse
- type DescribeDirectConnectTunnelsRequest
- type DescribeDirectConnectTunnelsResponse
- type DescribeDirectConnectsRequest
- type DescribeDirectConnectsResponse
- type DescribeInternetAddressQuotaRequest
- type DescribeInternetAddressQuotaResponse
- type DescribeInternetAddressRequest
- type DescribeInternetAddressResponse
- type DescribeInternetAddressStatisticsRequest
- type DescribeInternetAddressStatisticsResponse
- type DirectConnect
- type DirectConnectTunnel
- type DisableInternetAddressRequest
- type DisableInternetAddressResponse
- type EnableInternetAddressRequest
- type EnableInternetAddressResponse
- type Filter
- type InternetAddressDetail
- type InternetAddressStatistics
- type ModifyDirectConnectAttributeRequest
- type ModifyDirectConnectAttributeResponse
- type ModifyDirectConnectTunnelAttributeRequest
- type ModifyDirectConnectTunnelAttributeResponse
- type NQAInfo
- type RejectDirectConnectTunnelRequest
- type RejectDirectConnectTunnelResponse
- type ReleaseInternetAddressRequest
- type ReleaseInternetAddressResponse
- type RouteFilterPrefix
- type Tag
Constants ¶
const ( // CAM signature/authentication error AUTHFAILURE = "AuthFailure" // Unauthorized operation: CAM signature or authentication error. AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // An internal error occurred. INTERNALERROR = "InternalError" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Wrong IP address. INVALIDPARAMETER_ADDRESSERROR = "InvalidParameter.AddressError" // The connection does not belong to this account. INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" // The account ID does not exist. INVALIDPARAMETER_UINISNOTEXIST = "InvalidParameter.UinIsNotExist" // VLAN conflict. INVALIDPARAMETER_VLANCONFLICT = "InvalidParameter.VlanConflict" // The parameter value is invalid. INVALIDPARAMETERVALUE = "InvalidParameterValue" // VLAN conflict. INVALIDPARAMETERVALUE_VLANCONFLICT = "InvalidParameterValue.VlanConfLict" // The quota limit is exceeded. LIMITEXCEEDED = "LimitExceeded" // The number of connections has reached the upper limit. LIMITEXCEEDED_DIRECTCONNECTLIMITEXCEEDED = "LimitExceeded.DirectConnectLimitExceeded" // The number of the dedicated tunnels of the connection has reached the upper limit. LIMITEXCEEDED_DIRECTCONNECTTUNNELLIMITEXCEEDED = "LimitExceeded.DirectConnectTunnelLimitExceeded" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // The connection VPC already exists. RESOURCEINUSE_DCVPCISEXIST = "ResourceInUse.DcVpcIsExist" // The resource does not exist. RESOURCENOTFOUND = "ResourceNotFound" // The dedicated tunnel does not exist. RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" // The resource is unavailable. RESOURCEUNAVAILABLE = "ResourceUnavailable" // Your account is in arrears, and the service cannot be activated. Please top up your account first. RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" // The operation is unauthorized. UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // Cross-border dedicated tunnel is not allowed. Please contact us. UNSUPPORTEDOPERATION_CROSSBORDERDIRECTCONNECTTUNNEL = "UnsupportedOperation.CrossBorderDirectConnectTunnel" // Status conflict. UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict" )
const APIVersion = "2018-04-10"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptDirectConnectTunnelRequest ¶
type AcceptDirectConnectTunnelRequest struct { *tchttp.BaseRequest // The connection owner accepts an application for sharing the dedicated tunnel DirectConnectTunnelId *string `json:"DirectConnectTunnelId,omitempty" name:"DirectConnectTunnelId"` }
func NewAcceptDirectConnectTunnelRequest ¶
func NewAcceptDirectConnectTunnelRequest() (request *AcceptDirectConnectTunnelRequest)
func (*AcceptDirectConnectTunnelRequest) FromJsonString ¶
func (r *AcceptDirectConnectTunnelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcceptDirectConnectTunnelRequest) ToJsonString ¶
func (r *AcceptDirectConnectTunnelRequest) ToJsonString() string
type AcceptDirectConnectTunnelResponse ¶
type AcceptDirectConnectTunnelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAcceptDirectConnectTunnelResponse ¶
func NewAcceptDirectConnectTunnelResponse() (response *AcceptDirectConnectTunnelResponse)
func (*AcceptDirectConnectTunnelResponse) FromJsonString ¶
func (r *AcceptDirectConnectTunnelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AcceptDirectConnectTunnelResponse) ToJsonString ¶
func (r *AcceptDirectConnectTunnelResponse) ToJsonString() string
type AccessPoint ¶
type AccessPoint struct { // Access point name. AccessPointName *string `json:"AccessPointName,omitempty" name:"AccessPointName"` // Unique access point ID. AccessPointId *string `json:"AccessPointId,omitempty" name:"AccessPointId"` // Access point status. Valid values: available, unavailable. State *string `json:"State,omitempty" name:"State"` // Access point location. Location *string `json:"Location,omitempty" name:"Location"` // List of ISPs supported by access point. LineOperator []*string `json:"LineOperator,omitempty" name:"LineOperator"` // ID of the region that manages the access point. RegionId *string `json:"RegionId,omitempty" name:"RegionId"` // Available port type at the access point. Valid values: 1000BASE-T: gigabit electrical port; 1000BASE-LX: 10 km gigabit single-mode optical port; 1000BASE-ZX: 80 km gigabit single-mode optical port; 10GBASE-LR: 10 km 10-gigabit single-mode optical port; 10GBASE-ZR: 80 km 10-gigabit single-mode optical port; 10GBASE-LH: 40 km 10-gigabit single-mode optical port; 100GBASE-LR4: 10 km 100-gigabit single-mode optical portfiber optic port. // Note: this field may return `null`, indicating that no valid value is obtained. AvailablePortType []*string `json:"AvailablePortType,omitempty" name:"AvailablePortType"` // Latitude and longitude of the access point // Note: this field may return `null`, indicating that no valid values can be obtained. Coordinate *Coordinate `json:"Coordinate,omitempty" name:"Coordinate"` // City where the access point is located // Note: this field may return `null`, indicating that no valid values can be obtained. City *string `json:"City,omitempty" name:"City"` // Access point region // Note: this field may return `null`, indicating that no valid values can be obtained. Area *string `json:"Area,omitempty" name:"Area"` // Access point type. Valid values: `VXLAN`, `QCPL`, and `QCAR`. // Note: this field may return `null`, indicating that no valid values can be obtained. AccessPointType *string `json:"AccessPointType,omitempty" name:"AccessPointType"` }
type ApplyInternetAddressRequest ¶
type ApplyInternetAddressRequest struct { *tchttp.BaseRequest // Mask length of a CIDR block MaskLen *int64 `json:"MaskLen,omitempty" name:"MaskLen"` // Address type. Valid values: 0: BGP // 1: China Telecom // 2: China Mobile // 3: China Unicom AddrType *int64 `json:"AddrType,omitempty" name:"AddrType"` // Address protocol. Valid values: 0: IPv4 // 1: IPv6 AddrProto *int64 `json:"AddrProto,omitempty" name:"AddrProto"` }
func NewApplyInternetAddressRequest ¶
func NewApplyInternetAddressRequest() (request *ApplyInternetAddressRequest)
func (*ApplyInternetAddressRequest) FromJsonString ¶
func (r *ApplyInternetAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ApplyInternetAddressRequest) ToJsonString ¶
func (r *ApplyInternetAddressRequest) ToJsonString() string
type ApplyInternetAddressResponse ¶
type ApplyInternetAddressResponse struct { *tchttp.BaseResponse Response *struct { // ID of the internet tunnel’s public IP address // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewApplyInternetAddressResponse ¶
func NewApplyInternetAddressResponse() (response *ApplyInternetAddressResponse)
func (*ApplyInternetAddressResponse) FromJsonString ¶
func (r *ApplyInternetAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ApplyInternetAddressResponse) ToJsonString ¶
func (r *ApplyInternetAddressResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AcceptDirectConnectTunnel ¶
func (c *Client) AcceptDirectConnectTunnel(request *AcceptDirectConnectTunnelRequest) (response *AcceptDirectConnectTunnelResponse, err error)
AcceptDirectConnectTunnel This API is used to accept an application for a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) AcceptDirectConnectTunnelWithContext ¶
func (c *Client) AcceptDirectConnectTunnelWithContext(ctx context.Context, request *AcceptDirectConnectTunnelRequest) (response *AcceptDirectConnectTunnelResponse, err error)
AcceptDirectConnectTunnel This API is used to accept an application for a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) ApplyInternetAddress ¶
func (c *Client) ApplyInternetAddress(request *ApplyInternetAddressRequest) (response *ApplyInternetAddressResponse, err error)
ApplyInternetAddress This API is used to apply for an internet tunnel’s CIDR block.
error code that may be returned:
LIMITEXCEEDED = "LimitExceeded"
func (*Client) ApplyInternetAddressWithContext ¶
func (c *Client) ApplyInternetAddressWithContext(ctx context.Context, request *ApplyInternetAddressRequest) (response *ApplyInternetAddressResponse, err error)
ApplyInternetAddress This API is used to apply for an internet tunnel’s CIDR block.
error code that may be returned:
LIMITEXCEEDED = "LimitExceeded"
func (*Client) CreateDirectConnect ¶
func (c *Client) CreateDirectConnect(request *CreateDirectConnectRequest) (response *CreateDirectConnectResponse, err error)
CreateDirectConnect This API is used to apply for a connection.
When calling this API, please note that:
You need to complete identity verification for your account; otherwise, you cannot apply for a connection;
If there is any connection in arrears under your account, you cannot apply for more connections.
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_DIRECTCONNECTLIMITEXCEEDED = "LimitExceeded.DirectConnectLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateDirectConnectTunnel ¶
func (c *Client) CreateDirectConnectTunnel(request *CreateDirectConnectTunnelRequest) (response *CreateDirectConnectTunnelResponse, err error)
CreateDirectConnectTunnel This API is used to create a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ADDRESSERROR = "InvalidParameter.AddressError" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETER_UINISNOTEXIST = "InvalidParameter.UinIsNotExist" INVALIDPARAMETER_VLANCONFLICT = "InvalidParameter.VlanConflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_VLANCONFLICT = "InvalidParameterValue.VlanConfLict" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_DIRECTCONNECTLIMITEXCEEDED = "LimitExceeded.DirectConnectLimitExceeded" LIMITEXCEEDED_DIRECTCONNECTTUNNELLIMITEXCEEDED = "LimitExceeded.DirectConnectTunnelLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE_DCVPCISEXIST = "ResourceInUse.DcVpcIsExist" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CROSSBORDERDIRECTCONNECTTUNNEL = "UnsupportedOperation.CrossBorderDirectConnectTunnel"
func (*Client) CreateDirectConnectTunnelWithContext ¶
func (c *Client) CreateDirectConnectTunnelWithContext(ctx context.Context, request *CreateDirectConnectTunnelRequest) (response *CreateDirectConnectTunnelResponse, err error)
CreateDirectConnectTunnel This API is used to create a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ADDRESSERROR = "InvalidParameter.AddressError" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETER_UINISNOTEXIST = "InvalidParameter.UinIsNotExist" INVALIDPARAMETER_VLANCONFLICT = "InvalidParameter.VlanConflict" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_VLANCONFLICT = "InvalidParameterValue.VlanConfLict" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_DIRECTCONNECTLIMITEXCEEDED = "LimitExceeded.DirectConnectLimitExceeded" LIMITEXCEEDED_DIRECTCONNECTTUNNELLIMITEXCEEDED = "LimitExceeded.DirectConnectTunnelLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINUSE_DCVPCISEXIST = "ResourceInUse.DcVpcIsExist" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CROSSBORDERDIRECTCONNECTTUNNEL = "UnsupportedOperation.CrossBorderDirectConnectTunnel"
func (*Client) CreateDirectConnectWithContext ¶
func (c *Client) CreateDirectConnectWithContext(ctx context.Context, request *CreateDirectConnectRequest) (response *CreateDirectConnectResponse, err error)
CreateDirectConnect This API is used to apply for a connection.
When calling this API, please note that:
You need to complete identity verification for your account; otherwise, you cannot apply for a connection;
If there is any connection in arrears under your account, you cannot apply for more connections.
error code that may be returned:
INTERNALERROR = "InternalError" LIMITEXCEEDED = "LimitExceeded" LIMITEXCEEDED_DIRECTCONNECTLIMITEXCEEDED = "LimitExceeded.DirectConnectLimitExceeded" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteDirectConnect ¶
func (c *Client) DeleteDirectConnect(request *DeleteDirectConnectRequest) (response *DeleteDirectConnectResponse, err error)
DeleteDirectConnect This API is used to delete a connection.
Only connected connections can be deleted.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) DeleteDirectConnectTunnel ¶
func (c *Client) DeleteDirectConnectTunnel(request *DeleteDirectConnectTunnelRequest) (response *DeleteDirectConnectTunnelResponse, err error)
DeleteDirectConnectTunnel This API is used to delete a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) DeleteDirectConnectTunnelWithContext ¶
func (c *Client) DeleteDirectConnectTunnelWithContext(ctx context.Context, request *DeleteDirectConnectTunnelRequest) (response *DeleteDirectConnectTunnelResponse, err error)
DeleteDirectConnectTunnel This API is used to delete a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) DeleteDirectConnectWithContext ¶
func (c *Client) DeleteDirectConnectWithContext(ctx context.Context, request *DeleteDirectConnectRequest) (response *DeleteDirectConnectResponse, err error)
DeleteDirectConnect This API is used to delete a connection.
Only connected connections can be deleted.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) DescribeAccessPoints ¶
func (c *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error)
DescribeAccessPoints This API is used to query connection access points.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAccessPointsWithContext ¶
func (c *Client) DescribeAccessPointsWithContext(ctx context.Context, request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error)
DescribeAccessPoints This API is used to query connection access points.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDirectConnectTunnels ¶
func (c *Client) DescribeDirectConnectTunnels(request *DescribeDirectConnectTunnelsRequest) (response *DescribeDirectConnectTunnelsResponse, err error)
DescribeDirectConnectTunnels This API is used to query the list of dedicated tunnels.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" INTERNALERROR = "InternalError" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist"
func (*Client) DescribeDirectConnectTunnelsWithContext ¶
func (c *Client) DescribeDirectConnectTunnelsWithContext(ctx context.Context, request *DescribeDirectConnectTunnelsRequest) (response *DescribeDirectConnectTunnelsResponse, err error)
DescribeDirectConnectTunnels This API is used to query the list of dedicated tunnels.
error code that may be returned:
AUTHFAILURE = "AuthFailure" AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" INTERNALERROR = "InternalError" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist"
func (*Client) DescribeDirectConnects ¶
func (c *Client) DescribeDirectConnects(request *DescribeDirectConnectsRequest) (response *DescribeDirectConnectsResponse, err error)
DescribeDirectConnects This API is used to query the list of connections.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeDirectConnectsWithContext ¶
func (c *Client) DescribeDirectConnectsWithContext(ctx context.Context, request *DescribeDirectConnectsRequest) (response *DescribeDirectConnectsResponse, err error)
DescribeDirectConnects This API is used to query the list of connections.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddress ¶
func (c *Client) DescribeInternetAddress(request *DescribeInternetAddressRequest) (response *DescribeInternetAddressResponse, err error)
DescribeInternetAddress This API is used to obtain the public IP address of an internet tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddressQuota ¶
func (c *Client) DescribeInternetAddressQuota(request *DescribeInternetAddressQuotaRequest) (response *DescribeInternetAddressQuotaResponse, err error)
DescribeInternetAddressQuota This API is used to obtain the public IP quota of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddressQuotaWithContext ¶
func (c *Client) DescribeInternetAddressQuotaWithContext(ctx context.Context, request *DescribeInternetAddressQuotaRequest) (response *DescribeInternetAddressQuotaResponse, err error)
DescribeInternetAddressQuota This API is used to obtain the public IP quota of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddressStatistics ¶
func (c *Client) DescribeInternetAddressStatistics(request *DescribeInternetAddressStatisticsRequest) (response *DescribeInternetAddressStatisticsResponse, err error)
DescribeInternetAddressStatistics This API is used to obtain the public IP address assignment statistics of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddressStatisticsWithContext ¶
func (c *Client) DescribeInternetAddressStatisticsWithContext(ctx context.Context, request *DescribeInternetAddressStatisticsRequest) (response *DescribeInternetAddressStatisticsResponse, err error)
DescribeInternetAddressStatistics This API is used to obtain the public IP address assignment statistics of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInternetAddressWithContext ¶
func (c *Client) DescribeInternetAddressWithContext(ctx context.Context, request *DescribeInternetAddressRequest) (response *DescribeInternetAddressResponse, err error)
DescribeInternetAddress This API is used to obtain the public IP address of an internet tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DisableInternetAddress ¶
func (c *Client) DisableInternetAddress(request *DisableInternetAddressRequest) (response *DisableInternetAddressResponse, err error)
DisableInternetAddress This API is used to disable a public IP address of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DisableInternetAddressWithContext ¶
func (c *Client) DisableInternetAddressWithContext(ctx context.Context, request *DisableInternetAddressRequest) (response *DisableInternetAddressResponse, err error)
DisableInternetAddress This API is used to disable a public IP address of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) EnableInternetAddress ¶
func (c *Client) EnableInternetAddress(request *EnableInternetAddressRequest) (response *EnableInternetAddressResponse, err error)
EnableInternetAddress This API is used to enable a public IP address for internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) EnableInternetAddressWithContext ¶
func (c *Client) EnableInternetAddressWithContext(ctx context.Context, request *EnableInternetAddressRequest) (response *EnableInternetAddressResponse, err error)
EnableInternetAddress This API is used to enable a public IP address for internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDirectConnectAttribute ¶
func (c *Client) ModifyDirectConnectAttribute(request *ModifyDirectConnectAttributeRequest) (response *ModifyDirectConnectAttributeResponse, err error)
ModifyDirectConnectAttribute This API is used to modify connection attributes.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDirectConnectAttributeWithContext ¶
func (c *Client) ModifyDirectConnectAttributeWithContext(ctx context.Context, request *ModifyDirectConnectAttributeRequest) (response *ModifyDirectConnectAttributeResponse, err error)
ModifyDirectConnectAttribute This API is used to modify connection attributes.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DIRECTCONNECTIDISNOTUIN = "InvalidParameter.DirectConnectIdIsNotUin" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyDirectConnectTunnelAttribute ¶
func (c *Client) ModifyDirectConnectTunnelAttribute(request *ModifyDirectConnectTunnelAttributeRequest) (response *ModifyDirectConnectTunnelAttributeResponse, err error)
ModifyDirectConnectTunnelAttribute This API is used to modify the dedicated tunnel attributes.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) ModifyDirectConnectTunnelAttributeWithContext ¶
func (c *Client) ModifyDirectConnectTunnelAttributeWithContext(ctx context.Context, request *ModifyDirectConnectTunnelAttributeRequest) (response *ModifyDirectConnectTunnelAttributeResponse, err error)
ModifyDirectConnectTunnelAttribute This API is used to modify the dedicated tunnel attributes.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) RejectDirectConnectTunnel ¶
func (c *Client) RejectDirectConnectTunnel(request *RejectDirectConnectTunnelRequest) (response *RejectDirectConnectTunnelResponse, err error)
RejectDirectConnectTunnel This API is used to reject an application for a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) RejectDirectConnectTunnelWithContext ¶
func (c *Client) RejectDirectConnectTunnelWithContext(ctx context.Context, request *RejectDirectConnectTunnelRequest) (response *RejectDirectConnectTunnelResponse, err error)
RejectDirectConnectTunnel This API is used to reject an application for a dedicated tunnel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) ReleaseInternetAddress ¶
func (c *Client) ReleaseInternetAddress(request *ReleaseInternetAddressRequest) (response *ReleaseInternetAddressResponse, err error)
ReleaseInternetAddress This API is used to release an IP address of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
func (*Client) ReleaseInternetAddressWithContext ¶
func (c *Client) ReleaseInternetAddressWithContext(ctx context.Context, request *ReleaseInternetAddressRequest) (response *ReleaseInternetAddressResponse, err error)
ReleaseInternetAddress This API is used to release an IP address of internet tunnels.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DIRECTCONNECTTUNNELIDISNOTEXIST = "ResourceNotFound.DirectConnectTunnelIdIsNotExist" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_STATECONFLICT = "UnsupportedOperation.StateConfLict"
type Coordinate ¶
type CreateDirectConnectRequest ¶
type CreateDirectConnectRequest struct { *tchttp.BaseRequest // Connection name. DirectConnectName *string `json:"DirectConnectName,omitempty" name:"DirectConnectName"` // Access point of connection. // You can call `DescribeAccessPoints` to get the region ID. The selected access point must exist and be available. AccessPointId *string `json:"AccessPointId,omitempty" name:"AccessPointId"` // ISP that provides connections. Valid values: ChinaTelecom (China Telecom), ChinaMobile (China Mobile), ChinaUnicom (China Unicom), In-houseWiring (in-house wiring), ChinaOther (other Chinese ISPs), InternationalOperator (international ISPs). LineOperator *string `json:"LineOperator,omitempty" name:"LineOperator"` // Port type of connection. Valid values: 100Base-T (100-Megabit electrical Ethernet interface), 1000Base-T (1-Gigabit electrical Ethernet interface), 1000Base-LX (1-Gigabit single-module optical Ethernet interface; 10 KM), 10GBase-T (10-Gigabit electrical Ethernet interface), 10GBase-LR (10-Gigabit single-module optical Ethernet interface; 10 KM). Default value: 1000Base-LX. PortType *string `json:"PortType,omitempty" name:"PortType"` // Circuit code of a connection, which is provided by the ISP or connection provider. CircuitCode *string `json:"CircuitCode,omitempty" name:"CircuitCode"` // Local IDC location. Location *string `json:"Location,omitempty" name:"Location"` // Connection port bandwidth in Mbps. Value range: [2,10240]. Default value: 1000. Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` // ID of redundant connection. RedundantDirectConnectId *string `json:"RedundantDirectConnectId,omitempty" name:"RedundantDirectConnectId"` // VLAN for connection debugging, which is enabled and automatically assigned by default. Vlan *int64 `json:"Vlan,omitempty" name:"Vlan"` // Tencent-side IP address for connection debugging, which is automatically assigned by default. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // User-side IP address for connection debugging, which is automatically assigned by default. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // Name of connection applicant, which is obtained from the account system by default. CustomerName *string `json:"CustomerName,omitempty" name:"CustomerName"` // Email address of connection applicant, which is obtained from the account system by default. CustomerContactMail *string `json:"CustomerContactMail,omitempty" name:"CustomerContactMail"` // Contact number of connection applicant, which is obtained from the account system by default. CustomerContactNumber *string `json:"CustomerContactNumber,omitempty" name:"CustomerContactNumber"` // Fault reporting contact person. FaultReportContactPerson *string `json:"FaultReportContactPerson,omitempty" name:"FaultReportContactPerson"` // Fault reporting contact number. FaultReportContactNumber *string `json:"FaultReportContactNumber,omitempty" name:"FaultReportContactNumber"` // Whether the connection applicant has signed the service agreement. Default value: true. SignLaw *bool `json:"SignLaw,omitempty" name:"SignLaw"` }
func NewCreateDirectConnectRequest ¶
func NewCreateDirectConnectRequest() (request *CreateDirectConnectRequest)
func (*CreateDirectConnectRequest) FromJsonString ¶
func (r *CreateDirectConnectRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDirectConnectRequest) ToJsonString ¶
func (r *CreateDirectConnectRequest) ToJsonString() string
type CreateDirectConnectResponse ¶
type CreateDirectConnectResponse struct { *tchttp.BaseResponse Response *struct { // Connection ID. DirectConnectIdSet []*string `json:"DirectConnectIdSet,omitempty" name:"DirectConnectIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDirectConnectResponse ¶
func NewCreateDirectConnectResponse() (response *CreateDirectConnectResponse)
func (*CreateDirectConnectResponse) FromJsonString ¶
func (r *CreateDirectConnectResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDirectConnectResponse) ToJsonString ¶
func (r *CreateDirectConnectResponse) ToJsonString() string
type CreateDirectConnectTunnelRequest ¶
type CreateDirectConnectTunnelRequest struct { *tchttp.BaseRequest // Direct Connect ID, such as `dc-kd7d06of`. DirectConnectId *string `json:"DirectConnectId,omitempty" name:"DirectConnectId"` // Dedicated tunnel name. DirectConnectTunnelName *string `json:"DirectConnectTunnelName,omitempty" name:"DirectConnectTunnelName"` // Connection owner, who is the current customer by default. // The developer account ID should be entered for shared connections. DirectConnectOwnerAccount *string `json:"DirectConnectOwnerAccount,omitempty" name:"DirectConnectOwnerAccount"` // Network type. Valid values: VPC, BMVPC, CCN. Default value: VPC. // VPC: Virtual Private Cloud. // BMVPC: BM VPC. // CCN: Cloud Connect Network. NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` // Network region. NetworkRegion *string `json:"NetworkRegion,omitempty" name:"NetworkRegion"` // Unified VPC ID or BMVPC ID. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Direct connect gateway ID, such as `dcg-d545ddf`. DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` // Direct Connect bandwidth in Mbps. // Default value: connection bandwidth value. Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` // BGP: BGP routing. // STATIC: Static routing. // Default value: BGP routing. RouteType *string `json:"RouteType,omitempty" name:"RouteType"` // BgpPeer, which is BGP information on the user side and includes Asn and AuthKey. BgpPeer *BgpPeer `json:"BgpPeer,omitempty" name:"BgpPeer"` // Static routing, i.e., IP range of the user's IDC. RouteFilterPrefixes []*RouteFilterPrefix `json:"RouteFilterPrefixes,omitempty" name:"RouteFilterPrefixes"` // VLAN. Value range: 0-3,000. // 0: sub-interface not enabled. // Default value: Non-zero. Vlan *int64 `json:"Vlan,omitempty" name:"Vlan"` // TencentAddress: Tencent-side IP address. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // CustomerAddress: User-side IP address. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // TencentBackupAddress, i.e., Tencent-side standby IP address TencentBackupAddress *string `json:"TencentBackupAddress,omitempty" name:"TencentBackupAddress"` // Cloud Attached Connection Service ID CloudAttachId *string `json:"CloudAttachId,omitempty" name:"CloudAttachId"` // Whether to enable BFD BfdEnable *int64 `json:"BfdEnable,omitempty" name:"BfdEnable"` // Whether to enable NQA NqaEnable *int64 `json:"NqaEnable,omitempty" name:"NqaEnable"` // BFD configuration information BfdInfo *BFDInfo `json:"BfdInfo,omitempty" name:"BfdInfo"` // NQA configuration information NqaInfo *NQAInfo `json:"NqaInfo,omitempty" name:"NqaInfo"` }
func NewCreateDirectConnectTunnelRequest ¶
func NewCreateDirectConnectTunnelRequest() (request *CreateDirectConnectTunnelRequest)
func (*CreateDirectConnectTunnelRequest) FromJsonString ¶
func (r *CreateDirectConnectTunnelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDirectConnectTunnelRequest) ToJsonString ¶
func (r *CreateDirectConnectTunnelRequest) ToJsonString() string
type CreateDirectConnectTunnelResponse ¶
type CreateDirectConnectTunnelResponse struct { *tchttp.BaseResponse Response *struct { // Dedicated tunnel ID. DirectConnectTunnelIdSet []*string `json:"DirectConnectTunnelIdSet,omitempty" name:"DirectConnectTunnelIdSet"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDirectConnectTunnelResponse ¶
func NewCreateDirectConnectTunnelResponse() (response *CreateDirectConnectTunnelResponse)
func (*CreateDirectConnectTunnelResponse) FromJsonString ¶
func (r *CreateDirectConnectTunnelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDirectConnectTunnelResponse) ToJsonString ¶
func (r *CreateDirectConnectTunnelResponse) ToJsonString() string
type DeleteDirectConnectRequest ¶
type DeleteDirectConnectRequest struct { *tchttp.BaseRequest // Connection ID. DirectConnectId *string `json:"DirectConnectId,omitempty" name:"DirectConnectId"` }
func NewDeleteDirectConnectRequest ¶
func NewDeleteDirectConnectRequest() (request *DeleteDirectConnectRequest)
func (*DeleteDirectConnectRequest) FromJsonString ¶
func (r *DeleteDirectConnectRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteDirectConnectRequest) ToJsonString ¶
func (r *DeleteDirectConnectRequest) ToJsonString() string
type DeleteDirectConnectResponse ¶
type DeleteDirectConnectResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteDirectConnectResponse ¶
func NewDeleteDirectConnectResponse() (response *DeleteDirectConnectResponse)
func (*DeleteDirectConnectResponse) FromJsonString ¶
func (r *DeleteDirectConnectResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteDirectConnectResponse) ToJsonString ¶
func (r *DeleteDirectConnectResponse) ToJsonString() string
type DeleteDirectConnectTunnelRequest ¶
type DeleteDirectConnectTunnelRequest struct { *tchttp.BaseRequest // Dedicated tunnel ID. DirectConnectTunnelId *string `json:"DirectConnectTunnelId,omitempty" name:"DirectConnectTunnelId"` }
func NewDeleteDirectConnectTunnelRequest ¶
func NewDeleteDirectConnectTunnelRequest() (request *DeleteDirectConnectTunnelRequest)
func (*DeleteDirectConnectTunnelRequest) FromJsonString ¶
func (r *DeleteDirectConnectTunnelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteDirectConnectTunnelRequest) ToJsonString ¶
func (r *DeleteDirectConnectTunnelRequest) ToJsonString() string
type DeleteDirectConnectTunnelResponse ¶
type DeleteDirectConnectTunnelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteDirectConnectTunnelResponse ¶
func NewDeleteDirectConnectTunnelResponse() (response *DeleteDirectConnectTunnelResponse)
func (*DeleteDirectConnectTunnelResponse) FromJsonString ¶
func (r *DeleteDirectConnectTunnelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteDirectConnectTunnelResponse) ToJsonString ¶
func (r *DeleteDirectConnectTunnelResponse) ToJsonString() string
type DescribeAccessPointsRequest ¶
type DescribeAccessPointsRequest struct { *tchttp.BaseRequest // Access point region, which can be queried through `DescribeRegions`. // // You can call `DescribeRegions` to get the region ID. RegionId *string `json:"RegionId,omitempty" name:"RegionId"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of results to be returned. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeAccessPointsRequest ¶
func NewDescribeAccessPointsRequest() (request *DescribeAccessPointsRequest)
func (*DescribeAccessPointsRequest) FromJsonString ¶
func (r *DescribeAccessPointsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccessPointsRequest) ToJsonString ¶
func (r *DescribeAccessPointsRequest) ToJsonString() string
type DescribeAccessPointsResponse ¶
type DescribeAccessPointsResponse struct { *tchttp.BaseResponse Response *struct { // Access point information. AccessPointSet []*AccessPoint `json:"AccessPointSet,omitempty" name:"AccessPointSet"` // Number of eligible access points. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeAccessPointsResponse ¶
func NewDescribeAccessPointsResponse() (response *DescribeAccessPointsResponse)
func (*DescribeAccessPointsResponse) FromJsonString ¶
func (r *DescribeAccessPointsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccessPointsResponse) ToJsonString ¶
func (r *DescribeAccessPointsResponse) ToJsonString() string
type DescribeDirectConnectTunnelsRequest ¶
type DescribeDirectConnectTunnelsRequest struct { *tchttp.BaseRequest // Filter conditions: // This parameter does not support specifying `DirectConnectTunnelIds` and `Filters` at the same time. // <li> direct-connect-tunnel-name: Dedicated tunnel name.</li> // <li> direct-connect-tunnel-id: Dedicated tunnel instance ID, such as `dcx-abcdefgh`.</li> // <li>direct-connect-id: Connection instance ID, such as `dc-abcdefgh`.</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Array of dedicated tunnel IDs. DirectConnectTunnelIds []*string `json:"DirectConnectTunnelIds,omitempty" name:"DirectConnectTunnelIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeDirectConnectTunnelsRequest ¶
func NewDescribeDirectConnectTunnelsRequest() (request *DescribeDirectConnectTunnelsRequest)
func (*DescribeDirectConnectTunnelsRequest) FromJsonString ¶
func (r *DescribeDirectConnectTunnelsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDirectConnectTunnelsRequest) ToJsonString ¶
func (r *DescribeDirectConnectTunnelsRequest) ToJsonString() string
type DescribeDirectConnectTunnelsResponse ¶
type DescribeDirectConnectTunnelsResponse struct { *tchttp.BaseResponse Response *struct { // List of dedicated tunnels. DirectConnectTunnelSet []*DirectConnectTunnel `json:"DirectConnectTunnelSet,omitempty" name:"DirectConnectTunnelSet"` // Number of eligible dedicated tunnels. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDirectConnectTunnelsResponse ¶
func NewDescribeDirectConnectTunnelsResponse() (response *DescribeDirectConnectTunnelsResponse)
func (*DescribeDirectConnectTunnelsResponse) FromJsonString ¶
func (r *DescribeDirectConnectTunnelsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDirectConnectTunnelsResponse) ToJsonString ¶
func (r *DescribeDirectConnectTunnelsResponse) ToJsonString() string
type DescribeDirectConnectsRequest ¶
type DescribeDirectConnectsRequest struct { *tchttp.BaseRequest // Filter conditions: Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // Array of connection IDs. DirectConnectIds []*string `json:"DirectConnectIds,omitempty" name:"DirectConnectIds"` // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` }
func NewDescribeDirectConnectsRequest ¶
func NewDescribeDirectConnectsRequest() (request *DescribeDirectConnectsRequest)
func (*DescribeDirectConnectsRequest) FromJsonString ¶
func (r *DescribeDirectConnectsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDirectConnectsRequest) ToJsonString ¶
func (r *DescribeDirectConnectsRequest) ToJsonString() string
type DescribeDirectConnectsResponse ¶
type DescribeDirectConnectsResponse struct { *tchttp.BaseResponse Response *struct { // List of connections. DirectConnectSet []*DirectConnect `json:"DirectConnectSet,omitempty" name:"DirectConnectSet"` // Number of eligible connection lists. TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Whether all connections under the account have the service agreement signed. // Note: this field may return `null`, indicating that no valid value is obtained. AllSignLaw *bool `json:"AllSignLaw,omitempty" name:"AllSignLaw"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDirectConnectsResponse ¶
func NewDescribeDirectConnectsResponse() (response *DescribeDirectConnectsResponse)
func (*DescribeDirectConnectsResponse) FromJsonString ¶
func (r *DescribeDirectConnectsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDirectConnectsResponse) ToJsonString ¶
func (r *DescribeDirectConnectsResponse) ToJsonString() string
type DescribeInternetAddressQuotaRequest ¶
type DescribeInternetAddressQuotaRequest struct {
*tchttp.BaseRequest
}
func NewDescribeInternetAddressQuotaRequest ¶
func NewDescribeInternetAddressQuotaRequest() (request *DescribeInternetAddressQuotaRequest)
func (*DescribeInternetAddressQuotaRequest) FromJsonString ¶
func (r *DescribeInternetAddressQuotaRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressQuotaRequest) ToJsonString ¶
func (r *DescribeInternetAddressQuotaRequest) ToJsonString() string
type DescribeInternetAddressQuotaResponse ¶
type DescribeInternetAddressQuotaResponse struct { *tchttp.BaseResponse Response *struct { // Minimum prefix length allowed for a public IPv6 address // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv6PrefixLen *int64 `json:"Ipv6PrefixLen,omitempty" name:"Ipv6PrefixLen"` // Quota of BGP IPv4 addresses // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv4BgpQuota *int64 `json:"Ipv4BgpQuota,omitempty" name:"Ipv4BgpQuota"` // Quota of non-BGP IPv4 addresses // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv4OtherQuota *int64 `json:"Ipv4OtherQuota,omitempty" name:"Ipv4OtherQuota"` // Used number of BGP IPv4 addresses // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv4BgpNum *int64 `json:"Ipv4BgpNum,omitempty" name:"Ipv4BgpNum"` // Used number of non-BGP IPv4 addresses // Note: this field may return `null`, indicating that no valid values can be obtained. Ipv4OtherNum *int64 `json:"Ipv4OtherNum,omitempty" name:"Ipv4OtherNum"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInternetAddressQuotaResponse ¶
func NewDescribeInternetAddressQuotaResponse() (response *DescribeInternetAddressQuotaResponse)
func (*DescribeInternetAddressQuotaResponse) FromJsonString ¶
func (r *DescribeInternetAddressQuotaResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressQuotaResponse) ToJsonString ¶
func (r *DescribeInternetAddressQuotaResponse) ToJsonString() string
type DescribeInternetAddressRequest ¶
type DescribeInternetAddressRequest struct { *tchttp.BaseRequest // Offset. Default value: 0. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results. Default value: 20. Maximum value: 100. Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Filter conditions: // <li>AddrType, address type. Valid values: 0: BGP; 1: China Telecom; 2: China Mobile; 3: China Unicom</li> // <li>AddrProto, address protocol. Valid values: 0: IPv4; 1: IPv6</li> // <li>Status, address status. Valid values: 0: in use; 1: disabled; 2: returned</li> // <li>Subnet, public IP address array</li> // <InstanceIds>Public IP address ID array</li> Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeInternetAddressRequest ¶
func NewDescribeInternetAddressRequest() (request *DescribeInternetAddressRequest)
func (*DescribeInternetAddressRequest) FromJsonString ¶
func (r *DescribeInternetAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressRequest) ToJsonString ¶
func (r *DescribeInternetAddressRequest) ToJsonString() string
type DescribeInternetAddressResponse ¶
type DescribeInternetAddressResponse struct { *tchttp.BaseResponse Response *struct { // Number of public IP addresses for internet tunnels TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of the public IP addresses for internet tunnels // Note: this field may return `null`, indicating that no valid values can be obtained. Subnets []*InternetAddressDetail `json:"Subnets,omitempty" name:"Subnets"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInternetAddressResponse ¶
func NewDescribeInternetAddressResponse() (response *DescribeInternetAddressResponse)
func (*DescribeInternetAddressResponse) FromJsonString ¶
func (r *DescribeInternetAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressResponse) ToJsonString ¶
func (r *DescribeInternetAddressResponse) ToJsonString() string
type DescribeInternetAddressStatisticsRequest ¶
type DescribeInternetAddressStatisticsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeInternetAddressStatisticsRequest ¶
func NewDescribeInternetAddressStatisticsRequest() (request *DescribeInternetAddressStatisticsRequest)
func (*DescribeInternetAddressStatisticsRequest) FromJsonString ¶
func (r *DescribeInternetAddressStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressStatisticsRequest) ToJsonString ¶
func (r *DescribeInternetAddressStatisticsRequest) ToJsonString() string
type DescribeInternetAddressStatisticsResponse ¶
type DescribeInternetAddressStatisticsResponse struct { *tchttp.BaseResponse Response *struct { // Number of public IP address statistics for internet tunnels TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // List of the public IP address statistics for internet tunnels // Note: this field may return `null`, indicating that no valid values can be obtained. InternetAddressStatistics []*InternetAddressStatistics `json:"InternetAddressStatistics,omitempty" name:"InternetAddressStatistics"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeInternetAddressStatisticsResponse ¶
func NewDescribeInternetAddressStatisticsResponse() (response *DescribeInternetAddressStatisticsResponse)
func (*DescribeInternetAddressStatisticsResponse) FromJsonString ¶
func (r *DescribeInternetAddressStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInternetAddressStatisticsResponse) ToJsonString ¶
func (r *DescribeInternetAddressStatisticsResponse) ToJsonString() string
type DirectConnect ¶
type DirectConnect struct { // Connection ID. DirectConnectId *string `json:"DirectConnectId,omitempty" name:"DirectConnectId"` // Connection name. DirectConnectName *string `json:"DirectConnectName,omitempty" name:"DirectConnectName"` // Access point ID of a connection. AccessPointId *string `json:"AccessPointId,omitempty" name:"AccessPointId"` // Connection status. // PENDING: Applying. // REJECTED: Application rejected. // TOPAY: Payment pending. // PAID: Paid. // ALLOCATED: Constructing. // AVAILABLE: Available. // DELETING: Deleting. // DELETED: Deleted. State *string `json:"State,omitempty" name:"State"` // Connection creation time. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Connection activation time. EnabledTime *string `json:"EnabledTime,omitempty" name:"EnabledTime"` // ISP that provides connections. Valid values: ChinaTelecom (China Telecom), ChinaMobile (China Mobile), ChinaUnicom (China Unicom), In-houseWiring (in-house wiring), ChinaOther (other Chinese ISPs), InternationalOperator (international ISPs). LineOperator *string `json:"LineOperator,omitempty" name:"LineOperator"` // Location of a local IDC. Location *string `json:"Location,omitempty" name:"Location"` // Connection port bandwidth in Mbps. Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` // User-side port type of a connection. Valid values: 100Base-T (100-Megabit electrical Ethernet interface), 1000Base-T (1-Gigabit electrical Ethernet interface; it is the default value), 1000Base-LX (1-Gigabit single-mode optical Ethernet interface; 10 KM), 10GBase-T (10-Gigabit electrical Ethernet interface), 10GBase-LR (10-Gigabit single-mode optical Ethernet interface; 10 KM). PortType *string `json:"PortType,omitempty" name:"PortType"` // Circuit code of a connection, which is provided by the ISP or service provider. // Note: this field may return null, indicating that no valid values can be obtained. CircuitCode *string `json:"CircuitCode,omitempty" name:"CircuitCode"` // ID of a redundant connection. RedundantDirectConnectId *string `json:"RedundantDirectConnectId,omitempty" name:"RedundantDirectConnectId"` // VLAN for connection debugging, which is enabled and automatically assigned by default. // Note: this field may return null, indicating that no valid values can be obtained. Vlan *int64 `json:"Vlan,omitempty" name:"Vlan"` // Tencent-side IP address for connection debugging. // Note: this field may return null, indicating that no valid values can be obtained. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // User-side IP address for connection debugging. // Note: this field may return null, indicating that no valid values can be obtained. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // Name of the connection applicant, which is obtained from the account system by default. // Note: this field may return null, indicating that no valid values can be obtained. CustomerName *string `json:"CustomerName,omitempty" name:"CustomerName"` // Email address of the connection applicant, which is obtained from the account system by default. // Note: this field may return null, indicating that no valid values can be obtained. CustomerContactMail *string `json:"CustomerContactMail,omitempty" name:"CustomerContactMail"` // Contact number of the connection applicant, which is obtained from the account system by default. // Note: this field may return null, indicating that no valid values can be obtained. CustomerContactNumber *string `json:"CustomerContactNumber,omitempty" name:"CustomerContactNumber"` // Connection expiration time. // Note: this field may return null, indicating that no valid values can be obtained. ExpiredTime *string `json:"ExpiredTime,omitempty" name:"ExpiredTime"` // Connection billing mode. NON_RECURRING_CHARGE: One-time charge for accessing service // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` // Fault reporting contact person. // Note: this field may return null, indicating that no valid values can be obtained. FaultReportContactPerson *string `json:"FaultReportContactPerson,omitempty" name:"FaultReportContactPerson"` // Fault reporting contact number. // Note: this field may return null, indicating that no valid values can be obtained. FaultReportContactNumber *string `json:"FaultReportContactNumber,omitempty" name:"FaultReportContactNumber"` // Tag key-value pair // Note: this field may return null, indicating that no valid values can be obtained. TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet"` // Access point type of a connection. AccessPointType *string `json:"AccessPointType,omitempty" name:"AccessPointType"` // IDC city. // Note: this field may return null, indicating that no valid values can be obtained. IdcCity *string `json:"IdcCity,omitempty" name:"IdcCity"` // Billing status // Note: this field may return null, indicating that no valid values can be obtained. ChargeState *string `json:"ChargeState,omitempty" name:"ChargeState"` // Connection activation time. // Note: this field may return null, indicating that no valid values can be obtained. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // Whether the connection has the service agreement signed. // Note: this field may return `null`, indicating that no valid value is obtained. SignLaw *bool `json:"SignLaw,omitempty" name:"SignLaw"` // Whether the connection is an edge zone. // Note: this field may return `null`, indicating that no valid value is obtained. LocalZone *bool `json:"LocalZone,omitempty" name:"LocalZone"` // Number of dedicated tunnels with disabled VLAN in the connection // Note: this field may return `null`, indicating that no valid value can be found. VlanZeroDirectConnectTunnelCount *uint64 `json:"VlanZeroDirectConnectTunnelCount,omitempty" name:"VlanZeroDirectConnectTunnelCount"` // Number of dedicated tunnels with enabled VLAN in the connection // Note: this field may return `null`, indicating that no valid values can be obtained. OtherVlanDirectConnectTunnelCount *uint64 `json:"OtherVlanDirectConnectTunnelCount,omitempty" name:"OtherVlanDirectConnectTunnelCount"` // Minimum bandwidth of the connection // Note: this field may return `null`, indicating that no valid values can be obtained. MinBandwidth *uint64 `json:"MinBandwidth,omitempty" name:"MinBandwidth"` }
type DirectConnectTunnel ¶
type DirectConnectTunnel struct { // Dedicated tunnel ID. DirectConnectTunnelId *string `json:"DirectConnectTunnelId,omitempty" name:"DirectConnectTunnelId"` // Connection ID. DirectConnectId *string `json:"DirectConnectId,omitempty" name:"DirectConnectId"` // Dedicated tunnel status. // AVAILABLE: Ready or connected. // PENDING: Applying. // ALLOCATING: Configuring. // ALLOCATED: Configured. // ALTERING: Modifying. // DELETING: Deleting. // DELETED: Deleted. // COMFIRMING: To be accepted. // REJECTED: Rejected. State *string `json:"State,omitempty" name:"State"` // Connection owner, i.e., developer account ID. DirectConnectOwnerAccount *string `json:"DirectConnectOwnerAccount,omitempty" name:"DirectConnectOwnerAccount"` // Dedicated tunnel owner, i.e., developer account ID. OwnerAccount *string `json:"OwnerAccount,omitempty" name:"OwnerAccount"` // Network type. Valid values: VPC, BMVPC, CCN. // VPC: Virtual Private Cloud; BMVPC: BM VPC; CCN: Cloud Connect Network. NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` // Network of the VPC region, such as `ap-guangzhou`. NetworkRegion *string `json:"NetworkRegion,omitempty" name:"NetworkRegion"` // Unified VPC ID or BMVPC ID. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Direct connect gateway ID. DirectConnectGatewayId *string `json:"DirectConnectGatewayId,omitempty" name:"DirectConnectGatewayId"` // BGP: BGP routing; STATIC: Static routing. Default value: BGP routing. RouteType *string `json:"RouteType,omitempty" name:"RouteType"` // User-side BGP, including Asn and AuthKey. BgpPeer *BgpPeer `json:"BgpPeer,omitempty" name:"BgpPeer"` // User-side IP range. RouteFilterPrefixes []*RouteFilterPrefix `json:"RouteFilterPrefixes,omitempty" name:"RouteFilterPrefixes"` // VLAN of a dedicated tunnel. Vlan *int64 `json:"Vlan,omitempty" name:"Vlan"` // TencentAddress: Tencent-side IP address. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // CustomerAddress: User-side IP address. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // Dedicated tunnel name. DirectConnectTunnelName *string `json:"DirectConnectTunnelName,omitempty" name:"DirectConnectTunnelName"` // Creation time of a dedicated tunnel. CreatedTime *string `json:"CreatedTime,omitempty" name:"CreatedTime"` // Bandwidth value of a dedicated tunnel. Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` // Tag value of a dedicated tunnel. TagSet []*Tag `json:"TagSet,omitempty" name:"TagSet"` // Associated custom network probe ID // Note: this field may return null, indicating that no valid values can be obtained. NetDetectId *string `json:"NetDetectId,omitempty" name:"NetDetectId"` // BGP community switch // Note: this field may return null, indicating that no valid values can be obtained. EnableBGPCommunity *bool `json:"EnableBGPCommunity,omitempty" name:"EnableBGPCommunity"` // Whether it is a NAT tunnel // Note: this field may return null, indicating that no valid values can be obtained. NatType *int64 `json:"NatType,omitempty" name:"NatType"` // VPC region abbreviation, such as `gz`, `cd`. // Note: this field may return null, indicating that no valid values can be obtained. VpcRegion *string `json:"VpcRegion,omitempty" name:"VpcRegion"` // Whether to enable BFD // Note: this field may return null, indicating that no valid values can be obtained. BfdEnable *int64 `json:"BfdEnable,omitempty" name:"BfdEnable"` // Access point type of a dedicated tunnel. // Note: this field may return null, indicating that no valid values can be obtained. AccessPointType *string `json:"AccessPointType,omitempty" name:"AccessPointType"` // Direct connect gateway name. // Note: this field may return null, indicating that no valid values can be obtained. DirectConnectGatewayName *string `json:"DirectConnectGatewayName,omitempty" name:"DirectConnectGatewayName"` // VPC name. // Note: this field may return null, indicating that no valid values can be obtained. VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // Backup IP address on the Tencent side. TencentBackupAddress *string `json:"TencentBackupAddress,omitempty" name:"TencentBackupAddress"` // Whether the connection associated with the dedicated tunnel has the service agreement signed. // Note: this field may return `null`, indicating that no valid value is obtained. SignLaw *bool `json:"SignLaw,omitempty" name:"SignLaw"` // Cloud Attached Connection Service ID // Note: this field may return `null`, indicating that no valid values can be obtained. CloudAttachId *string `json:"CloudAttachId,omitempty" name:"CloudAttachId"` }
type DisableInternetAddressRequest ¶
type DisableInternetAddressRequest struct { *tchttp.BaseRequest // ID of the internet tunnel’s public IP address InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewDisableInternetAddressRequest ¶
func NewDisableInternetAddressRequest() (request *DisableInternetAddressRequest)
func (*DisableInternetAddressRequest) FromJsonString ¶
func (r *DisableInternetAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableInternetAddressRequest) ToJsonString ¶
func (r *DisableInternetAddressRequest) ToJsonString() string
type DisableInternetAddressResponse ¶
type DisableInternetAddressResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDisableInternetAddressResponse ¶
func NewDisableInternetAddressResponse() (response *DisableInternetAddressResponse)
func (*DisableInternetAddressResponse) FromJsonString ¶
func (r *DisableInternetAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DisableInternetAddressResponse) ToJsonString ¶
func (r *DisableInternetAddressResponse) ToJsonString() string
type EnableInternetAddressRequest ¶
type EnableInternetAddressRequest struct { *tchttp.BaseRequest // ID of the internet tunnel’s public IP address InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewEnableInternetAddressRequest ¶
func NewEnableInternetAddressRequest() (request *EnableInternetAddressRequest)
func (*EnableInternetAddressRequest) FromJsonString ¶
func (r *EnableInternetAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableInternetAddressRequest) ToJsonString ¶
func (r *EnableInternetAddressRequest) ToJsonString() string
type EnableInternetAddressResponse ¶
type EnableInternetAddressResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewEnableInternetAddressResponse ¶
func NewEnableInternetAddressResponse() (response *EnableInternetAddressResponse)
func (*EnableInternetAddressResponse) FromJsonString ¶
func (r *EnableInternetAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*EnableInternetAddressResponse) ToJsonString ¶
func (r *EnableInternetAddressResponse) ToJsonString() string
type InternetAddressDetail ¶
type InternetAddressDetail struct { // Internet tunnel’s IP address ID // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Internet tunnel’s network address // Note: this field may return `null`, indicating that no valid values can be obtained. Subnet *string `json:"Subnet,omitempty" name:"Subnet"` // Mask length of a network address // Note: this field may return `null`, indicating that no valid values can be obtained. MaskLen *int64 `json:"MaskLen,omitempty" name:"MaskLen"` // Address type. Valid values: 0: BGP // 1: China Telecom // 2: China Mobile // 3: China Unicom // Note: this field may return `null`, indicating that no valid values can be obtained. AddrType *int64 `json:"AddrType,omitempty" name:"AddrType"` // Address status. Valid values: 0: in use // 1: disabled // 2: returned Status *int64 `json:"Status,omitempty" name:"Status"` // Applied at // Note: this field may return `null`, indicating that no valid values can be obtained. ApplyTime *string `json:"ApplyTime,omitempty" name:"ApplyTime"` // Disabled at // Note: this field may return `null`, indicating that no valid values can be obtained. StopTime *string `json:"StopTime,omitempty" name:"StopTime"` // Returned at // Note: this field may return `null`, indicating that no valid values can be obtained. ReleaseTime *string `json:"ReleaseTime,omitempty" name:"ReleaseTime"` // Region // Note: this field may return `null`, indicating that no valid values can be obtained. Region *string `json:"Region,omitempty" name:"Region"` // User ID // Note: this field may return `null`, indicating that no valid values can be obtained. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // Address protocol. Valid values: 0: IPv4; 1: IPv6 // Note: this field may return `null`, indicating that no valid values can be obtained. AddrProto *int64 `json:"AddrProto,omitempty" name:"AddrProto"` // Retention period of a released IP address, in days // Note: this field may return `null`, indicating that no valid values can be obtained. ReserveTime *int64 `json:"ReserveTime,omitempty" name:"ReserveTime"` }
type InternetAddressStatistics ¶
type InternetAddressStatistics struct { // Region // Note: this field may return `null`, indicating that no valid values can be obtained. Region *string `json:"Region,omitempty" name:"Region"` // Number of public IP addresses for internet tunnels // Note: this field may return `null`, indicating that no valid values can be obtained. SubnetNum *int64 `json:"SubnetNum,omitempty" name:"SubnetNum"` }
type ModifyDirectConnectAttributeRequest ¶
type ModifyDirectConnectAttributeRequest struct { *tchttp.BaseRequest // Connection ID. DirectConnectId *string `json:"DirectConnectId,omitempty" name:"DirectConnectId"` // Connection name. DirectConnectName *string `json:"DirectConnectName,omitempty" name:"DirectConnectName"` // Circuit code of a connection, which is provided by the ISP or connection provider. CircuitCode *string `json:"CircuitCode,omitempty" name:"CircuitCode"` // VLAN for connection debugging. Vlan *int64 `json:"Vlan,omitempty" name:"Vlan"` // Tencent-side IP address for connection debugging. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // User-side IP address for connection debugging. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // Name of connection applicant, which is obtained from the account system by default. CustomerName *string `json:"CustomerName,omitempty" name:"CustomerName"` // Email address of connection applicant, which is obtained from the account system by default. CustomerContactMail *string `json:"CustomerContactMail,omitempty" name:"CustomerContactMail"` // Contact number of connection applicant, which is obtained from the account system by default. CustomerContactNumber *string `json:"CustomerContactNumber,omitempty" name:"CustomerContactNumber"` // Fault reporting contact person. FaultReportContactPerson *string `json:"FaultReportContactPerson,omitempty" name:"FaultReportContactPerson"` // Fault reporting contact number. FaultReportContactNumber *string `json:"FaultReportContactNumber,omitempty" name:"FaultReportContactNumber"` // Whether the connection applicant has signed the service agreement. SignLaw *bool `json:"SignLaw,omitempty" name:"SignLaw"` // Connection’s bandwidth Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` }
func NewModifyDirectConnectAttributeRequest ¶
func NewModifyDirectConnectAttributeRequest() (request *ModifyDirectConnectAttributeRequest)
func (*ModifyDirectConnectAttributeRequest) FromJsonString ¶
func (r *ModifyDirectConnectAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDirectConnectAttributeRequest) ToJsonString ¶
func (r *ModifyDirectConnectAttributeRequest) ToJsonString() string
type ModifyDirectConnectAttributeResponse ¶
type ModifyDirectConnectAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDirectConnectAttributeResponse ¶
func NewModifyDirectConnectAttributeResponse() (response *ModifyDirectConnectAttributeResponse)
func (*ModifyDirectConnectAttributeResponse) FromJsonString ¶
func (r *ModifyDirectConnectAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDirectConnectAttributeResponse) ToJsonString ¶
func (r *ModifyDirectConnectAttributeResponse) ToJsonString() string
type ModifyDirectConnectTunnelAttributeRequest ¶
type ModifyDirectConnectTunnelAttributeRequest struct { *tchttp.BaseRequest // Dedicated tunnel ID. DirectConnectTunnelId *string `json:"DirectConnectTunnelId,omitempty" name:"DirectConnectTunnelId"` // Dedicated tunnel name. DirectConnectTunnelName *string `json:"DirectConnectTunnelName,omitempty" name:"DirectConnectTunnelName"` // User-side BGP, including Asn and AuthKey. BgpPeer *BgpPeer `json:"BgpPeer,omitempty" name:"BgpPeer"` // User-side IP range. RouteFilterPrefixes []*RouteFilterPrefix `json:"RouteFilterPrefixes,omitempty" name:"RouteFilterPrefixes"` // Tencent-side IP address. TencentAddress *string `json:"TencentAddress,omitempty" name:"TencentAddress"` // User-side IP address. CustomerAddress *string `json:"CustomerAddress,omitempty" name:"CustomerAddress"` // Bandwidth value of a dedicated tunnel in Mbps. Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` // Tencent-side standby IP address TencentBackupAddress *string `json:"TencentBackupAddress,omitempty" name:"TencentBackupAddress"` }
func NewModifyDirectConnectTunnelAttributeRequest ¶
func NewModifyDirectConnectTunnelAttributeRequest() (request *ModifyDirectConnectTunnelAttributeRequest)
func (*ModifyDirectConnectTunnelAttributeRequest) FromJsonString ¶
func (r *ModifyDirectConnectTunnelAttributeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDirectConnectTunnelAttributeRequest) ToJsonString ¶
func (r *ModifyDirectConnectTunnelAttributeRequest) ToJsonString() string
type ModifyDirectConnectTunnelAttributeResponse ¶
type ModifyDirectConnectTunnelAttributeResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDirectConnectTunnelAttributeResponse ¶
func NewModifyDirectConnectTunnelAttributeResponse() (response *ModifyDirectConnectTunnelAttributeResponse)
func (*ModifyDirectConnectTunnelAttributeResponse) FromJsonString ¶
func (r *ModifyDirectConnectTunnelAttributeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyDirectConnectTunnelAttributeResponse) ToJsonString ¶
func (r *ModifyDirectConnectTunnelAttributeResponse) ToJsonString() string
type NQAInfo ¶
type NQAInfo struct { // Number of health checks ProbeFailedTimes *int64 `json:"ProbeFailedTimes,omitempty" name:"ProbeFailedTimes"` // Health check interval Interval *int64 `json:"Interval,omitempty" name:"Interval"` // IP address for the health check DestinationIp *string `json:"DestinationIp,omitempty" name:"DestinationIp"` }
type RejectDirectConnectTunnelRequest ¶
type RejectDirectConnectTunnelRequest struct { *tchttp.BaseRequest // None. DirectConnectTunnelId *string `json:"DirectConnectTunnelId,omitempty" name:"DirectConnectTunnelId"` }
func NewRejectDirectConnectTunnelRequest ¶
func NewRejectDirectConnectTunnelRequest() (request *RejectDirectConnectTunnelRequest)
func (*RejectDirectConnectTunnelRequest) FromJsonString ¶
func (r *RejectDirectConnectTunnelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RejectDirectConnectTunnelRequest) ToJsonString ¶
func (r *RejectDirectConnectTunnelRequest) ToJsonString() string
type RejectDirectConnectTunnelResponse ¶
type RejectDirectConnectTunnelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRejectDirectConnectTunnelResponse ¶
func NewRejectDirectConnectTunnelResponse() (response *RejectDirectConnectTunnelResponse)
func (*RejectDirectConnectTunnelResponse) FromJsonString ¶
func (r *RejectDirectConnectTunnelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*RejectDirectConnectTunnelResponse) ToJsonString ¶
func (r *RejectDirectConnectTunnelResponse) ToJsonString() string
type ReleaseInternetAddressRequest ¶
type ReleaseInternetAddressRequest struct { *tchttp.BaseRequest // ID of the internet tunnel’s public IP address InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }
func NewReleaseInternetAddressRequest ¶
func NewReleaseInternetAddressRequest() (request *ReleaseInternetAddressRequest)
func (*ReleaseInternetAddressRequest) FromJsonString ¶
func (r *ReleaseInternetAddressRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReleaseInternetAddressRequest) ToJsonString ¶
func (r *ReleaseInternetAddressRequest) ToJsonString() string
type ReleaseInternetAddressResponse ¶
type ReleaseInternetAddressResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewReleaseInternetAddressResponse ¶
func NewReleaseInternetAddressResponse() (response *ReleaseInternetAddressResponse)
func (*ReleaseInternetAddressResponse) FromJsonString ¶
func (r *ReleaseInternetAddressResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ReleaseInternetAddressResponse) ToJsonString ¶
func (r *ReleaseInternetAddressResponse) ToJsonString() string
type RouteFilterPrefix ¶
type RouteFilterPrefix struct { // User-side IP range. Cidr *string `json:"Cidr,omitempty" name:"Cidr"` }
type Tag ¶
type Tag struct { // Tag key // Note: this field may return null, indicating that no valid values can be obtained. Key *string `json:"Key,omitempty" name:"Key"` // Tag value // Note: this field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitempty" name:"Value"` }