Documentation ¶
Index ¶
- type AssociateRouteTableRequest
- type AssociateRouteTableResponse
- type Association
- type AssociationRequestBody
- type AttachmentDetails
- type AttachmentResponse
- type AvailableZone
- type BgpOptions
- type ChangeAvailabilityZoneRequest
- type ChangeAvailabilityZoneResponse
- type CreateEnterpriseRouter
- type CreateEnterpriseRouterChargeMode
- type CreateEnterpriseRouterChargeModeEnum
- type CreateEnterpriseRouterRequest
- type CreateEnterpriseRouterRequestBody
- type CreateEnterpriseRouterResponse
- type CreateRoute
- type CreateRouteRequestBody
- type CreateRouteTable
- type CreateRouteTableRequest
- type CreateRouteTableRequestBody
- type CreateRouteTableResponse
- type CreateStaticRouteRequest
- type CreateStaticRouteResponse
- type CreateVpcAttachmentBody
- type CreateVpcAttachmentRequest
- type CreateVpcAttachmentResponse
- type DeleteEnterpriseRouterRequest
- type DeleteEnterpriseRouterResponse
- type DeleteRouteTableRequest
- type DeleteRouteTableResponse
- type DeleteStaticRouteRequest
- type DeleteStaticRouteResponse
- type DeleteVpcAttachmentRequest
- type DeleteVpcAttachmentResponse
- type DisablePropagationRequest
- type DisablePropagationResponse
- type DisassociateRouteTableRequest
- type DisassociateRouteTableResponse
- type EffectiveRoute
- type EnablePropagationRequest
- type EnablePropagationResponse
- type EnterpriseRouter
- type EnterpriseRouterAz
- type ExportRoutePolicy
- type ImportRoutePolicy
- type ListAssociationsRequest
- type ListAssociationsRequestResourceType
- type ListAssociationsRequestResourceTypeEnum
- type ListAssociationsRequestSortDir
- type ListAssociationsRequestSortDirEnum
- type ListAssociationsRequestState
- type ListAssociationsRequestStateEnum
- type ListAssociationsResponse
- type ListAttachmentsRequest
- type ListAttachmentsRequestResourceType
- type ListAttachmentsRequestResourceTypeEnum
- type ListAttachmentsRequestSortDir
- type ListAttachmentsRequestSortDirEnum
- type ListAttachmentsRequestState
- type ListAttachmentsRequestStateEnum
- type ListAttachmentsResponse
- type ListAvailabilityZoneRequest
- type ListAvailabilityZoneResponse
- type ListEffectiveRoutesRequest
- type ListEffectiveRoutesRequestResourceType
- type ListEffectiveRoutesRequestResourceTypeEnum
- type ListEffectiveRoutesResponse
- type ListEnterpriseRoutersRequest
- type ListEnterpriseRoutersRequestSortDir
- type ListEnterpriseRoutersRequestSortDirEnum
- type ListEnterpriseRoutersRequestState
- type ListEnterpriseRoutersRequestStateEnum
- type ListEnterpriseRoutersResponse
- type ListPropagationsRequest
- type ListPropagationsRequestResourceType
- type ListPropagationsRequestResourceTypeEnum
- type ListPropagationsRequestSortDir
- type ListPropagationsRequestSortDirEnum
- type ListPropagationsRequestState
- type ListPropagationsRequestStateEnum
- type ListPropagationsResponse
- type ListRouteTablesRequest
- type ListRouteTablesRequestSortDir
- type ListRouteTablesRequestSortDirEnum
- type ListRouteTablesRequestState
- type ListRouteTablesRequestStateEnum
- type ListRouteTablesResponse
- type ListStaticRoutesRequest
- type ListStaticRoutesRequestResourceType
- type ListStaticRoutesRequestResourceTypeEnum
- type ListStaticRoutesRequestSortDir
- type ListStaticRoutesRequestSortDirEnum
- type ListStaticRoutesResponse
- type ListVpcAttachmentsRequest
- type ListVpcAttachmentsRequestSortDir
- type ListVpcAttachmentsRequestSortDirEnum
- type ListVpcAttachmentsRequestState
- type ListVpcAttachmentsRequestStateEnum
- type ListVpcAttachmentsResponse
- type PageInfo
- type Propagation
- type PropagationRequestBody
- type Route
- type RouteAttachment
- type RouteTable
- type ShowAttachmentRequest
- type ShowAttachmentResponse
- type ShowEnterpriseRouterRequest
- type ShowEnterpriseRouterResponse
- type ShowRouteTableRequest
- type ShowRouteTableResponse
- type ShowStaticRouteRequest
- type ShowStaticRouteResponse
- type ShowVpcAttachmentRequest
- type ShowVpcAttachmentResponse
- type Tag
- type UpdateAttachmentBody
- type UpdateAttachmentRequest
- type UpdateAttachmentRequestBody
- type UpdateAttachmentResponse
- type UpdateEnterpriseRouter
- type UpdateEnterpriseRouterRequest
- type UpdateEnterpriseRouterRequestBody
- type UpdateEnterpriseRouterResponse
- type UpdateRoute
- type UpdateRouteRequestBody
- type UpdateRouteTable
- type UpdateRouteTableRequest
- type UpdateRouteTableRequestBody
- type UpdateRouteTableResponse
- type UpdateStaticRouteRequest
- type UpdateStaticRouteResponse
- type UpdateVpcAttachmentBody
- type UpdateVpcAttachmentRequest
- type UpdateVpcAttachmentRequestBody
- type UpdateVpcAttachmentResponse
- type VpcAttachmentCreateRequest
- type VpcAttachmentDetails
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 ¶
func (o AssociateRouteTableRequest) String() 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 ¶
func (o AssociateRouteTableResponse) String() 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网关 - gdgw:下一代专线网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 - can:智能云接入网关 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网关 - gdgw:下一代专线网关 - peering:对等连接,通过云连接CC加载不同区域的企业路由器来创建“对等连接(Peering)”连接 - can:智能云接入网关 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 BgpOptions ¶
type BgpOptions struct { // 配置路由在形成负载分担时不比较路由的AS-Path属性 LoadBalancingAsPathIgnore *bool `json:"load_balancing_as_path_ignore,omitempty"` // 配置路由在形成负载分担时不比较相同长度的AS-Path属性 LoadBalancingAsPathRelax *bool `json:"load_balancing_as_path_relax,omitempty"` }
BGP选路配置参数
func (BgpOptions) String ¶
func (o BgpOptions) String() string
type ChangeAvailabilityZoneRequest ¶
type ChangeAvailabilityZoneRequest struct { // 企业路由器实例ID ErId string `json:"er_id"` Body *EnterpriseRouterAz `json:"body,omitempty"` }
Request Object
func (ChangeAvailabilityZoneRequest) String ¶
func (o ChangeAvailabilityZoneRequest) String() 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 ¶
func (o ChangeAvailabilityZoneResponse) String() 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"` 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 ¶
func (c CreateEnterpriseRouterChargeMode) Value() string
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 ¶
func (o CreateEnterpriseRouterRequest) String() string
type CreateEnterpriseRouterRequestBody ¶
type CreateEnterpriseRouterRequestBody struct {
Instance *CreateEnterpriseRouter `json:"instance"`
}
This is a auto create Body Object
func (CreateEnterpriseRouterRequestBody) String ¶
func (o CreateEnterpriseRouterRequestBody) String() 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 ¶
func (o CreateEnterpriseRouterResponse) 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"` // 是否选路忽略as path LoadBalancingAsPathIgnore *bool `json:"load_balancing_as_path_ignore,omitempty"` BgpOptions *BgpOptions `json:"bgp_options,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 ¶
func (o CreateRouteTableRequestBody) String() 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 ¶
func (o CreateVpcAttachmentRequest) String() 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 ¶
func (o CreateVpcAttachmentResponse) String() string
type DeleteEnterpriseRouterRequest ¶
type DeleteEnterpriseRouterRequest struct { // 企业路由器实例ID ErId string `json:"er_id"` }
Request Object
func (DeleteEnterpriseRouterRequest) String ¶
func (o DeleteEnterpriseRouterRequest) String() string
type DeleteEnterpriseRouterResponse ¶
type DeleteEnterpriseRouterResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteEnterpriseRouterResponse) String ¶
func (o DeleteEnterpriseRouterResponse) 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 ¶
func (o DeleteVpcAttachmentRequest) String() string
type DeleteVpcAttachmentResponse ¶
type DeleteVpcAttachmentResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteVpcAttachmentResponse) String ¶
func (o DeleteVpcAttachmentResponse) 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"` }
Request Object
func (DisablePropagationRequest) String ¶
func (o DisablePropagationRequest) String() string
type DisablePropagationResponse ¶
type DisablePropagationResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DisablePropagationResponse) String ¶
func (o DisablePropagationResponse) String() 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 ¶
func (o DisassociateRouteTableRequest) String() string
type DisassociateRouteTableResponse ¶
type DisassociateRouteTableResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DisassociateRouteTableResponse) String ¶
func (o DisassociateRouteTableResponse) String() 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"` 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|can|gdgw 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 ¶
func (c ListAssociationsRequestResourceType) Value() string
type ListAssociationsRequestResourceTypeEnum ¶
type ListAssociationsRequestResourceTypeEnum struct { VPC ListAssociationsRequestResourceType VPN ListAssociationsRequestResourceType DGW ListAssociationsRequestResourceType VGW ListAssociationsRequestResourceType PEERING ListAssociationsRequestResourceType CAN ListAssociationsRequestResourceType GDGW ListAssociationsRequestResourceType }
func GetListAssociationsRequestResourceTypeEnum ¶
func GetListAssociationsRequestResourceTypeEnum() ListAssociationsRequestResourceTypeEnum
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 ¶
func (c ListAssociationsRequestSortDir) Value() string
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 ¶
func (c ListAssociationsRequestState) Value() string
type ListAssociationsRequestStateEnum ¶
type ListAssociationsRequestStateEnum struct { PENDING ListAssociationsRequestState AVAILABLE ListAssociationsRequestState DELETING ListAssociationsRequestState DELETED ListAssociationsRequestState FAILED ListAssociationsRequestState MODIFYING ListAssociationsRequestState }
func GetListAssociationsRequestStateEnum ¶
func GetListAssociationsRequestStateEnum() ListAssociationsRequestStateEnum
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|can|gdgw 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 ¶
func (c ListAttachmentsRequestResourceType) Value() string
type ListAttachmentsRequestResourceTypeEnum ¶
type ListAttachmentsRequestResourceTypeEnum struct { VPC ListAttachmentsRequestResourceType VPN ListAttachmentsRequestResourceType DGW ListAttachmentsRequestResourceType VGW ListAttachmentsRequestResourceType PEERING ListAttachmentsRequestResourceType CAN ListAttachmentsRequestResourceType GDGW ListAttachmentsRequestResourceType }
func GetListAttachmentsRequestResourceTypeEnum ¶
func GetListAttachmentsRequestResourceTypeEnum() ListAttachmentsRequestResourceTypeEnum
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 ¶
func (c ListAttachmentsRequestSortDir) Value() string
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 ¶
func (c ListAttachmentsRequestState) Value() string
type ListAttachmentsRequestStateEnum ¶
type ListAttachmentsRequestStateEnum struct { PENDING ListAttachmentsRequestState AVAILABLE ListAttachmentsRequestState MODIFYING ListAttachmentsRequestState DELETING ListAttachmentsRequestState DELETED ListAttachmentsRequestState FAILED ListAttachmentsRequestState INITIATING_REQUEST ListAttachmentsRequestState REJECTED ListAttachmentsRequestState PENDING_ACCEPTANCE ListAttachmentsRequestState }
func GetListAttachmentsRequestStateEnum ¶
func GetListAttachmentsRequestStateEnum() ListAttachmentsRequestStateEnum
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 ¶
func (o ListAvailabilityZoneRequest) String() 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 ¶
func (o ListAvailabilityZoneResponse) String() 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|can|gdgw ResourceType *[]ListEffectiveRoutesRequestResourceType `json:"resource_type,omitempty"` }
Request Object
func (ListEffectiveRoutesRequest) String ¶
func (o ListEffectiveRoutesRequest) String() 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 ¶
func (c ListEffectiveRoutesRequestResourceType) Value() string
type ListEffectiveRoutesRequestResourceTypeEnum ¶
type ListEffectiveRoutesRequestResourceTypeEnum struct { VPC ListEffectiveRoutesRequestResourceType VPN ListEffectiveRoutesRequestResourceType DGW ListEffectiveRoutesRequestResourceType VGW ListEffectiveRoutesRequestResourceType PEERING ListEffectiveRoutesRequestResourceType CAN ListEffectiveRoutesRequestResourceType GDGW ListEffectiveRoutesRequestResourceType }
func GetListEffectiveRoutesRequestResourceTypeEnum ¶
func GetListEffectiveRoutesRequestResourceTypeEnum() ListEffectiveRoutesRequestResourceTypeEnum
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 ¶
func (o ListEffectiveRoutesResponse) String() 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 ¶
func (o ListEnterpriseRoutersRequest) String() 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 ¶
func (c ListEnterpriseRoutersRequestSortDir) Value() string
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 ¶
func (c ListEnterpriseRoutersRequestState) Value() string
type ListEnterpriseRoutersRequestStateEnum ¶
type ListEnterpriseRoutersRequestStateEnum struct { PENDING ListEnterpriseRoutersRequestState AVAILABLE ListEnterpriseRoutersRequestState MODIFYING ListEnterpriseRoutersRequestState DELETING ListEnterpriseRoutersRequestState DELETED ListEnterpriseRoutersRequestState FAILED ListEnterpriseRoutersRequestState }
func GetListEnterpriseRoutersRequestStateEnum ¶
func GetListEnterpriseRoutersRequestStateEnum() ListEnterpriseRoutersRequestStateEnum
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 ¶
func (o ListEnterpriseRoutersResponse) 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|can|gdgw 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 ¶
func (c ListPropagationsRequestResourceType) Value() string
type ListPropagationsRequestResourceTypeEnum ¶
type ListPropagationsRequestResourceTypeEnum struct { VPC ListPropagationsRequestResourceType VPN ListPropagationsRequestResourceType DGW ListPropagationsRequestResourceType VGW ListPropagationsRequestResourceType PEERING ListPropagationsRequestResourceType CAN ListPropagationsRequestResourceType GDGW ListPropagationsRequestResourceType }
func GetListPropagationsRequestResourceTypeEnum ¶
func GetListPropagationsRequestResourceTypeEnum() ListPropagationsRequestResourceTypeEnum
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 ¶
func (c ListPropagationsRequestSortDir) Value() string
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 ¶
func (c ListPropagationsRequestState) Value() string
type ListPropagationsRequestStateEnum ¶
type ListPropagationsRequestStateEnum struct { PENDING ListPropagationsRequestState AVAILABLE ListPropagationsRequestState MODIFYING ListPropagationsRequestState DELETING ListPropagationsRequestState DELETED ListPropagationsRequestState FAILED ListPropagationsRequestState }
func GetListPropagationsRequestStateEnum ¶
func GetListPropagationsRequestStateEnum() ListPropagationsRequestStateEnum
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 ¶
func (c ListRouteTablesRequestSortDir) Value() string
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 ¶
func (c ListRouteTablesRequestState) Value() string
type ListRouteTablesRequestStateEnum ¶
type ListRouteTablesRequestStateEnum struct { PENDING ListRouteTablesRequestState AVAILABLE ListRouteTablesRequestState DELETING ListRouteTablesRequestState DELETED ListRouteTablesRequestState FAILED ListRouteTablesRequestState }
func GetListRouteTablesRequestStateEnum ¶
func GetListRouteTablesRequestStateEnum() ListRouteTablesRequestStateEnum
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|can|gdgw 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 ¶
func (c ListStaticRoutesRequestResourceType) Value() string
type ListStaticRoutesRequestResourceTypeEnum ¶
type ListStaticRoutesRequestResourceTypeEnum struct { VPC ListStaticRoutesRequestResourceType VPN ListStaticRoutesRequestResourceType DGW ListStaticRoutesRequestResourceType VGW ListStaticRoutesRequestResourceType PEERING ListStaticRoutesRequestResourceType CAN ListStaticRoutesRequestResourceType GDGW ListStaticRoutesRequestResourceType }
func GetListStaticRoutesRequestResourceTypeEnum ¶
func GetListStaticRoutesRequestResourceTypeEnum() ListStaticRoutesRequestResourceTypeEnum
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 ¶
func (c ListStaticRoutesRequestSortDir) Value() string
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 ¶
func (c ListVpcAttachmentsRequestSortDir) Value() string
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 ¶
func (c ListVpcAttachmentsRequestState) Value() string
type ListVpcAttachmentsRequestStateEnum ¶
type ListVpcAttachmentsRequestStateEnum struct { PENDING ListVpcAttachmentsRequestState AVAILABLE ListVpcAttachmentsRequestState MODIFYING ListVpcAttachmentsRequestState DELETING ListVpcAttachmentsRequestState DELETED ListVpcAttachmentsRequestState FAILED ListVpcAttachmentsRequestState INITIATING_REQUEST ListVpcAttachmentsRequestState REJECTED ListVpcAttachmentsRequestState PENDING_ACCEPTANCE ListVpcAttachmentsRequestState }
func GetListVpcAttachmentsRequestStateEnum ¶
func GetListVpcAttachmentsRequestStateEnum() ListVpcAttachmentsRequestStateEnum
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 ¶
func (o ListVpcAttachmentsResponse) String() string
type PageInfo ¶
type PageInfo struct { // 下一页的marker,值为资源的uuid,为空时表示最后一页 NextMarker *string `json:"next_marker,omitempty"` // 当前列表中资源数量 CurrentCount int32 `json:"current_count"` }
分页查询的信息
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"` // 路由表类型,只支持static和propagated 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"` }
路由表项
type RouteAttachment ¶
type RouteAttachment struct { // 连接关联的资源ID ResourceId string `json:"resource_id"` // 连接关联的资源类型:vpc|vgw|vpn|peering|gdgw 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"` // 是否选路忽略as path LoadBalancingAsPathIgnore *bool `json:"load_balancing_as_path_ignore,omitempty"` // 路由表状态,支持的状态有pending | available | deleting | deleted | failed State string `json:"state"` // 标签 Tags *[]Tag `json:"tags,omitempty"` BgpOptions *BgpOptions `json:"bgp_options,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 ¶
func (o ShowEnterpriseRouterRequest) String() 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 ¶
func (o ShowEnterpriseRouterResponse) 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"` }
资源标签
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 ¶
func (o UpdateAttachmentRequestBody) String() 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"` 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 ¶
func (o UpdateEnterpriseRouterRequest) String() string
type UpdateEnterpriseRouterRequestBody ¶
type UpdateEnterpriseRouterRequestBody struct {
Instance *UpdateEnterpriseRouter `json:"instance,omitempty"`
}
func (UpdateEnterpriseRouterRequestBody) String ¶
func (o UpdateEnterpriseRouterRequestBody) String() 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 ¶
func (o UpdateEnterpriseRouterResponse) String() 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"` // 是否选路忽略as path LoadBalancingAsPathIgnore *bool `json:"load_balancing_as_path_ignore,omitempty"` BgpOptions *BgpOptions `json:"bgp_options,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 ¶
func (o UpdateRouteTableRequestBody) String() 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 ¶
func (o UpdateVpcAttachmentRequest) String() string
type UpdateVpcAttachmentRequestBody ¶
type UpdateVpcAttachmentRequestBody struct {
VpcAttachment *UpdateVpcAttachmentBody `json:"vpc_attachment,omitempty"`
}
This is a auto create Body Object
func (UpdateVpcAttachmentRequestBody) String ¶
func (o UpdateVpcAttachmentRequestBody) String() 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 ¶
func (o UpdateVpcAttachmentResponse) String() 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 ¶
func (o VpcAttachmentCreateRequest) String() 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 ¶
- model_associate_route_table_request.go
- model_associate_route_table_response.go
- model_association.go
- model_association_request_body.go
- model_attachment_details.go
- model_attachment_response.go
- model_available_zone.go
- model_bgp_options.go
- model_change_availability_zone_request.go
- model_change_availability_zone_response.go
- model_create_enterprise_router.go
- model_create_enterprise_router_request.go
- model_create_enterprise_router_request_body.go
- model_create_enterprise_router_response.go
- model_create_route.go
- model_create_route_request_body.go
- model_create_route_table.go
- model_create_route_table_request.go
- model_create_route_table_request_body.go
- model_create_route_table_response.go
- model_create_static_route_request.go
- model_create_static_route_response.go
- model_create_vpc_attachment_body.go
- model_create_vpc_attachment_request.go
- model_create_vpc_attachment_response.go
- model_delete_enterprise_router_request.go
- model_delete_enterprise_router_response.go
- model_delete_route_table_request.go
- model_delete_route_table_response.go
- model_delete_static_route_request.go
- model_delete_static_route_response.go
- model_delete_vpc_attachment_request.go
- model_delete_vpc_attachment_response.go
- model_disable_propagation_request.go
- model_disable_propagation_response.go
- model_disassociate_route_table_request.go
- model_disassociate_route_table_response.go
- model_effective_route.go
- model_enable_propagation_request.go
- model_enable_propagation_response.go
- model_enterprise_router.go
- model_enterprise_router_az.go
- model_export_route_policy.go
- model_import_route_policy.go
- model_list_associations_request.go
- model_list_associations_response.go
- model_list_attachments_request.go
- model_list_attachments_response.go
- model_list_availability_zone_request.go
- model_list_availability_zone_response.go
- model_list_effective_routes_request.go
- model_list_effective_routes_response.go
- model_list_enterprise_routers_request.go
- model_list_enterprise_routers_response.go
- model_list_propagations_request.go
- model_list_propagations_response.go
- model_list_route_tables_request.go
- model_list_route_tables_response.go
- model_list_static_routes_request.go
- model_list_static_routes_response.go
- model_list_vpc_attachments_request.go
- model_list_vpc_attachments_response.go
- model_page_info.go
- model_propagation.go
- model_propagation_request_body.go
- model_route.go
- model_route_attachment.go
- model_route_table.go
- model_show_attachment_request.go
- model_show_attachment_response.go
- model_show_enterprise_router_request.go
- model_show_enterprise_router_response.go
- model_show_route_table_request.go
- model_show_route_table_response.go
- model_show_static_route_request.go
- model_show_static_route_response.go
- model_show_vpc_attachment_request.go
- model_show_vpc_attachment_response.go
- model_tag.go
- model_update_attachment_body.go
- model_update_attachment_request.go
- model_update_attachment_request_body.go
- model_update_attachment_response.go
- model_update_enterprise_router.go
- model_update_enterprise_router_request.go
- model_update_enterprise_router_request_body.go
- model_update_enterprise_router_response.go
- model_update_route.go
- model_update_route_request_body.go
- model_update_route_table.go
- model_update_route_table_request.go
- model_update_route_table_request_body.go
- model_update_route_table_response.go
- model_update_static_route_request.go
- model_update_static_route_response.go
- model_update_vpc_attachment_body.go
- model_update_vpc_attachment_request.go
- model_update_vpc_attachment_request_body.go
- model_update_vpc_attachment_response.go
- model_vpc_attachment_create_request.go
- model_vpc_attachment_details.go