model

package
v0.1.90 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptAttachmentRequest added in v0.1.56

type AcceptAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 连接ID
	AttachmentId string `json:"attachment_id"`
}

AcceptAttachmentRequest Request Object

func (AcceptAttachmentRequest) String added in v0.1.56

func (o AcceptAttachmentRequest) String() string

type AcceptAttachmentResponse added in v0.1.56

type AcceptAttachmentResponse struct {
	Attachment *AttachmentResponse `json:"attachment,omitempty"`

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

AcceptAttachmentResponse Response Object

func (AcceptAttachmentResponse) String added in v0.1.56

func (o AcceptAttachmentResponse) String() string

type AssociateRouteTableRequest

type AssociateRouteTableRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

AssociateRouteTableRequest Request Object

func (AssociateRouteTableRequest) String

type AssociateRouteTableResponse

type AssociateRouteTableResponse struct {
	Association *Association `json:"association,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AssociateRouteTableResponse Response Object

func (AssociateRouteTableResponse) String

type Association

type Association struct {

	// 关联唯一标识
	Id *string `json:"id,omitempty"`

	// 路由表唯一标识
	RouteTableId *string `json:"route_table_id,omitempty"`

	// 连接唯一标识
	AttachmentId *string `json:"attachment_id,omitempty"`

	// 连接的类型
	ResourceType *string `json:"resource_type,omitempty"`

	// 连接的资源唯一标识
	ResourceId *string `json:"resource_id,omitempty"`

	// 状态
	State *string `json:"state,omitempty"`

	// 资源创建时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 资源更新时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`

	RoutePolicy *ExportRoutePolicy `json:"route_policy,omitempty"`
}

Association 关联详情

func (Association) String

func (o Association) String() string

type AssociationRequestBody

type AssociationRequestBody struct {

	// 连接唯一标识
	AttachmentId *string `json:"attachment_id,omitempty"`

	RoutePolicy *ExportRoutePolicy `json:"route_policy,omitempty"`
}

AssociationRequestBody 关联

func (AssociationRequestBody) String

func (o AssociationRequestBody) String() string

type AttachmentDetails

type AttachmentDetails struct {

	// 连接ID
	Id string `json:"id"`

	// 连接名字
	Name string `json:"name"`

	// 描述信息
	Description *string `json:"description,omitempty"`

	// 连接状态:pending|available|modifying|deleting|deleted|failed|pending_acceptance|rejected|initiating_request|freezed
	State *string `json:"state,omitempty"`

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

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

	// 企业路由器关联tag
	Tags *[]Tag `json:"tags,omitempty"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// er id
	ErId *string `json:"er_id,omitempty"`

	// 内部连接关联的资源ID
	ResourceId string `json:"resource_id"`

	// 内部连接关联的资源类型: - vgw:云专线的虚拟网关 - vpn:vpn网关 -  - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  - vpc:虚拟私有云 -
	ResourceType string `json:"resource_type"`

	// 资源所属项目ID
	ResourceProjectId *string `json:"resource_project_id,omitempty"`

	// 表示此连接是否被关联
	Associated *bool `json:"associated,omitempty"`

	// 关联路由表id
	RouteTableId *string `json:"route_table_id,omitempty"`
}

func (AttachmentDetails) String

func (o AttachmentDetails) String() string

type AttachmentResponse

type AttachmentResponse struct {

	// 连接名字
	Name string `json:"name"`

	// 连接ID
	Id string `json:"id"`

	// 描述信息
	Description string `json:"description"`

	// 连接状态:pending|available|modifying|deleting|deleted|failed|pending_acceptance|rejected|initiating_request|freezed
	State string `json:"state"`

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

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

	// 企业路由器关联tag
	Tags *[]Tag `json:"tags,omitempty"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// 内部连接关联的资源ID
	ResourceId string `json:"resource_id"`

	// 内部连接关联的资源类型: - vgw:云专线的虚拟网关 - vpn:vpn网关 -  - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  - vpc:虚拟私有云 -
	ResourceType string `json:"resource_type"`

	// 资源所属项目ID
	ResourceProjectId *string `json:"resource_project_id,omitempty"`
}

AttachmentResponse 连接基本信息详情

func (AttachmentResponse) String

func (o AttachmentResponse) String() string

type AvailableZone

type AvailableZone struct {

	// 可用区编码
	Code *string `json:"code,omitempty"`

	// 可用区是否可用available|unavailable
	State *string `json:"state,omitempty"`
}

func (AvailableZone) String

func (o AvailableZone) String() string

type BatchCreateResourceTagsRequest added in v0.1.49

type BatchCreateResourceTagsRequest struct {

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

	// 标签资源类型: - instance: 企业路由器实例 - route-table: 路由表 - vpc-attachment: VPC连接 - vgw-attachment: 虚拟网关连接 - peering-attachment: 对等连接(Peering)连接 - vpn-attachment: VPN网关连接 -  -  -  -  - attachments: 所有连接类型
	ResourceType BatchCreateResourceTagsRequestResourceType `json:"resource_type"`

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

BatchCreateResourceTagsRequest Request Object

func (BatchCreateResourceTagsRequest) String added in v0.1.49

type BatchCreateResourceTagsRequestResourceType added in v0.1.49

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

func (BatchCreateResourceTagsRequestResourceType) MarshalJSON added in v0.1.49

func (*BatchCreateResourceTagsRequestResourceType) UnmarshalJSON added in v0.1.49

func (BatchCreateResourceTagsRequestResourceType) Value added in v0.1.49

type BatchCreateResourceTagsResponse added in v0.1.49

type BatchCreateResourceTagsResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchCreateResourceTagsResponse Response Object

func (BatchCreateResourceTagsResponse) String added in v0.1.49

type BatchOperateResourceTagsRequestBody added in v0.1.49

type BatchOperateResourceTagsRequestBody struct {

	// 功能说明:操作标识。 取值范围: create(创建) delete(删除)
	Action BatchOperateResourceTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags *[]Tag `json:"tags,omitempty"`
}

BatchOperateResourceTagsRequestBody 批量添加删除的请求体。

func (BatchOperateResourceTagsRequestBody) String added in v0.1.49

type BatchOperateResourceTagsRequestBodyAction added in v0.1.49

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

func (BatchOperateResourceTagsRequestBodyAction) MarshalJSON added in v0.1.49

func (*BatchOperateResourceTagsRequestBodyAction) UnmarshalJSON added in v0.1.49

func (BatchOperateResourceTagsRequestBodyAction) Value added in v0.1.49

type BatchOperateResourceTagsRequestBodyActionEnum added in v0.1.49

type BatchOperateResourceTagsRequestBodyActionEnum struct {
	CREATE BatchOperateResourceTagsRequestBodyAction
	DELETE BatchOperateResourceTagsRequestBodyAction
}

func GetBatchOperateResourceTagsRequestBodyActionEnum added in v0.1.49

func GetBatchOperateResourceTagsRequestBodyActionEnum() BatchOperateResourceTagsRequestBodyActionEnum

type ChangeAvailabilityZoneRequest

type ChangeAvailabilityZoneRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

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

ChangeAvailabilityZoneRequest Request Object

func (ChangeAvailabilityZoneRequest) String

type ChangeAvailabilityZoneResponse

type ChangeAvailabilityZoneResponse struct {
	Instance *EnterpriseRouter `json:"instance,omitempty"`

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

ChangeAvailabilityZoneResponse Response Object

func (ChangeAvailabilityZoneResponse) String

type CreateEnterpriseRouter

type CreateEnterpriseRouter struct {

	// 企业路由器实例名称
	Name string `json:"name"`

	// 企业路由器实例描述信息
	Description *string `json:"description,omitempty"`

	// 企业路由器实例的BGP AS号
	Asn int64 `json:"asn"`

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

	// 计费模式 按需
	ChargeMode *CreateEnterpriseRouterChargeMode `json:"charge_mode,omitempty"`

	// 标签信息
	Tags *[]Tag `json:"tags,omitempty"`

	// 是否开启默认路由表传播,默认false不开启
	EnableDefaultPropagation *bool `json:"enable_default_propagation,omitempty"`

	// 是否开启默认路由表关联,默认false不开启
	EnableDefaultAssociation *bool `json:"enable_default_association,omitempty"`

	// 企业路由器所在的可用区列表
	AvailabilityZoneIds []string `json:"availability_zone_ids"`

	// 是否开启自动接受共享连接创建,默认false不开启
	AutoAcceptSharedAttachments *bool `json:"auto_accept_shared_attachments,omitempty"`
}

CreateEnterpriseRouter 企业路由器

func (CreateEnterpriseRouter) String

func (o CreateEnterpriseRouter) String() string

type CreateEnterpriseRouterChargeMode

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

func (CreateEnterpriseRouterChargeMode) MarshalJSON

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

func (*CreateEnterpriseRouterChargeMode) UnmarshalJSON

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

func (CreateEnterpriseRouterChargeMode) Value

type CreateEnterpriseRouterChargeModeEnum

type CreateEnterpriseRouterChargeModeEnum struct {
	POST_PAID CreateEnterpriseRouterChargeMode
	PRE_PAID  CreateEnterpriseRouterChargeMode
}

func GetCreateEnterpriseRouterChargeModeEnum

func GetCreateEnterpriseRouterChargeModeEnum() CreateEnterpriseRouterChargeModeEnum

type CreateEnterpriseRouterRequest

type CreateEnterpriseRouterRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

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

CreateEnterpriseRouterRequest Request Object

func (CreateEnterpriseRouterRequest) String

type CreateEnterpriseRouterRequestBody

type CreateEnterpriseRouterRequestBody struct {
	Instance *CreateEnterpriseRouter `json:"instance"`
}

CreateEnterpriseRouterRequestBody This is a auto create Body Object

func (CreateEnterpriseRouterRequestBody) String

type CreateEnterpriseRouterResponse

type CreateEnterpriseRouterResponse struct {
	Instance *EnterpriseRouter `json:"instance,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateEnterpriseRouterResponse Response Object

func (CreateEnterpriseRouterResponse) String

type CreateFlowLogRequest added in v0.1.49

type CreateFlowLogRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 企业路由器实例ID
	ErId string `json:"er_id"`

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

CreateFlowLogRequest Request Object

func (CreateFlowLogRequest) String added in v0.1.49

func (o CreateFlowLogRequest) String() string

type CreateFlowLogRequestBody added in v0.1.49

type CreateFlowLogRequestBody struct {
	FlowLog *FlowLogRequest `json:"flow_log"`
}

CreateFlowLogRequestBody 创建流日志请求体

func (CreateFlowLogRequestBody) String added in v0.1.49

func (o CreateFlowLogRequestBody) String() string

type CreateFlowLogResponse added in v0.1.49

type CreateFlowLogResponse struct {
	FlowLog *FlowLog `json:"flow_log,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateFlowLogResponse Response Object

func (CreateFlowLogResponse) String added in v0.1.49

func (o CreateFlowLogResponse) String() string

type CreateResourceTagRequest added in v0.1.12

type CreateResourceTagRequest struct {

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

	// 标签资源类型: - instance: 企业路由器实例 - route-table: 路由表 - vpc-attachment: VPC连接 - vgw-attachment: 虚拟网关连接 - peering-attachment: 对等连接(Peering)连接 - vpn-attachment: VPN网关连接 -  -  -  -  - attachments: 所有连接类型
	ResourceType CreateResourceTagRequestResourceType `json:"resource_type"`

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

CreateResourceTagRequest Request Object

func (CreateResourceTagRequest) String added in v0.1.12

func (o CreateResourceTagRequest) String() string

type CreateResourceTagRequestBody added in v0.1.12

type CreateResourceTagRequestBody struct {
	Tag *Tag `json:"tag"`
}

CreateResourceTagRequestBody 创建资源标签的请求体

func (CreateResourceTagRequestBody) String added in v0.1.12

type CreateResourceTagRequestResourceType added in v0.1.12

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

func (CreateResourceTagRequestResourceType) MarshalJSON added in v0.1.12

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

func (*CreateResourceTagRequestResourceType) UnmarshalJSON added in v0.1.12

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

func (CreateResourceTagRequestResourceType) Value added in v0.1.12

type CreateResourceTagResponse added in v0.1.12

type CreateResourceTagResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateResourceTagResponse Response Object

func (CreateResourceTagResponse) String added in v0.1.12

func (o CreateResourceTagResponse) String() string

type CreateRoute

type CreateRoute struct {

	// 路由目的地址
	Destination string `json:"destination"`

	// 路由下一跳指向的连接ID
	AttachmentId *string `json:"attachment_id,omitempty"`

	// 是否为黑洞路由,默认为false
	IsBlackhole *bool `json:"is_blackhole,omitempty"`
}

CreateRoute 创建路由请求体

func (CreateRoute) String

func (o CreateRoute) String() string

type CreateRouteRequestBody

type CreateRouteRequestBody struct {
	Route *CreateRoute `json:"route"`
}

CreateRouteRequestBody This is a auto create Body Object

func (CreateRouteRequestBody) String

func (o CreateRouteRequestBody) String() string

type CreateRouteTable

type CreateRouteTable struct {

	// 路由器表名称
	Name string `json:"name"`

	// 路由器表描述信息
	Description *string `json:"description,omitempty"`

	// 标签信息
	Tags *[]Tag `json:"tags,omitempty"`
}

CreateRouteTable 路由表

func (CreateRouteTable) String

func (o CreateRouteTable) String() string

type CreateRouteTableRequest

type CreateRouteTableRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 企业路由器实例ID
	ErId string `json:"er_id"`

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

CreateRouteTableRequest Request Object

func (CreateRouteTableRequest) String

func (o CreateRouteTableRequest) String() string

type CreateRouteTableRequestBody

type CreateRouteTableRequestBody struct {
	RouteTable *CreateRouteTable `json:"route_table,omitempty"`
}

CreateRouteTableRequestBody This is a auto create Body Object

func (CreateRouteTableRequestBody) String

type CreateRouteTableResponse

type CreateRouteTableResponse struct {
	RouteTable *RouteTable `json:"route_table,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateRouteTableResponse Response Object

func (CreateRouteTableResponse) String

func (o CreateRouteTableResponse) String() string

type CreateStaticRouteRequest

type CreateStaticRouteRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

CreateStaticRouteRequest Request Object

func (CreateStaticRouteRequest) String

func (o CreateStaticRouteRequest) String() string

type CreateStaticRouteResponse

type CreateStaticRouteResponse struct {
	Route *Route `json:"route,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateStaticRouteResponse Response Object

func (CreateStaticRouteResponse) String

func (o CreateStaticRouteResponse) String() string

type CreateVpcAttachmentBody

type CreateVpcAttachmentBody struct {
	VpcAttachment *VpcAttachmentCreateRequest `json:"vpc_attachment"`
}

func (CreateVpcAttachmentBody) String

func (o CreateVpcAttachmentBody) String() string

type CreateVpcAttachmentRequest

type CreateVpcAttachmentRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 企业路由器实例ID
	ErId string `json:"er_id"`

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

CreateVpcAttachmentRequest Request Object

func (CreateVpcAttachmentRequest) String

type CreateVpcAttachmentResponse

type CreateVpcAttachmentResponse struct {
	VpcAttachment *VpcAttachmentDetails `json:"vpc_attachment,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateVpcAttachmentResponse Response Object

func (CreateVpcAttachmentResponse) String

type DeleteEnterpriseRouterRequest

type DeleteEnterpriseRouterRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`
}

DeleteEnterpriseRouterRequest Request Object

func (DeleteEnterpriseRouterRequest) String

type DeleteEnterpriseRouterResponse

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

DeleteEnterpriseRouterResponse Response Object

func (DeleteEnterpriseRouterResponse) String

type DeleteFlowLogRequest added in v0.1.49

type DeleteFlowLogRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 流日志ID
	FlowLogId string `json:"flow_log_id"`
}

DeleteFlowLogRequest Request Object

func (DeleteFlowLogRequest) String added in v0.1.49

func (o DeleteFlowLogRequest) String() string

type DeleteFlowLogResponse added in v0.1.49

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

DeleteFlowLogResponse Response Object

func (DeleteFlowLogResponse) String added in v0.1.49

func (o DeleteFlowLogResponse) String() string

type DeleteResourceTagRequest added in v0.1.12

type DeleteResourceTagRequest struct {

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

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

	// 标签资源类型: - instance: 企业路由器实例 - route-table: 路由表 - vpc-attachment: VPC连接 - vgw-attachment: 虚拟网关连接 - peering-attachment: 对等连接(Peering)连接 - vpn-attachment: VPN网关连接 -  -  -  -  - attachments: 所有连接类型
	ResourceType DeleteResourceTagRequestResourceType `json:"resource_type"`
}

DeleteResourceTagRequest Request Object

func (DeleteResourceTagRequest) String added in v0.1.12

func (o DeleteResourceTagRequest) String() string

type DeleteResourceTagRequestResourceType added in v0.1.12

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

func (DeleteResourceTagRequestResourceType) MarshalJSON added in v0.1.12

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

func (*DeleteResourceTagRequestResourceType) UnmarshalJSON added in v0.1.12

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

func (DeleteResourceTagRequestResourceType) Value added in v0.1.12

type DeleteResourceTagResponse added in v0.1.12

type DeleteResourceTagResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteResourceTagResponse Response Object

func (DeleteResourceTagResponse) String added in v0.1.12

func (o DeleteResourceTagResponse) String() string

type DeleteRouteTableRequest

type DeleteRouteTableRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`
}

DeleteRouteTableRequest Request Object

func (DeleteRouteTableRequest) String

func (o DeleteRouteTableRequest) String() string

type DeleteRouteTableResponse

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

DeleteRouteTableResponse Response Object

func (DeleteRouteTableResponse) String

func (o DeleteRouteTableResponse) String() string

type DeleteStaticRouteRequest

type DeleteStaticRouteRequest struct {

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 路由ID
	RouteId string `json:"route_id"`
}

DeleteStaticRouteRequest Request Object

func (DeleteStaticRouteRequest) String

func (o DeleteStaticRouteRequest) String() string

type DeleteStaticRouteResponse

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

DeleteStaticRouteResponse Response Object

func (DeleteStaticRouteResponse) String

func (o DeleteStaticRouteResponse) String() string

type DeleteVpcAttachmentRequest

type DeleteVpcAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// VPC连接ID
	VpcAttachmentId string `json:"vpc_attachment_id"`
}

DeleteVpcAttachmentRequest Request Object

func (DeleteVpcAttachmentRequest) String

type DeleteVpcAttachmentResponse

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

DeleteVpcAttachmentResponse Response Object

func (DeleteVpcAttachmentResponse) String

type DisableFlowLogRequest added in v0.1.49

type DisableFlowLogRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 流日志ID
	FlowLogId string `json:"flow_log_id"`
}

DisableFlowLogRequest Request Object

func (DisableFlowLogRequest) String added in v0.1.49

func (o DisableFlowLogRequest) String() string

type DisableFlowLogResponse added in v0.1.49

type DisableFlowLogResponse struct {
	FlowLog *FlowLog `json:"flow_log,omitempty"`

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

DisableFlowLogResponse Response Object

func (DisableFlowLogResponse) String added in v0.1.49

func (o DisableFlowLogResponse) String() string

type DisablePropagationRequest

type DisablePropagationRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

DisablePropagationRequest Request Object

func (DisablePropagationRequest) String

func (o DisablePropagationRequest) String() string

type DisablePropagationResponse

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

DisablePropagationResponse Response Object

func (DisablePropagationResponse) String

type DisassociateRouteTableRequest

type DisassociateRouteTableRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

DisassociateRouteTableRequest Request Object

func (DisassociateRouteTableRequest) String

type DisassociateRouteTableResponse

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

DisassociateRouteTableResponse Response Object

func (DisassociateRouteTableResponse) String

type EffectiveRoute

type EffectiveRoute struct {

	// 路由ID
	RouteId *string `json:"route_id,omitempty"`

	// 路由目的地
	Destination *string `json:"destination,omitempty"`

	// 路由下一跳列表
	NextHops *[]RouteAttachment `json:"next_hops,omitempty"`

	// 是否黑洞路由
	IsBlackhole *bool `json:"is_blackhole,omitempty"`

	// 路由类型
	RouteType *string `json:"route_type,omitempty"`
}

EffectiveRoute 有效路由数据

func (EffectiveRoute) String

func (o EffectiveRoute) String() string

type EnableFlowLogRequest added in v0.1.49

type EnableFlowLogRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 流日志ID
	FlowLogId string `json:"flow_log_id"`
}

EnableFlowLogRequest Request Object

func (EnableFlowLogRequest) String added in v0.1.49

func (o EnableFlowLogRequest) String() string

type EnableFlowLogResponse added in v0.1.49

type EnableFlowLogResponse struct {
	FlowLog *FlowLog `json:"flow_log,omitempty"`

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

EnableFlowLogResponse Response Object

func (EnableFlowLogResponse) String added in v0.1.49

func (o EnableFlowLogResponse) String() string

type EnablePropagationRequest

type EnablePropagationRequest struct {

	// 幂等性标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

EnablePropagationRequest Request Object

func (EnablePropagationRequest) String

func (o EnablePropagationRequest) String() string

type EnablePropagationResponse

type EnablePropagationResponse struct {
	Propagation *Propagation `json:"propagation,omitempty"`

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

	XClientToken   *string `json:"X-Client-Token,omitempty"`
	HttpStatusCode int     `json:"-"`
}

EnablePropagationResponse Response Object

func (EnablePropagationResponse) String

func (o EnablePropagationResponse) String() string

type EnterpriseRouter

type EnterpriseRouter struct {

	// 企业路由器实例的ID
	Id string `json:"id"`

	// 企业路由器实例名称
	Name string `json:"name"`

	// 企业路由器实例描述信息
	Description *string `json:"description,omitempty"`

	// 运行状态
	State string `json:"state"`

	// 标签信息
	Tags *[]Tag `json:"tags,omitempty"`

	// 计费模式 按需
	ChargeMode *string `json:"charge_mode,omitempty"`

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

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

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

	// 项目ID
	ProjectId string `json:"project_id"`

	// 企业路由器实例的BGP AS号
	Asn int64 `json:"asn"`

	// 是否开启默认路由表传播,默认false不开启
	EnableDefaultPropagation bool `json:"enable_default_propagation"`

	// 是否开启默认路由表关联,默认false不开启
	EnableDefaultAssociation bool `json:"enable_default_association"`

	// 默认传播路由表id
	DefaultPropagationRouteTableId *string `json:"default_propagation_route_table_id,omitempty"`

	// 默认关联路由表id
	DefaultAssociationRouteTableId *string `json:"default_association_route_table_id,omitempty"`

	// 企业路由器所在可用区信息
	AvailabilityZoneIds []string `json:"availability_zone_ids"`

	// 是否自动接受共享连接创建,默认false不开启
	AutoAcceptSharedAttachments *bool `json:"auto_accept_shared_attachments,omitempty"`
}

EnterpriseRouter 企业路由器

func (EnterpriseRouter) String

func (o EnterpriseRouter) String() string

type EnterpriseRouterAz

type EnterpriseRouterAz struct {

	// 企业路由器实例所在的可用区
	AvailabilityZoneIds []string `json:"availability_zone_ids"`
}

func (EnterpriseRouterAz) String

func (o EnterpriseRouterAz) String() string

type ExportRoutePolicy

type ExportRoutePolicy struct {

	// 出方向Ipv4协议路由策略id
	ExportPolicyId *string `json:"export_policy_id,omitempty"`
}

ExportRoutePolicy 出方向路由策略

func (ExportRoutePolicy) String

func (o ExportRoutePolicy) String() string

type FlowLog added in v0.1.49

type FlowLog struct {

	// 流日志ID
	Id string `json:"id"`

	// 流日志名称
	Name string `json:"name"`

	// 流日志描述
	Description *string `json:"description,omitempty"`

	// 流日志任务创建者项目ID
	ProjectId string `json:"project_id"`

	// 采集的资源类型:attachment
	ResourceType string `json:"resource_type"`

	// 采集的资源ID
	ResourceId string `json:"resource_id"`

	// 日志组ID
	LogGroupId string `json:"log_group_id"`

	// 日志流ID
	LogStreamId string `json:"log_stream_id"`

	// 流日志存储类型
	LogStoreType string `json:"log_store_type"`

	// 日志聚合时间,单位s,取值范围:60-600
	LogAggregationInterval *int32 `json:"log_aggregation_interval,omitempty"`

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

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

	// 日志资源状态:pending|available|modifying|deleting|deleted|failed
	State string `json:"state"`

	// 日志开关:true|false
	Enabled bool `json:"enabled"`
}

FlowLog 流日志详情

func (FlowLog) String added in v0.1.49

func (o FlowLog) String() string

type FlowLogRequest added in v0.1.49

type FlowLogRequest struct {

	// 流日志名称
	Name string `json:"name"`

	// 流日志描述
	Description *string `json:"description,omitempty"`

	// 流日志采集的资源类型:   - VPC连接   - 虚拟网关连接   - 对等连接
	ResourceType FlowLogRequestResourceType `json:"resource_type"`

	// 要采集的资源ID
	ResourceId string `json:"resource_id"`

	// 日志组ID。请在云日志服务中获取,详情请参见《云日志服务用户指南》。
	LogGroupId string `json:"log_group_id"`

	// 日志主题ID。请在云日志服务中获取,详情请参见《云日志服务用户指南》。
	LogStreamId string `json:"log_stream_id"`

	// 流日志的存储类型: - LTS: 云日志服务器存储
	LogStoreType FlowLogRequestLogStoreType `json:"log_store_type"`
}

FlowLogRequest 创建流日志请求体

func (FlowLogRequest) String added in v0.1.49

func (o FlowLogRequest) String() string

type FlowLogRequestLogStoreType added in v0.1.49

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

func (FlowLogRequestLogStoreType) MarshalJSON added in v0.1.49

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

func (*FlowLogRequestLogStoreType) UnmarshalJSON added in v0.1.49

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

func (FlowLogRequestLogStoreType) Value added in v0.1.49

type FlowLogRequestLogStoreTypeEnum added in v0.1.49

type FlowLogRequestLogStoreTypeEnum struct {
	LTS FlowLogRequestLogStoreType
}

func GetFlowLogRequestLogStoreTypeEnum added in v0.1.49

func GetFlowLogRequestLogStoreTypeEnum() FlowLogRequestLogStoreTypeEnum

type FlowLogRequestResourceType added in v0.1.49

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

func (FlowLogRequestResourceType) MarshalJSON added in v0.1.49

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

func (*FlowLogRequestResourceType) UnmarshalJSON added in v0.1.49

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

func (FlowLogRequestResourceType) Value added in v0.1.49

type FlowLogRequestResourceTypeEnum added in v0.1.49

type FlowLogRequestResourceTypeEnum struct {
	ATTACHMENT FlowLogRequestResourceType
}

func GetFlowLogRequestResourceTypeEnum added in v0.1.49

func GetFlowLogRequestResourceTypeEnum() FlowLogRequestResourceTypeEnum

type ImportRoutePolicy

type ImportRoutePolicy struct {

	// 入方向Ipv4协议路由策略id
	ImportPolicyId *string `json:"import_policy_id,omitempty"`
}

ImportRoutePolicy 入方向路由策略

func (ImportRoutePolicy) String

func (o ImportRoutePolicy) String() string

type ListAssociationsRequest

type ListAssociationsRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 连接ID
	AttachmentId *[]string `json:"attachment_id,omitempty"`

	// - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -  -
	ResourceType *[]ListAssociationsRequestResourceType `json:"resource_type,omitempty"`

	// 状态
	State *[]ListAssociationsRequestState `json:"state,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListAssociationsRequestSortDir `json:"sort_dir,omitempty"`
}

ListAssociationsRequest Request Object

func (ListAssociationsRequest) String

func (o ListAssociationsRequest) String() string

type ListAssociationsRequestResourceType

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

func (ListAssociationsRequestResourceType) MarshalJSON

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

func (*ListAssociationsRequestResourceType) UnmarshalJSON

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

func (ListAssociationsRequestResourceType) Value

type ListAssociationsRequestSortDir

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

func (ListAssociationsRequestSortDir) MarshalJSON

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

func (*ListAssociationsRequestSortDir) UnmarshalJSON

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

func (ListAssociationsRequestSortDir) Value

type ListAssociationsRequestSortDirEnum

type ListAssociationsRequestSortDirEnum struct {
	ASC  ListAssociationsRequestSortDir
	DESC ListAssociationsRequestSortDir
}

func GetListAssociationsRequestSortDirEnum

func GetListAssociationsRequestSortDirEnum() ListAssociationsRequestSortDirEnum

type ListAssociationsRequestState

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

func (ListAssociationsRequestState) MarshalJSON

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

func (*ListAssociationsRequestState) UnmarshalJSON

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

func (ListAssociationsRequestState) Value

type ListAssociationsResponse

type ListAssociationsResponse struct {

	// 路由表关联列表
	Associations *[]Association `json:"associations,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListAssociationsResponse Response Object

func (ListAssociationsResponse) String

func (o ListAssociationsResponse) String() string

type ListAttachmentsRequest

type ListAttachmentsRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 连接状态:pending|available|modifying|deleting|deleted|failed|pending_acceptance|rejected|initiating_request
	State *[]ListAttachmentsRequestState `json:"state,omitempty"`

	// - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -  -
	ResourceType *[]ListAttachmentsRequestResourceType `json:"resource_type,omitempty"`

	// 连接对应的资源ID列表
	ResourceId *[]string `json:"resource_id,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListAttachmentsRequestSortDir `json:"sort_dir,omitempty"`
}

ListAttachmentsRequest Request Object

func (ListAttachmentsRequest) String

func (o ListAttachmentsRequest) String() string

type ListAttachmentsRequestResourceType

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

func (ListAttachmentsRequestResourceType) MarshalJSON

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

func (*ListAttachmentsRequestResourceType) UnmarshalJSON

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

func (ListAttachmentsRequestResourceType) Value

type ListAttachmentsRequestSortDir

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

func (ListAttachmentsRequestSortDir) MarshalJSON

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

func (*ListAttachmentsRequestSortDir) UnmarshalJSON

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

func (ListAttachmentsRequestSortDir) Value

type ListAttachmentsRequestSortDirEnum

type ListAttachmentsRequestSortDirEnum struct {
	ASC  ListAttachmentsRequestSortDir
	DESC ListAttachmentsRequestSortDir
}

func GetListAttachmentsRequestSortDirEnum

func GetListAttachmentsRequestSortDirEnum() ListAttachmentsRequestSortDirEnum

type ListAttachmentsRequestState

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

func (ListAttachmentsRequestState) MarshalJSON

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

func (*ListAttachmentsRequestState) UnmarshalJSON

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

func (ListAttachmentsRequestState) Value

type ListAttachmentsResponse

type ListAttachmentsResponse struct {

	// 连接列表
	Attachments *[]AttachmentDetails `json:"attachments,omitempty"`

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

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

ListAttachmentsResponse Response Object

func (ListAttachmentsResponse) String

func (o ListAttachmentsResponse) String() string

type ListAvailabilityZoneRequest

type ListAvailabilityZoneRequest struct {

	// 企业路由器ID
	InstanceId *string `json:"instance_id,omitempty"`
}

ListAvailabilityZoneRequest Request Object

func (ListAvailabilityZoneRequest) String

type ListAvailabilityZoneResponse

type ListAvailabilityZoneResponse struct {

	// 可用区列表
	AvailabilityZones *[]AvailableZone `json:"availability_zones,omitempty"`

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

ListAvailabilityZoneResponse Response Object

func (ListAvailabilityZoneResponse) String

type ListEffectiveRoutesRequest

type ListEffectiveRoutesRequest struct {

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 路由目的地址
	Destination *[]string `json:"destination,omitempty"`

	// - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -  -
	ResourceType *[]ListEffectiveRoutesRequestResourceType `json:"resource_type,omitempty"`
}

ListEffectiveRoutesRequest Request Object

func (ListEffectiveRoutesRequest) String

type ListEffectiveRoutesRequestResourceType

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

func (ListEffectiveRoutesRequestResourceType) MarshalJSON

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

func (*ListEffectiveRoutesRequestResourceType) UnmarshalJSON

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

func (ListEffectiveRoutesRequestResourceType) Value

type ListEffectiveRoutesResponse

type ListEffectiveRoutesResponse struct {

	// 路由列表
	Routes *[]EffectiveRoute `json:"routes,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListEffectiveRoutesResponse Response Object

func (ListEffectiveRoutesResponse) String

type ListEnterpriseRoutersRequest

type ListEnterpriseRoutersRequest struct {

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

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

	// 企业路由器实例状态
	State *[]ListEnterpriseRoutersRequestState `json:"state,omitempty"`

	// 根据资源ID查询,可同时查询多个。
	Id *[]string `json:"id,omitempty"`

	// 连接对应的资源ID列表
	ResourceId *[]string `json:"resource_id,omitempty"`

	// 过滤资源是否属于当前租户;取值为true时,只查属于当前租户的资源,不包括共享资源;为false时,查询当前租户及共享给该租户的资源;
	OwnedBySelf *bool `json:"owned_by_self,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListEnterpriseRoutersRequestSortDir `json:"sort_dir,omitempty"`
}

ListEnterpriseRoutersRequest Request Object

func (ListEnterpriseRoutersRequest) String

type ListEnterpriseRoutersRequestSortDir

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

func (ListEnterpriseRoutersRequestSortDir) MarshalJSON

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

func (*ListEnterpriseRoutersRequestSortDir) UnmarshalJSON

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

func (ListEnterpriseRoutersRequestSortDir) Value

type ListEnterpriseRoutersRequestSortDirEnum

type ListEnterpriseRoutersRequestSortDirEnum struct {
	ASC  ListEnterpriseRoutersRequestSortDir
	DESC ListEnterpriseRoutersRequestSortDir
}

func GetListEnterpriseRoutersRequestSortDirEnum

func GetListEnterpriseRoutersRequestSortDirEnum() ListEnterpriseRoutersRequestSortDirEnum

type ListEnterpriseRoutersRequestState

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

func (ListEnterpriseRoutersRequestState) MarshalJSON

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

func (*ListEnterpriseRoutersRequestState) UnmarshalJSON

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

func (ListEnterpriseRoutersRequestState) Value

type ListEnterpriseRoutersResponse

type ListEnterpriseRoutersResponse struct {

	// 企业路由器列表
	Instances *[]EnterpriseRouter `json:"instances,omitempty"`

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

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

ListEnterpriseRoutersResponse Response Object

func (ListEnterpriseRoutersResponse) String

type ListFlowLogsRequest added in v0.1.49

type ListFlowLogsRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 采集的资源类型
	ResourceType *ListFlowLogsRequestResourceType `json:"resource_type,omitempty"`

	// 连接对应的资源ID列表
	ResourceId *[]string `json:"resource_id,omitempty"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListFlowLogsRequestSortDir `json:"sort_dir,omitempty"`
}

ListFlowLogsRequest Request Object

func (ListFlowLogsRequest) String added in v0.1.49

func (o ListFlowLogsRequest) String() string

type ListFlowLogsRequestResourceType added in v0.1.49

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

func (ListFlowLogsRequestResourceType) MarshalJSON added in v0.1.49

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

func (*ListFlowLogsRequestResourceType) UnmarshalJSON added in v0.1.49

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

func (ListFlowLogsRequestResourceType) Value added in v0.1.49

type ListFlowLogsRequestResourceTypeEnum added in v0.1.49

type ListFlowLogsRequestResourceTypeEnum struct {
	ATTACHMENT ListFlowLogsRequestResourceType
}

func GetListFlowLogsRequestResourceTypeEnum added in v0.1.49

func GetListFlowLogsRequestResourceTypeEnum() ListFlowLogsRequestResourceTypeEnum

type ListFlowLogsRequestSortDir added in v0.1.49

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

func (ListFlowLogsRequestSortDir) MarshalJSON added in v0.1.49

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

func (*ListFlowLogsRequestSortDir) UnmarshalJSON added in v0.1.49

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

func (ListFlowLogsRequestSortDir) Value added in v0.1.49

type ListFlowLogsRequestSortDirEnum added in v0.1.49

type ListFlowLogsRequestSortDirEnum struct {
	ASC  ListFlowLogsRequestSortDir
	DESC ListFlowLogsRequestSortDir
}

func GetListFlowLogsRequestSortDirEnum added in v0.1.49

func GetListFlowLogsRequestSortDirEnum() ListFlowLogsRequestSortDirEnum

type ListFlowLogsResponse added in v0.1.49

type ListFlowLogsResponse struct {
	FlowLogs *[]FlowLog `json:"flow_logs,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListFlowLogsResponse Response Object

func (ListFlowLogsResponse) String added in v0.1.49

func (o ListFlowLogsResponse) String() string

type ListProjectTagsRequest added in v0.1.12

type ListProjectTagsRequest struct {

	// 标签资源类型: - instance: 企业路由器实例 - route-table: 路由表 - vpc-attachment: VPC连接 - vgw-attachment: 虚拟网关连接 - peering-attachment: 对等连接(Peering)连接 - vpn-attachment: VPN网关连接 -  -  -  -  - attachments: 所有连接类型
	ResourceType ListProjectTagsRequestResourceType `json:"resource_type"`
}

ListProjectTagsRequest Request Object

func (ListProjectTagsRequest) String added in v0.1.12

func (o ListProjectTagsRequest) String() string

type ListProjectTagsRequestResourceType added in v0.1.12

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

func (ListProjectTagsRequestResourceType) MarshalJSON added in v0.1.12

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

func (*ListProjectTagsRequestResourceType) UnmarshalJSON added in v0.1.12

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

func (ListProjectTagsRequestResourceType) Value added in v0.1.12

type ListProjectTagsResponse added in v0.1.12

type ListProjectTagsResponse struct {

	// 标签列表。
	Tags           *[]Tags `json:"tags,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListProjectTagsResponse Response Object

func (ListProjectTagsResponse) String added in v0.1.12

func (o ListProjectTagsResponse) String() string

type ListPropagationsRequest

type ListPropagationsRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 连接ID
	AttachmentId *[]string `json:"attachment_id,omitempty"`

	// - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -  -
	ResourceType *[]ListPropagationsRequestResourceType `json:"resource_type,omitempty"`

	// 企业路由器实例状态
	State *[]ListPropagationsRequestState `json:"state,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListPropagationsRequestSortDir `json:"sort_dir,omitempty"`
}

ListPropagationsRequest Request Object

func (ListPropagationsRequest) String

func (o ListPropagationsRequest) String() string

type ListPropagationsRequestResourceType

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

func (ListPropagationsRequestResourceType) MarshalJSON

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

func (*ListPropagationsRequestResourceType) UnmarshalJSON

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

func (ListPropagationsRequestResourceType) Value

type ListPropagationsRequestSortDir

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

func (ListPropagationsRequestSortDir) MarshalJSON

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

func (*ListPropagationsRequestSortDir) UnmarshalJSON

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

func (ListPropagationsRequestSortDir) Value

type ListPropagationsRequestSortDirEnum

type ListPropagationsRequestSortDirEnum struct {
	ASC  ListPropagationsRequestSortDir
	DESC ListPropagationsRequestSortDir
}

func GetListPropagationsRequestSortDirEnum

func GetListPropagationsRequestSortDirEnum() ListPropagationsRequestSortDirEnum

type ListPropagationsRequestState

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

func (ListPropagationsRequestState) MarshalJSON

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

func (*ListPropagationsRequestState) UnmarshalJSON

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

func (ListPropagationsRequestState) Value

type ListPropagationsResponse

type ListPropagationsResponse struct {

	// 路由传播列表
	Propagations *[]Propagation `json:"propagations,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListPropagationsResponse Response Object

func (ListPropagationsResponse) String

func (o ListPropagationsResponse) String() string

type ListRouteTablesRequest

type ListRouteTablesRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 状态
	State *[]ListRouteTablesRequestState `json:"state,omitempty"`

	// 是否为默认传播路由表
	IsDefaultPropagationTable *bool `json:"is_default_propagation_table,omitempty"`

	// 是否为默认关联路由表
	IsDefaultAssociationTable *bool `json:"is_default_association_table,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListRouteTablesRequestSortDir `json:"sort_dir,omitempty"`
}

ListRouteTablesRequest Request Object

func (ListRouteTablesRequest) String

func (o ListRouteTablesRequest) String() string

type ListRouteTablesRequestSortDir

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

func (ListRouteTablesRequestSortDir) MarshalJSON

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

func (*ListRouteTablesRequestSortDir) UnmarshalJSON

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

func (ListRouteTablesRequestSortDir) Value

type ListRouteTablesRequestSortDirEnum

type ListRouteTablesRequestSortDirEnum struct {
	ASC  ListRouteTablesRequestSortDir
	DESC ListRouteTablesRequestSortDir
}

func GetListRouteTablesRequestSortDirEnum

func GetListRouteTablesRequestSortDirEnum() ListRouteTablesRequestSortDirEnum

type ListRouteTablesRequestState

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

func (ListRouteTablesRequestState) MarshalJSON

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

func (*ListRouteTablesRequestState) UnmarshalJSON

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

func (ListRouteTablesRequestState) Value

type ListRouteTablesResponse

type ListRouteTablesResponse struct {

	// 路由表列表
	RouteTables *[]RouteTable `json:"route_tables,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListRouteTablesResponse Response Object

func (ListRouteTablesResponse) String

func (o ListRouteTablesResponse) String() string

type ListStaticRoutesRequest

type ListStaticRoutesRequest struct {

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 路由目的地址
	Destination *[]string `json:"destination,omitempty"`

	// 连接ID
	AttachmentId *[]string `json:"attachment_id,omitempty"`

	// - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -  -
	ResourceType *[]ListStaticRoutesRequestResourceType `json:"resource_type,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListStaticRoutesRequestSortDir `json:"sort_dir,omitempty"`
}

ListStaticRoutesRequest Request Object

func (ListStaticRoutesRequest) String

func (o ListStaticRoutesRequest) String() string

type ListStaticRoutesRequestResourceType

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

func (ListStaticRoutesRequestResourceType) MarshalJSON

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

func (*ListStaticRoutesRequestResourceType) UnmarshalJSON

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

func (ListStaticRoutesRequestResourceType) Value

type ListStaticRoutesRequestSortDir

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

func (ListStaticRoutesRequestSortDir) MarshalJSON

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

func (*ListStaticRoutesRequestSortDir) UnmarshalJSON

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

func (ListStaticRoutesRequestSortDir) Value

type ListStaticRoutesRequestSortDirEnum

type ListStaticRoutesRequestSortDirEnum struct {
	ASC  ListStaticRoutesRequestSortDir
	DESC ListStaticRoutesRequestSortDir
}

func GetListStaticRoutesRequestSortDirEnum

func GetListStaticRoutesRequestSortDirEnum() ListStaticRoutesRequestSortDirEnum

type ListStaticRoutesResponse

type ListStaticRoutesResponse struct {

	// 路由列表
	Routes *[]Route `json:"routes,omitempty"`

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

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListStaticRoutesResponse Response Object

func (ListStaticRoutesResponse) String

func (o ListStaticRoutesResponse) String() string

type ListVpcAttachmentsRequest

type ListVpcAttachmentsRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 每页返回的个数。 取值范围:0~2000。
	Limit *int32 `json:"limit,omitempty"`

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

	// 连接状态:pending|available|modifying|deleting|deleted|failed|pending_acceptance|rejected|initiating_request
	State *[]ListVpcAttachmentsRequestState `json:"state,omitempty"`

	// 根据资源ID查询,可同时查询多个。
	Id *[]string `json:"id,omitempty"`

	// 按关键字排序,默认按照id排序,可选值:id|name|state
	SortKey *[]string `json:"sort_key,omitempty"`

	// 返回结果按照升序或降序排列,默认为asc,降序为desc
	SortDir *[]ListVpcAttachmentsRequestSortDir `json:"sort_dir,omitempty"`

	// VPC id
	VpcId *[]string `json:"vpc_id,omitempty"`
}

ListVpcAttachmentsRequest Request Object

func (ListVpcAttachmentsRequest) String

func (o ListVpcAttachmentsRequest) String() string

type ListVpcAttachmentsRequestSortDir

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

func (ListVpcAttachmentsRequestSortDir) MarshalJSON

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

func (*ListVpcAttachmentsRequestSortDir) UnmarshalJSON

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

func (ListVpcAttachmentsRequestSortDir) Value

type ListVpcAttachmentsRequestSortDirEnum

type ListVpcAttachmentsRequestSortDirEnum struct {
	ASC  ListVpcAttachmentsRequestSortDir
	DESC ListVpcAttachmentsRequestSortDir
}

func GetListVpcAttachmentsRequestSortDirEnum

func GetListVpcAttachmentsRequestSortDirEnum() ListVpcAttachmentsRequestSortDirEnum

type ListVpcAttachmentsRequestState

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

func (ListVpcAttachmentsRequestState) MarshalJSON

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

func (*ListVpcAttachmentsRequestState) UnmarshalJSON

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

func (ListVpcAttachmentsRequestState) Value

type ListVpcAttachmentsResponse

type ListVpcAttachmentsResponse struct {

	// VPC连接列表
	VpcAttachments *[]VpcAttachmentDetails `json:"vpc_attachments,omitempty"`

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

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

ListVpcAttachmentsResponse Response Object

func (ListVpcAttachmentsResponse) String

type PageInfo

type PageInfo struct {

	// 下一页的marker,为空时表示最后一页
	NextMarker *string `json:"next_marker,omitempty"`

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

PageInfo 分页查询的信息

func (PageInfo) String

func (o PageInfo) String() string

type Propagation

type Propagation struct {

	// 关联唯一标识
	Id *string `json:"id,omitempty"`

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

	// 企业路由器id
	ErId *string `json:"er_id,omitempty"`

	// 路由表唯一标识
	RouteTableId *string `json:"route_table_id,omitempty"`

	// 连接唯一标识
	AttachmentId *string `json:"attachment_id,omitempty"`

	// 连接的类型
	ResourceType *string `json:"resource_type,omitempty"`

	// 连接的资源唯一标识
	ResourceId *string `json:"resource_id,omitempty"`

	RoutePolicy *ImportRoutePolicy `json:"route_policy,omitempty"`

	// 状态
	State *string `json:"state,omitempty"`

	// 资源创建时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 资源更新时间  采用UTC时间  格式:YYYY-MM-DDTHH:MM:SS
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

Propagation 传播详情

func (Propagation) String

func (o Propagation) String() string

type PropagationRequestBody

type PropagationRequestBody struct {

	// 连接唯一标识
	AttachmentId *string `json:"attachment_id,omitempty"`

	RoutePolicy *ImportRoutePolicy `json:"route_policy,omitempty"`
}

func (PropagationRequestBody) String

func (o PropagationRequestBody) String() string

type Quota added in v0.1.49

type Quota struct {

	// 配额类型
	QuotaKey *string `json:"quota_key,omitempty"`

	// 可用的配额数,-1 代表不受限制
	QuotaLimit *int64 `json:"quota_limit,omitempty"`

	// 已使用的配额数量
	Used *int64 `json:"used,omitempty"`

	// 用量单位
	Unit *string `json:"unit,omitempty"`
}

func (Quota) String added in v0.1.49

func (o Quota) String() string

type RejectAttachmentRequest added in v0.1.56

type RejectAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 连接ID
	AttachmentId string `json:"attachment_id"`
}

RejectAttachmentRequest Request Object

func (RejectAttachmentRequest) String added in v0.1.56

func (o RejectAttachmentRequest) String() string

type RejectAttachmentResponse added in v0.1.56

type RejectAttachmentResponse struct {
	Attachment *AttachmentResponse `json:"attachment,omitempty"`

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

RejectAttachmentResponse Response Object

func (RejectAttachmentResponse) String added in v0.1.56

func (o RejectAttachmentResponse) String() string

type Route

type Route struct {

	// 路由id
	Id string `json:"id"`

	// 路由类型
	Type string `json:"type"`

	// 路由状态
	State *string `json:"state,omitempty"`

	// 是否为黑洞路由
	IsBlackhole *bool `json:"is_blackhole,omitempty"`

	// 路由目的地址
	Destination string `json:"destination"`

	// 下一跳列表
	Attachments []RouteAttachment `json:"attachments"`

	// 路由表id
	RouteTableId string `json:"route_table_id"`

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

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

Route 路由表项

func (Route) String

func (o Route) String() string

type RouteAttachment

type RouteAttachment struct {

	// 连接关联的资源ID
	ResourceId string `json:"resource_id"`

	// 连接关联的资源类型: - vpc:虚拟私有云 - vpn:vpn网关 - vgw:云专线的虚拟网关 - vpn:vpn网关 - vgw:云专线的虚拟网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 -  -  -
	ResourceType string `json:"resource_type"`

	// 连接ID
	AttachmentId string `json:"attachment_id"`
}

func (RouteAttachment) String

func (o RouteAttachment) String() string

type RouteTable

type RouteTable struct {

	// 路由表的id
	Id *string `json:"id,omitempty"`

	// 路由表名字
	Name string `json:"name"`

	// 描述信息
	Description *string `json:"description,omitempty"`

	// 是否为默认关联的路由表
	IsDefaultAssociation bool `json:"is_default_association"`

	// 是否为默认传递路由表
	IsDefaultPropagation bool `json:"is_default_propagation"`

	// 路由表状态,支持的状态有pending | available | deleting | deleted | failed
	State string `json:"state"`

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

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

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

RouteTable 路由表

func (RouteTable) String

func (o RouteTable) String() string

type ShowAttachmentRequest

type ShowAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 连接ID
	AttachmentId string `json:"attachment_id"`
}

ShowAttachmentRequest Request Object

func (ShowAttachmentRequest) String

func (o ShowAttachmentRequest) String() string

type ShowAttachmentResponse

type ShowAttachmentResponse struct {
	Attachment *AttachmentResponse `json:"attachment,omitempty"`

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

ShowAttachmentResponse Response Object

func (ShowAttachmentResponse) String

func (o ShowAttachmentResponse) String() string

type ShowEnterpriseRouterRequest

type ShowEnterpriseRouterRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`
}

ShowEnterpriseRouterRequest Request Object

func (ShowEnterpriseRouterRequest) String

type ShowEnterpriseRouterResponse

type ShowEnterpriseRouterResponse struct {
	Instance *EnterpriseRouter `json:"instance,omitempty"`

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

ShowEnterpriseRouterResponse Response Object

func (ShowEnterpriseRouterResponse) String

type ShowFlowLogRequest added in v0.1.49

type ShowFlowLogRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 流日志ID
	FlowLogId string `json:"flow_log_id"`
}

ShowFlowLogRequest Request Object

func (ShowFlowLogRequest) String added in v0.1.49

func (o ShowFlowLogRequest) String() string

type ShowFlowLogResponse added in v0.1.49

type ShowFlowLogResponse struct {
	FlowLog *FlowLog `json:"flow_log,omitempty"`

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

ShowFlowLogResponse Response Object

func (ShowFlowLogResponse) String added in v0.1.49

func (o ShowFlowLogResponse) String() string

type ShowQuotasRequest added in v0.1.49

type ShowQuotasRequest struct {

	// 支持过滤的配额类型: - er_instance: 企业路由器实例的配额和使用量 - dc_attachment: 云专线网关连接的配额和使用量 - vpc_attachment: VPC连接的配额和使用量 - vpn_attachment: VPN网关连接的配额和使用量 - peering_attachment:云连接实例连接的配额和使用量 - can_attachment: 智能接入网关连接的配额和使用量 - route_table: 路由表的配额和使用量 - static_route: 静态路由的配额和使用量 - vpc_er: 每个vpc可以接入的企业路由器数量和当前使用量 - flow_log: 每个连接可以创建的流日志数量
	Type *[]string `json:"type,omitempty"`

	ErId *[]string `json:"erId,omitempty"`

	RouteTableId *[]string `json:"routeTableId,omitempty"`

	VpcId *[]string `json:"vpcId,omitempty"`
}

ShowQuotasRequest Request Object

func (ShowQuotasRequest) String added in v0.1.49

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse added in v0.1.49

type ShowQuotasResponse struct {

	// 配额使用详情
	Quotas         *[]Quota `json:"quotas,omitempty"`
	HttpStatusCode int      `json:"-"`
}

ShowQuotasResponse Response Object

func (ShowQuotasResponse) String added in v0.1.49

func (o ShowQuotasResponse) String() string

type ShowResourceTagRequest added in v0.1.12

type ShowResourceTagRequest struct {

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

	// 标签资源类型: - instance: 企业路由器实例 - route-table: 路由表 - vpc-attachment: VPC连接 - vgw-attachment: 虚拟网关连接 - peering-attachment: 对等连接(Peering)连接 - vpn-attachment: VPN网关连接 -  -  -  -  - attachments: 所有连接类型
	ResourceType ShowResourceTagRequestResourceType `json:"resource_type"`
}

ShowResourceTagRequest Request Object

func (ShowResourceTagRequest) String added in v0.1.12

func (o ShowResourceTagRequest) String() string

type ShowResourceTagRequestResourceType added in v0.1.12

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

func (ShowResourceTagRequestResourceType) MarshalJSON added in v0.1.12

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

func (*ShowResourceTagRequestResourceType) UnmarshalJSON added in v0.1.12

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

func (ShowResourceTagRequestResourceType) Value added in v0.1.12

type ShowResourceTagResponse added in v0.1.12

type ShowResourceTagResponse struct {

	// 标签列表
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowResourceTagResponse Response Object

func (ShowResourceTagResponse) String added in v0.1.12

func (o ShowResourceTagResponse) String() string

type ShowRouteTableRequest

type ShowRouteTableRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`
}

ShowRouteTableRequest Request Object

func (ShowRouteTableRequest) String

func (o ShowRouteTableRequest) String() string

type ShowRouteTableResponse

type ShowRouteTableResponse struct {
	RouteTable *RouteTable `json:"route_table,omitempty"`

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

ShowRouteTableResponse Response Object

func (ShowRouteTableResponse) String

func (o ShowRouteTableResponse) String() string

type ShowStaticRouteRequest

type ShowStaticRouteRequest struct {

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 路由ID
	RouteId string `json:"route_id"`
}

ShowStaticRouteRequest Request Object

func (ShowStaticRouteRequest) String

func (o ShowStaticRouteRequest) String() string

type ShowStaticRouteResponse

type ShowStaticRouteResponse struct {
	Route *Route `json:"route,omitempty"`

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

ShowStaticRouteResponse Response Object

func (ShowStaticRouteResponse) String

func (o ShowStaticRouteResponse) String() string

type ShowVpcAttachmentRequest

type ShowVpcAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// VPC连接ID
	VpcAttachmentId string `json:"vpc_attachment_id"`
}

ShowVpcAttachmentRequest Request Object

func (ShowVpcAttachmentRequest) String

func (o ShowVpcAttachmentRequest) String() string

type ShowVpcAttachmentResponse

type ShowVpcAttachmentResponse struct {
	VpcAttachment *VpcAttachmentDetails `json:"vpc_attachment,omitempty"`

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

ShowVpcAttachmentResponse Response Object

func (ShowVpcAttachmentResponse) String

func (o ShowVpcAttachmentResponse) String() string

type Tag

type Tag struct {

	// 标签键,最大长度36个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,中文。
	Key *string `json:"key,omitempty"`

	// 标签值,最大长度43个unicode字符,格式为大小写字母,数字,中划线“-”,下划线“_”,点“.”,中文。
	Value *string `json:"value,omitempty"`
}

Tag 资源标签

func (Tag) String

func (o Tag) String() string

type Tags added in v0.1.12

type Tags struct {

	// 标签键,不能为空,最大长度127个unicode字符。
	Key string `json:"key"`

	// 值列表,每个值最大长度255个unicode字符。
	Values []string `json:"values"`
}

Tags 标签

func (Tags) String added in v0.1.12

func (o Tags) String() string

type UpdateAttachmentBody

type UpdateAttachmentBody struct {

	// 连接描述信息,取值范围:最大长度36字节,带“-”连字符的UUID格式
	Description *string `json:"description,omitempty"`

	// 连接名称,取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`
}

UpdateAttachmentBody 更新连接基本信息

func (UpdateAttachmentBody) String

func (o UpdateAttachmentBody) String() string

type UpdateAttachmentRequest

type UpdateAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 连接ID
	AttachmentId string `json:"attachment_id"`

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

UpdateAttachmentRequest Request Object

func (UpdateAttachmentRequest) String

func (o UpdateAttachmentRequest) String() string

type UpdateAttachmentRequestBody

type UpdateAttachmentRequestBody struct {
	Attachment *UpdateAttachmentBody `json:"attachment,omitempty"`
}

func (UpdateAttachmentRequestBody) String

type UpdateAttachmentResponse

type UpdateAttachmentResponse struct {
	Attachment *AttachmentResponse `json:"attachment,omitempty"`

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

UpdateAttachmentResponse Response Object

func (UpdateAttachmentResponse) String

func (o UpdateAttachmentResponse) String() string

type UpdateEnterpriseRouter

type UpdateEnterpriseRouter struct {

	// 企业路由器实例名称
	Name *string `json:"name,omitempty"`

	// 企业路由器实例描述信息
	Description *string `json:"description,omitempty"`

	// 是否开启默认传播
	EnableDefaultPropagation *bool `json:"enable_default_propagation,omitempty"`

	// 是否开启默认关联
	EnableDefaultAssociation *bool `json:"enable_default_association,omitempty"`

	// 默认传播路由表ID
	DefaultPropagationRouteTableId *string `json:"default_propagation_route_table_id,omitempty"`

	// 默认关联路由表ID
	DefaultAssociationRouteTableId *string `json:"default_association_route_table_id,omitempty"`

	// 是否自动接受共享连接创建,默认false不开启
	AutoAcceptSharedAttachments *bool `json:"auto_accept_shared_attachments,omitempty"`
}

UpdateEnterpriseRouter 更新企业路由器请求体

func (UpdateEnterpriseRouter) String

func (o UpdateEnterpriseRouter) String() string

type UpdateEnterpriseRouterRequest

type UpdateEnterpriseRouterRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

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

UpdateEnterpriseRouterRequest Request Object

func (UpdateEnterpriseRouterRequest) String

type UpdateEnterpriseRouterRequestBody

type UpdateEnterpriseRouterRequestBody struct {
	Instance *UpdateEnterpriseRouter `json:"instance,omitempty"`
}

func (UpdateEnterpriseRouterRequestBody) String

type UpdateEnterpriseRouterResponse

type UpdateEnterpriseRouterResponse struct {
	Instance *EnterpriseRouter `json:"instance,omitempty"`

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

UpdateEnterpriseRouterResponse Response Object

func (UpdateEnterpriseRouterResponse) String

type UpdateFlowLogRequest added in v0.1.49

type UpdateFlowLogRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 流日志ID
	FlowLogId string `json:"flow_log_id"`

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

UpdateFlowLogRequest Request Object

func (UpdateFlowLogRequest) String added in v0.1.49

func (o UpdateFlowLogRequest) String() string

type UpdateFlowLogRequestBody added in v0.1.49

type UpdateFlowLogRequestBody struct {

	// 流日志名称
	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`
}

UpdateFlowLogRequestBody 更新流日志的名称/描述

func (UpdateFlowLogRequestBody) String added in v0.1.49

func (o UpdateFlowLogRequestBody) String() string

type UpdateFlowLogResponse added in v0.1.49

type UpdateFlowLogResponse struct {
	FlowLog *FlowLog `json:"flow_log,omitempty"`

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

UpdateFlowLogResponse Response Object

func (UpdateFlowLogResponse) String added in v0.1.49

func (o UpdateFlowLogResponse) String() string

type UpdateRoute

type UpdateRoute struct {

	// 路由下一跳
	AttachmentId *string `json:"attachment_id,omitempty"`

	// 是否为黑洞路由
	IsBlackhole *bool `json:"is_blackhole,omitempty"`
}

UpdateRoute 路由

func (UpdateRoute) String

func (o UpdateRoute) String() string

type UpdateRouteRequestBody

type UpdateRouteRequestBody struct {
	Route *UpdateRoute `json:"route"`
}

UpdateRouteRequestBody This is a auto create Body Object

func (UpdateRouteRequestBody) String

func (o UpdateRouteRequestBody) String() string

type UpdateRouteTable

type UpdateRouteTable struct {

	// 路由器表名称
	Name *string `json:"name,omitempty"`

	// 路由器表描述信息
	Description *string `json:"description,omitempty"`
}

UpdateRouteTable 更新路由表请求体

func (UpdateRouteTable) String

func (o UpdateRouteTable) String() string

type UpdateRouteTableRequest

type UpdateRouteTableRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

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

UpdateRouteTableRequest Request Object

func (UpdateRouteTableRequest) String

func (o UpdateRouteTableRequest) String() string

type UpdateRouteTableRequestBody

type UpdateRouteTableRequestBody struct {
	RouteTable *UpdateRouteTable `json:"route_table,omitempty"`
}

UpdateRouteTableRequestBody This is a auto create Body Object

func (UpdateRouteTableRequestBody) String

type UpdateRouteTableResponse

type UpdateRouteTableResponse struct {
	RouteTable *RouteTable `json:"route_table,omitempty"`

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

UpdateRouteTableResponse Response Object

func (UpdateRouteTableResponse) String

func (o UpdateRouteTableResponse) String() string

type UpdateStaticRouteRequest

type UpdateStaticRouteRequest struct {

	// 路由表ID
	RouteTableId string `json:"route_table_id"`

	// 路由ID
	RouteId string `json:"route_id"`

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

UpdateStaticRouteRequest Request Object

func (UpdateStaticRouteRequest) String

func (o UpdateStaticRouteRequest) String() string

type UpdateStaticRouteResponse

type UpdateStaticRouteResponse struct {
	Route *Route `json:"route,omitempty"`

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

UpdateStaticRouteResponse Response Object

func (UpdateStaticRouteResponse) String

func (o UpdateStaticRouteResponse) String() string

type UpdateVpcAttachmentBody

type UpdateVpcAttachmentBody struct {

	// VPC连接描述信息,取值范围:最大长度36字节,带“-”连字符的UUID格式
	Description *string `json:"description,omitempty"`

	// VPC连接名称,取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`
}

UpdateVpcAttachmentBody 更新vpc基本信息请求体

func (UpdateVpcAttachmentBody) String

func (o UpdateVpcAttachmentBody) String() string

type UpdateVpcAttachmentRequest

type UpdateVpcAttachmentRequest struct {

	// 企业路由器实例ID
	ErId string `json:"er_id"`

	// VPC连接ID
	VpcAttachmentId string `json:"vpc_attachment_id"`

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

UpdateVpcAttachmentRequest Request Object

func (UpdateVpcAttachmentRequest) String

type UpdateVpcAttachmentRequestBody

type UpdateVpcAttachmentRequestBody struct {
	VpcAttachment *UpdateVpcAttachmentBody `json:"vpc_attachment,omitempty"`
}

UpdateVpcAttachmentRequestBody This is a auto create Body Object

func (UpdateVpcAttachmentRequestBody) String

type UpdateVpcAttachmentResponse

type UpdateVpcAttachmentResponse struct {
	VpcAttachment *VpcAttachmentDetails `json:"vpc_attachment,omitempty"`

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

UpdateVpcAttachmentResponse Response Object

func (UpdateVpcAttachmentResponse) String

type VpcAttachmentCreateRequest

type VpcAttachmentCreateRequest struct {

	// VPC的id,取值范围:最大长度36字节,带“-”连字符的UUID格式
	VpcId string `json:"vpc_id"`

	// VPC连接名字,取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// VPC子网id,取值范围:最大长度36字节,带“-”连字符的UUID格式
	VirsubnetId string `json:"virsubnet_id"`

	// 描述信息,取值范围:0-255个字符,不能包含“<”和“>”
	Description *string `json:"description,omitempty"`

	// 默认为false,为true表示自动为vpc配置指向企业路由器的路由
	AutoCreateVpcRoutes *bool `json:"auto_create_vpc_routes,omitempty"`

	// 标签信息
	Tags *[]Tag `json:"tags,omitempty"`
}

VpcAttachmentCreateRequest VPC类型连接

func (VpcAttachmentCreateRequest) String

type VpcAttachmentDetails

type VpcAttachmentDetails struct {

	// VPC连接ID
	Id string `json:"id"`

	// VPC连接名称
	Name string `json:"name"`

	// VPC id
	VpcId string `json:"vpc_id"`

	// VPC子网id
	VirsubnetId string `json:"virsubnet_id"`

	// 默认为false,当设置true时,会自动为VPC配置10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16三条路由,下一跳指向企业路由器。
	AutoCreateVpcRoutes *bool `json:"auto_create_vpc_routes,omitempty"`

	// VPC连接状态:pending|available|modifying|deleting|deleted|failed|initiating_request|rejected|pending_acceptance|freezed
	State string `json:"state"`

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

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

	// 标签信息
	Tags *[]Tag `json:"tags,omitempty"`

	// VPC连接描述信息
	Description *string `json:"description,omitempty"`

	// 项目ID
	ProjectId string `json:"project_id"`

	// vpc所属项目ID
	VpcProjectId *string `json:"vpc_project_id,omitempty"`
}

VpcAttachmentDetails VPC类型连接

func (VpcAttachmentDetails) String

func (o VpcAttachmentDetails) String() string

Source Files

Jump to

Keyboard shortcuts

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