model

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 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 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"`
}

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

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

关联详情

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

关联

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
	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)”连接
	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
	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)”连接
	ResourceType string `json:"resource_type"`

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

连接基本信息详情

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 ChangeAvailabilityZoneRequest

type ChangeAvailabilityZoneRequest struct {

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

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

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

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

企业路由器

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

Request Object

func (CreateEnterpriseRouterRequest) String

type CreateEnterpriseRouterRequestBody

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

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

Response Object

func (CreateEnterpriseRouterResponse) 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"`
}

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

创建资源标签的请求体

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

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

创建路由请求体

func (CreateRoute) String

func (o CreateRoute) String() string

type CreateRouteRequestBody

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

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

路由表

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

Request Object

func (CreateRouteTableRequest) String

func (o CreateRouteTableRequest) String() string

type CreateRouteTableRequestBody

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

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

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

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

Response Object

func (CreateStaticRouteResponse) String

func (o CreateStaticRouteResponse) String() string

type CreateVpcAttachmentBody

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

This is a auto create Body Object

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

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

Response Object

func (CreateVpcAttachmentResponse) String

type DeleteEnterpriseRouterRequest

type DeleteEnterpriseRouterRequest struct {

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

Request Object

func (DeleteEnterpriseRouterRequest) String

type DeleteEnterpriseRouterResponse

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

Response Object

func (DeleteEnterpriseRouterResponse) 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"`
}

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

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

Request Object

func (DeleteRouteTableRequest) String

func (o DeleteRouteTableRequest) String() string

type DeleteRouteTableResponse

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

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

Request Object

func (DeleteStaticRouteRequest) String

func (o DeleteStaticRouteRequest) String() string

type DeleteStaticRouteResponse

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

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

Request Object

func (DeleteVpcAttachmentRequest) String

type DeleteVpcAttachmentResponse

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

Response Object

func (DeleteVpcAttachmentResponse) String

type DisablePropagationRequest

type DisablePropagationRequest struct {

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

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

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

Request Object

func (DisablePropagationRequest) String

func (o DisablePropagationRequest) String() string

type DisablePropagationResponse

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

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

Request Object

func (DisassociateRouteTableRequest) String

type DisassociateRouteTableResponse

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

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

有效路由数据

func (EffectiveRoute) String

func (o EffectiveRoute) 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"`
}

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

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

企业路由器

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

出方向路由策略

func (ExportRoutePolicy) String

func (o ExportRoutePolicy) String() string

type ImportRoutePolicy

type ImportRoutePolicy struct {

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

入方向路由策略

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

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

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

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

Response Object

func (ListAttachmentsResponse) String

func (o ListAttachmentsResponse) String() string

type ListAvailabilityZoneRequest

type ListAvailabilityZoneRequest struct {

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

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

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|vgw|peering
	ResourceType *[]ListEffectiveRoutesRequestResourceType `json:"resource_type,omitempty"`
}

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

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

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

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

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

Response Object

func (ListEnterpriseRoutersResponse) 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"`
}

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

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

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

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

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

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

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

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

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

Response Object

func (ListVpcAttachmentsResponse) String

type PageInfo

type PageInfo struct {

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

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

分页查询的信息

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

传播详情

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

路由表项

func (Route) String

func (o Route) String() string

type RouteAttachment

type RouteAttachment struct {

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

	// 连接关联的资源类型:vpc|vgw|vpn|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"`
}

路由表

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

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

Response Object

func (ShowAttachmentResponse) String

func (o ShowAttachmentResponse) String() string

type ShowEnterpriseRouterRequest

type ShowEnterpriseRouterRequest struct {

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

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

Response Object

func (ShowEnterpriseRouterResponse) 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"`
}

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

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

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

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

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

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

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

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

资源标签

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

标签

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

更新连接基本信息

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

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

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

更新企业路由器请求体

func (UpdateEnterpriseRouter) String

func (o UpdateEnterpriseRouter) String() string

type UpdateEnterpriseRouterRequest

type UpdateEnterpriseRouterRequest struct {

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

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

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

Response Object

func (UpdateEnterpriseRouterResponse) String

type UpdateRoute

type UpdateRoute struct {

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

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

路由

func (UpdateRoute) String

func (o UpdateRoute) String() string

type UpdateRouteRequestBody

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

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

更新路由表请求体

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

Request Object

func (UpdateRouteTableRequest) String

func (o UpdateRouteTableRequest) String() string

type UpdateRouteTableRequestBody

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

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

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

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

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

更新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"`
}

Request Object

func (UpdateVpcAttachmentRequest) String

type UpdateVpcAttachmentRequestBody

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

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

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

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

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