model

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptVpcPeeringRequest

type AcceptVpcPeeringRequest struct {

	// 对等连接ID
	PeeringId string `json:"peering_id"`
}

AcceptVpcPeeringRequest Request Object

func (AcceptVpcPeeringRequest) String

func (o AcceptVpcPeeringRequest) String() string

type AcceptVpcPeeringResponse

type AcceptVpcPeeringResponse struct {

	// 对等连接ID
	Id *string `json:"id,omitempty"`

	// 功能说明:对等连接名称 取值范围:支持1~64个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:对等连接状态 取值范围: - PENDING_ACCEPTANCE:等待接受 - REJECTED:已拒绝。 - EXPIRED:已过期。 - DELETED:已删除。 - ACTIVE:活动的。
	Status *AcceptVpcPeeringResponseStatus `json:"status,omitempty"`

	RequestVpcInfo *VpcInfo `json:"request_vpc_info,omitempty"`

	AcceptVpcInfo *VpcInfo `json:"accept_vpc_info,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"`

	// 对等连接描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AcceptVpcPeeringResponse Response Object

func (AcceptVpcPeeringResponse) String

func (o AcceptVpcPeeringResponse) String() string

type AcceptVpcPeeringResponseStatus

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

func (AcceptVpcPeeringResponseStatus) MarshalJSON

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

func (*AcceptVpcPeeringResponseStatus) UnmarshalJSON

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

func (AcceptVpcPeeringResponseStatus) Value added in v0.0.90

type AddRouteTableRoute added in v0.1.37

type AddRouteTableRoute struct {

	// 功能说明:路由的类型 取值范围: ecs:弹性云服务器 eni:网卡 vip:虚拟IP nat:NAT网关 peering:对等连接 vpn:虚拟专用网络 dc:云专线 cc:云连接 egw:VPC终端节点
	Type string `json:"type"`

	// 功能说明:路由目的网段 约束:合法的CIDR格式
	Destination string `json:"destination"`

	// 功能说明:路由下一跳对象的ID 取值范围: 当type为ecs时,传入ecs实例ID 当type为eni时,取值为从网卡ID 当type为vip时,取值为vip对应的IP地址 当type为nat时,取值为nat实例对应的ID 当type为peering时,取值为peering对应实例ID 当type为vpn时,取值为vpn实例ID 当type为dc时,取值为dc实例ID 当type为cc时,取值为cc的实例ID
	Nexthop string `json:"nexthop"`

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

AddRouteTableRoute 新增路由条目的字段

func (AddRouteTableRoute) String added in v0.1.37

func (o AddRouteTableRoute) String() string

type AllocationPool added in v0.1.48

type AllocationPool struct {

	// 网络池结束IP
	End *string `json:"end,omitempty"`

	// 网络池起始IP
	Start *string `json:"start,omitempty"`
}

AllocationPool

func (AllocationPool) String added in v0.1.48

func (o AllocationPool) String() string

type AllowedAddressPair

type AllowedAddressPair struct {

	// 功能说明:IP地址 取值范围:可以是IP地址或CIDR 约束:不支持0.0.0.0/0如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。 如果填写allowed_address_pairs参数,则ip_address是必选参数。
	IpAddress string `json:"ip_address"`

	// mac地址
	MacAddress *string `json:"mac_address,omitempty"`
}

AllowedAddressPair

func (AllowedAddressPair) String

func (o AllowedAddressPair) String() string

type AsscoiateReq added in v0.0.55

type AsscoiateReq struct {
	Subnets *AssociateRouteTableAndSubnetReq `json:"subnets"`
}

AsscoiateReq

func (AsscoiateReq) String added in v0.0.55

func (o AsscoiateReq) String() string

type AssociateRouteTableAndSubnetReq added in v0.0.55

type AssociateRouteTableAndSubnetReq struct {

	// 路由表关联子网ID列表
	Associate *[]string `json:"associate,omitempty"`

	// 路由表解除关联子网ID列表
	Disassociate *[]string `json:"disassociate,omitempty"`
}

AssociateRouteTableAndSubnetReq

func (AssociateRouteTableAndSubnetReq) String added in v0.0.55

type AssociateRouteTableRequest added in v0.0.55

type AssociateRouteTableRequest struct {

	// 路由表ID
	RoutetableId string `json:"routetable_id"`

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

AssociateRouteTableRequest Request Object

func (AssociateRouteTableRequest) String added in v0.0.55

type AssociateRouteTableResponse added in v0.0.55

type AssociateRouteTableResponse struct {
	Routetable     *RouteTableResp `json:"routetable,omitempty"`
	HttpStatusCode int             `json:"-"`
}

AssociateRouteTableResponse Response Object

func (AssociateRouteTableResponse) String added in v0.0.55

type BatchCreateSubnetTagsRequest

type BatchCreateSubnetTagsRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`

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

BatchCreateSubnetTagsRequest Request Object

func (BatchCreateSubnetTagsRequest) String

type BatchCreateSubnetTagsRequestBody

type BatchCreateSubnetTagsRequestBody struct {

	// 操作标识
	Action BatchCreateSubnetTagsRequestBodyAction `json:"action"`

	// 标签列表
	Tags []ResourceTag `json:"tags"`
}

BatchCreateSubnetTagsRequestBody This is a auto create Body Object

func (BatchCreateSubnetTagsRequestBody) String

type BatchCreateSubnetTagsRequestBodyAction

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

func (BatchCreateSubnetTagsRequestBodyAction) MarshalJSON

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

func (*BatchCreateSubnetTagsRequestBodyAction) UnmarshalJSON

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

func (BatchCreateSubnetTagsRequestBodyAction) Value added in v0.0.90

type BatchCreateSubnetTagsRequestBodyActionEnum

type BatchCreateSubnetTagsRequestBodyActionEnum struct {
	CREATE BatchCreateSubnetTagsRequestBodyAction
}

func GetBatchCreateSubnetTagsRequestBodyActionEnum

func GetBatchCreateSubnetTagsRequestBodyActionEnum() BatchCreateSubnetTagsRequestBodyActionEnum

type BatchCreateSubnetTagsResponse

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

BatchCreateSubnetTagsResponse Response Object

func (BatchCreateSubnetTagsResponse) String

type BatchCreateVpcTagsRequest

type BatchCreateVpcTagsRequest struct {

	// 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在
	VpcId string `json:"vpc_id"`

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

BatchCreateVpcTagsRequest Request Object

func (BatchCreateVpcTagsRequest) String

func (o BatchCreateVpcTagsRequest) String() string

type BatchCreateVpcTagsRequestBody

type BatchCreateVpcTagsRequestBody struct {

	// 功能说明:操作标识 取值范围:create
	Action BatchCreateVpcTagsRequestBodyAction `json:"action"`

	// 功能说明:标签列表
	Tags []ResourceTag `json:"tags"`
}

BatchCreateVpcTagsRequestBody This is a auto create Body Object

func (BatchCreateVpcTagsRequestBody) String

type BatchCreateVpcTagsRequestBodyAction

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

func (BatchCreateVpcTagsRequestBodyAction) MarshalJSON

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

func (*BatchCreateVpcTagsRequestBodyAction) UnmarshalJSON

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

func (BatchCreateVpcTagsRequestBodyAction) Value added in v0.0.90

type BatchCreateVpcTagsRequestBodyActionEnum

type BatchCreateVpcTagsRequestBodyActionEnum struct {
	CREATE BatchCreateVpcTagsRequestBodyAction
}

func GetBatchCreateVpcTagsRequestBodyActionEnum

func GetBatchCreateVpcTagsRequestBodyActionEnum() BatchCreateVpcTagsRequestBodyActionEnum

type BatchCreateVpcTagsResponse

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

BatchCreateVpcTagsResponse Response Object

func (BatchCreateVpcTagsResponse) String

type BatchDeleteSubnetTagsRequest

type BatchDeleteSubnetTagsRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`

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

BatchDeleteSubnetTagsRequest Request Object

func (BatchDeleteSubnetTagsRequest) String

type BatchDeleteSubnetTagsRequestBody

type BatchDeleteSubnetTagsRequestBody struct {

	// 功能说明:操作标识 取值范围:delete
	Action BatchDeleteSubnetTagsRequestBodyAction `json:"action"`

	// 标签列表
	Tags []ResourceTag `json:"tags"`
}

BatchDeleteSubnetTagsRequestBody This is a auto create Body Object

func (BatchDeleteSubnetTagsRequestBody) String

type BatchDeleteSubnetTagsRequestBodyAction

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

func (BatchDeleteSubnetTagsRequestBodyAction) MarshalJSON

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

func (*BatchDeleteSubnetTagsRequestBodyAction) UnmarshalJSON

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

func (BatchDeleteSubnetTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteSubnetTagsRequestBodyActionEnum

type BatchDeleteSubnetTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteSubnetTagsRequestBodyAction
}

func GetBatchDeleteSubnetTagsRequestBodyActionEnum

func GetBatchDeleteSubnetTagsRequestBodyActionEnum() BatchDeleteSubnetTagsRequestBodyActionEnum

type BatchDeleteSubnetTagsResponse

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

BatchDeleteSubnetTagsResponse Response Object

func (BatchDeleteSubnetTagsResponse) String

type BatchDeleteVpcTagsRequest

type BatchDeleteVpcTagsRequest struct {

	// 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在
	VpcId string `json:"vpc_id"`

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

BatchDeleteVpcTagsRequest Request Object

func (BatchDeleteVpcTagsRequest) String

func (o BatchDeleteVpcTagsRequest) String() string

type BatchDeleteVpcTagsRequestBody

type BatchDeleteVpcTagsRequestBody struct {

	// 操作标识
	Action BatchDeleteVpcTagsRequestBodyAction `json:"action"`

	// 标签列表
	Tags []ResourceTag `json:"tags"`
}

BatchDeleteVpcTagsRequestBody This is a auto create Body Object

func (BatchDeleteVpcTagsRequestBody) String

type BatchDeleteVpcTagsRequestBodyAction

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

func (BatchDeleteVpcTagsRequestBodyAction) MarshalJSON

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

func (*BatchDeleteVpcTagsRequestBodyAction) UnmarshalJSON

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

func (BatchDeleteVpcTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteVpcTagsRequestBodyActionEnum

type BatchDeleteVpcTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteVpcTagsRequestBodyAction
}

func GetBatchDeleteVpcTagsRequestBodyActionEnum

func GetBatchDeleteVpcTagsRequestBodyActionEnum() BatchDeleteVpcTagsRequestBodyActionEnum

type BatchDeleteVpcTagsResponse

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

BatchDeleteVpcTagsResponse Response Object

func (BatchDeleteVpcTagsResponse) String

type BindingVifDetails added in v0.0.55

type BindingVifDetails struct {

	// 功能说明:取值为true,表示是虚拟机的主网卡。
	PrimaryInterface *bool `json:"primary_interface,omitempty"`

	// 功能说明:表示该网络服务提供端口过滤特性,如安全组和反MAC/IP欺骗。
	PortFilter *bool `json:"port_filter,omitempty"`

	// 用于通知像nova这样的API消费者,应该使用OVS的混合插入策略。
	OvsHybridPlug *bool `json:"ovs_hybrid_plug,omitempty"`
}

BindingVifDetails

func (BindingVifDetails) String added in v0.0.55

func (o BindingVifDetails) String() string

type CreateFlowLogReq added in v0.1.25

type CreateFlowLogReq struct {

	// 功能说明:流日志名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

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

	// 功能说明:流日志所属资源类型 取值范围:支持port、network、vpc 类型。
	ResourceType CreateFlowLogReqResourceType `json:"resource_type"`

	// resource_type对应资源的唯一ID
	ResourceId string `json:"resource_id"`

	// 功能说明:流日志采集类型 取值范围:     1)all:采集指定资源的全部流量。     2)accept:采集指定资源允许传入、传出的流量。     3)reject:采集指定资源拒绝传入、传出的流量。
	TrafficType CreateFlowLogReqTrafficType `json:"traffic_type"`

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

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

	// 功能说明:是否开启日志索引 取值范围:true,false
	IndexEnabled *bool `json:"index_enabled,omitempty"`
}

CreateFlowLogReq

func (CreateFlowLogReq) String added in v0.1.25

func (o CreateFlowLogReq) String() string

type CreateFlowLogReqBody added in v0.1.25

type CreateFlowLogReqBody struct {
	FlowLog *CreateFlowLogReq `json:"flow_log"`
}

CreateFlowLogReqBody

func (CreateFlowLogReqBody) String added in v0.1.25

func (o CreateFlowLogReqBody) String() string

type CreateFlowLogReqResourceType added in v0.1.25

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

func (CreateFlowLogReqResourceType) MarshalJSON added in v0.1.25

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

func (*CreateFlowLogReqResourceType) UnmarshalJSON added in v0.1.25

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

func (CreateFlowLogReqResourceType) Value added in v0.1.25

type CreateFlowLogReqResourceTypeEnum added in v0.1.25

type CreateFlowLogReqResourceTypeEnum struct {
	PORT    CreateFlowLogReqResourceType
	NETWORK CreateFlowLogReqResourceType
	VPC     CreateFlowLogReqResourceType
}

func GetCreateFlowLogReqResourceTypeEnum added in v0.1.25

func GetCreateFlowLogReqResourceTypeEnum() CreateFlowLogReqResourceTypeEnum

type CreateFlowLogReqTrafficType added in v0.1.25

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

func (CreateFlowLogReqTrafficType) MarshalJSON added in v0.1.25

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

func (*CreateFlowLogReqTrafficType) UnmarshalJSON added in v0.1.25

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

func (CreateFlowLogReqTrafficType) Value added in v0.1.25

type CreateFlowLogReqTrafficTypeEnum added in v0.1.25

type CreateFlowLogReqTrafficTypeEnum struct {
	ALL    CreateFlowLogReqTrafficType
	ACCEPT CreateFlowLogReqTrafficType
	REJECT CreateFlowLogReqTrafficType
}

func GetCreateFlowLogReqTrafficTypeEnum added in v0.1.25

func GetCreateFlowLogReqTrafficTypeEnum() CreateFlowLogReqTrafficTypeEnum

type CreateFlowLogRequest added in v0.1.25

type CreateFlowLogRequest struct {
	Body *CreateFlowLogReqBody `json:"body,omitempty"`
}

CreateFlowLogRequest Request Object

func (CreateFlowLogRequest) String added in v0.1.25

func (o CreateFlowLogRequest) String() string

type CreateFlowLogResponse added in v0.1.25

type CreateFlowLogResponse struct {
	FlowLog        *FlowLogResp `json:"flow_log,omitempty"`
	HttpStatusCode int          `json:"-"`
}

CreateFlowLogResponse Response Object

func (CreateFlowLogResponse) String added in v0.1.25

func (o CreateFlowLogResponse) String() string

type CreatePortOption

type CreatePortOption struct {

	// 功能说明:端口名称 取值范围:0~255个字符,支持中文、英文、字母、_(下划线)、-(中划线),默认为空
	Name *string `json:"name,omitempty"`

	// 功能说明:端口所属网络的ID 约束:必须是存在的网络ID
	NetworkId string `json:"network_id"`

	// 功能说明:端口IP 例如:\"fixed_ips\": [{\"subnet_id\": \"4dc70db6-cb7f-4200-9790-a6a910776bba\", \"ip_address\": \"192.169.25.79\"}] 约束:ipv4场景下一个端口只支持一个fixed_ip,且不支持更新
	FixedIps *[]FixedIp `json:"fixed_ips,omitempty"`

	// 功能说明:端口设备所属 取值范围:目前只支持指定\"\"和\"neutron:VIP_PORT\";neutron:VIP_PORT表示创建的是VIP
	DeviceOwner *string `json:"device_owner,omitempty"`

	// 功能说明:安全组的ID列表;例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 取值范围:默认值为系统默认安全组
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:管理状态 取值范围:只支持true,默认为true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 功能说明:IP/Mac对列表 约束:IP地址不允许为 “0.0.0.0/0” 如果配置的地址池较大(CIDR掩码小于24位),建议为该port配置一个单独的安全组。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`

	// 功能说明:DHCP的扩展Option(扩展属性)
	ExtraDhcpOpts *[]ExtraDhcpOpt `json:"extra_dhcp_opts,omitempty"`

	// 功能说明:端口所属项目ID
	TenantId *string `json:"tenant_id,omitempty"`
}

CreatePortOption

func (CreatePortOption) String

func (o CreatePortOption) String() string

type CreatePortRequest

type CreatePortRequest struct {
	Body *CreatePortRequestBody `json:"body,omitempty"`
}

CreatePortRequest Request Object

func (CreatePortRequest) String

func (o CreatePortRequest) String() string

type CreatePortRequestBody

type CreatePortRequestBody struct {
	Port *CreatePortOption `json:"port"`
}

CreatePortRequestBody

func (CreatePortRequestBody) String

func (o CreatePortRequestBody) String() string

type CreatePortResponse

type CreatePortResponse struct {
	Port           *Port `json:"port,omitempty"`
	HttpStatusCode int   `json:"-"`
}

CreatePortResponse Response Object

func (CreatePortResponse) String

func (o CreatePortResponse) String() string

type CreatePrivateipOption

type CreatePrivateipOption struct {

	// 分配IP的子网标识
	SubnetId string `json:"subnet_id"`

	// 功能说明:指定IP地址申请 取值范围:子网段中的可以使用且未分配的IP地址,不指定时由系统自动分配
	IpAddress *string `json:"ip_address,omitempty"`
}

CreatePrivateipOption

func (CreatePrivateipOption) String

func (o CreatePrivateipOption) String() string

type CreatePrivateipRequest

type CreatePrivateipRequest struct {
	Body *CreatePrivateipRequestBody `json:"body,omitempty"`
}

CreatePrivateipRequest Request Object

func (CreatePrivateipRequest) String

func (o CreatePrivateipRequest) String() string

type CreatePrivateipRequestBody

type CreatePrivateipRequestBody struct {

	// 私有IP列表对象
	Privateips []CreatePrivateipOption `json:"privateips"`
}

CreatePrivateipRequestBody

func (CreatePrivateipRequestBody) String

type CreatePrivateipResponse

type CreatePrivateipResponse struct {

	// 私有IP列表对象
	Privateips     *[]Privateip `json:"privateips,omitempty"`
	HttpStatusCode int          `json:"-"`
}

CreatePrivateipResponse Response Object

func (CreatePrivateipResponse) String

func (o CreatePrivateipResponse) String() string

type CreateRouteTableReq added in v0.0.55

type CreateRouteTableReq struct {

	// 功能说明:路由表名称  取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

	// 功能说明:路由对象,参见route字段说明  约束:每个路由表最大关联200条路由
	Routes *[]RouteTableRoute `json:"routes,omitempty"`

	// 路由表所在的虚拟私有云ID
	VpcId string `json:"vpc_id"`

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

CreateRouteTableReq

func (CreateRouteTableReq) String added in v0.0.55

func (o CreateRouteTableReq) String() string

type CreateRouteTableRequest added in v0.0.55

type CreateRouteTableRequest struct {
	Body *CreateRoutetableReqBody `json:"body,omitempty"`
}

CreateRouteTableRequest Request Object

func (CreateRouteTableRequest) String added in v0.0.55

func (o CreateRouteTableRequest) String() string

type CreateRouteTableResponse added in v0.0.55

type CreateRouteTableResponse struct {
	Routetable     *RouteTableResp `json:"routetable,omitempty"`
	HttpStatusCode int             `json:"-"`
}

CreateRouteTableResponse Response Object

func (CreateRouteTableResponse) String added in v0.0.55

func (o CreateRouteTableResponse) String() string

type CreateRoutetableReqBody added in v0.0.55

type CreateRoutetableReqBody struct {
	Routetable *CreateRouteTableReq `json:"routetable"`
}

CreateRoutetableReqBody

func (CreateRoutetableReqBody) String added in v0.0.55

func (o CreateRoutetableReqBody) String() string

type CreateSecurityGroupOption

type CreateSecurityGroupOption struct {

	// 功能说明:安全组名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:安全组所在的vpc的资源标识
	VpcId *string `json:"vpc_id,omitempty"`

	// 功能说明:企业项目ID。创建安全组时,给安全组绑定企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 默认值:“0”
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

CreateSecurityGroupOption

func (CreateSecurityGroupOption) String

func (o CreateSecurityGroupOption) String() string

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	Body *CreateSecurityGroupRequestBody `json:"body,omitempty"`
}

CreateSecurityGroupRequest Request Object

func (CreateSecurityGroupRequest) String

type CreateSecurityGroupRequestBody

type CreateSecurityGroupRequestBody struct {
	SecurityGroup *CreateSecurityGroupOption `json:"security_group"`
}

CreateSecurityGroupRequestBody

func (CreateSecurityGroupRequestBody) String

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {
	SecurityGroup  *SecurityGroup `json:"security_group,omitempty"`
	HttpStatusCode int            `json:"-"`
}

CreateSecurityGroupResponse Response Object

func (CreateSecurityGroupResponse) String

type CreateSecurityGroupRuleOption

type CreateSecurityGroupRuleOption struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 功能说明:安全组规则描述 取值范围:0-255个字符,支持数字、字母、中文字符
	Description *string `json:"description,omitempty"`

	// 功能说明:出入控制方向 取值范围: - egress:出方向 - ingress:入方向
	Direction string `json:"direction"`

	// 功能说明:IP地址协议类型 取值范围:IPv4,IPv6 约束:默认值为IPv4
	Ethertype *string `json:"ethertype,omitempty"`

	// 功能说明:协议类型 取值范围:tcp、udp、icmp或IP协议编号(0~255) 约束:为空表示支持所有协议
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:起始端口值 取值范围:1~65535 约束:不能大于port_range_max的值,为空表示所有端口,如果协议是icmp类型,取值范围请参见 [安全组规则icmp协议名称对应关系表](https://support.huaweicloud.com/api-vpc/vpc_api_0009.html)
	PortRangeMin *int32 `json:"port_range_min,omitempty"`

	// 功能说明:结束端口值 取值范围:1~65535 约束:协议不为icmp时,取值不能小于port_range_min的值,为空表示所有端口,如果协议是icmp类型,取值范围请参见 [安全组规则icmp协议名称对应关系表](https://support.huaweicloud.com/api-vpc/vpc_api_0009.html)
	PortRangeMax *int32 `json:"port_range_max,omitempty"`

	// 功能说明:远端IP地址,当direction是egress时为虚拟机访问端的地址,当direction是ingress时为访问虚拟机的地址 取值范围:IP地址,或者cidr格式 约束:和remote_group_id,remote_address_group_id互斥
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`

	// 功能说明:对端安全组ID 约束:和remote_ip_prefix,remote_address_group_id互斥
	RemoteGroupId *string `json:"remote_group_id,omitempty"`

	// 功能说明:远端IP地址组ID 约束:和remote_ip_prefix,remote_group_id互斥
	RemoteAddressGroupId *string `json:"remote_address_group_id,omitempty"`
}

CreateSecurityGroupRuleOption

func (CreateSecurityGroupRuleOption) String

type CreateSecurityGroupRuleRequest

type CreateSecurityGroupRuleRequest struct {
	Body *CreateSecurityGroupRuleRequestBody `json:"body,omitempty"`
}

CreateSecurityGroupRuleRequest Request Object

func (CreateSecurityGroupRuleRequest) String

type CreateSecurityGroupRuleRequestBody

type CreateSecurityGroupRuleRequestBody struct {
	SecurityGroupRule *CreateSecurityGroupRuleOption `json:"security_group_rule"`
}

CreateSecurityGroupRuleRequestBody

func (CreateSecurityGroupRuleRequestBody) String

type CreateSecurityGroupRuleResponse

type CreateSecurityGroupRuleResponse struct {
	SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                `json:"-"`
}

CreateSecurityGroupRuleResponse Response Object

func (CreateSecurityGroupRuleResponse) String

type CreateSubnetOption

type CreateSubnetOption struct {

	// 功能说明:子网名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

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

	// 功能说明:子网的网段 取值范围:必须在vpc对应cidr范围内 约束:必须是cidr格式。掩码长度不能大于28
	Cidr string `json:"cidr"`

	// 子网所在VPC标识
	VpcId string `json:"vpc_id"`

	// 功能说明:子网的网关 取值范围:子网网段中的IP地址 约束:必须是ip格式
	GatewayIp string `json:"gateway_ip"`

	// 功能说明:是否创建cidr_v6 取值范围:true(开启),false(关闭) 约束:不填时默认为false > 说明 该参数目前仅在“华北-北京四”区域开放,且申请IPv6公测后才可设置。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 功能说明:子网是否开启dhcp功能 取值范围:true(开启),false(关闭) 约束:不填时默认为true。当设置为false时,会导致新创建的ECS无法获取IP地址,cloudinit无法注入账号密码,请谨慎操作。
	DhcpEnable *bool `json:"dhcp_enable,omitempty"`

	// 功能说明:子网dns服务器地址1 约束:ip格式,不支持IPv6地址 默认值:不填时为空 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	PrimaryDns *string `json:"primary_dns,omitempty"`

	// 功能说明:子网dns服务器地址2 约束:ip格式,不支持IPv6地址 默认值:不填时为空 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	SecondaryDns *string `json:"secondary_dns,omitempty"`

	// 功能说明:子网dns服务器地址的集合;如果想使用两个以上dns服务器,请使用该字段 约束:是子网dns服务器地址1跟子网dns服务器地址2的合集的父集,不支持IPv6地址。 默认值:不填时为空,无法使用云内网DNS功能 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	DnsList *[]string `json:"dnsList,omitempty"`

	// 功能说明:子网所在的可用分区标识 约束:系统存在的可用分区标识
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 子网配置的NTP地址或租约时间
	ExtraDhcpOpts *[]ExtraDhcpOption `json:"extra_dhcp_opts,omitempty"`

	// 功能说明:子网资源标签。创建子网时,给子网添加资源标签。 取值范围:最大10个标签, key:标签名称; value:标签值。 格式:[key*value],每一个标签的key和value之间用*连接
	Tags *[]string `json:"tags,omitempty"`
}

CreateSubnetOption

func (CreateSubnetOption) String

func (o CreateSubnetOption) String() string

type CreateSubnetRequest

type CreateSubnetRequest struct {
	Body *CreateSubnetRequestBody `json:"body,omitempty"`
}

CreateSubnetRequest Request Object

func (CreateSubnetRequest) String

func (o CreateSubnetRequest) String() string

type CreateSubnetRequestBody

type CreateSubnetRequestBody struct {
	Subnet *CreateSubnetOption `json:"subnet"`
}

CreateSubnetRequestBody 创建子网对象

func (CreateSubnetRequestBody) String

func (o CreateSubnetRequestBody) String() string

type CreateSubnetResponse

type CreateSubnetResponse struct {
	Subnet         *Subnet `json:"subnet,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateSubnetResponse Response Object

func (CreateSubnetResponse) String

func (o CreateSubnetResponse) String() string

type CreateSubnetTagRequest

type CreateSubnetTagRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`

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

CreateSubnetTagRequest Request Object

func (CreateSubnetTagRequest) String

func (o CreateSubnetTagRequest) String() string

type CreateSubnetTagRequestBody

type CreateSubnetTagRequestBody struct {
	Tag *ResourceTag `json:"tag"`
}

CreateSubnetTagRequestBody This is a auto create Body Object

func (CreateSubnetTagRequestBody) String

type CreateSubnetTagResponse

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

CreateSubnetTagResponse Response Object

func (CreateSubnetTagResponse) String

func (o CreateSubnetTagResponse) String() string

type CreateVpcOption

type CreateVpcOption struct {

	// 功能说明:虚拟私有云下可用子网的范围 取值范围: - 10.0.0.0/8 ~ 10.255.255.240/28 - 172.16.0.0/12 ~ 172.31.255.240/28 - 192.168.0.0/16 ~ 192.168.255.240/28 约束:必须是ipv4 cidr格式,例如:192.168.0.0/16
	Cidr *string `json:"cidr,omitempty"`

	// 功能说明:虚拟私有云名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) 约束:如果名称不为空,则同一个租户下的名称不能重复
	Name *string `json:"name,omitempty"`

	// 功能说明:虚拟私有云的描述 取值范围:0-255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	// 功能说明:企业项目ID。创建虚拟私有云时,给虚拟私有云绑定企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 默认值:\"0\"
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 功能说明:VPC资源标签。创建VPC时,给VPC添加资源标签。 取值范围:最大10个标签, key:标签名称; value:标签值。 格式:[key*value],每一个标签的key和value之间用*连接
	Tags *[]string `json:"tags,omitempty"`
}

CreateVpcOption vpc对象

func (CreateVpcOption) String

func (o CreateVpcOption) String() string

type CreateVpcPeeringOption

type CreateVpcPeeringOption struct {

	// 功能说明:对等连接名称 取值范围:支持1~64个字符
	Name string `json:"name"`

	// 功能说明:对等连接的描述 取值范围:0-255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	RequestVpcInfo *VpcInfo `json:"request_vpc_info"`

	AcceptVpcInfo *VpcInfo `json:"accept_vpc_info"`
}

CreateVpcPeeringOption peering对象

func (CreateVpcPeeringOption) String

func (o CreateVpcPeeringOption) String() string

type CreateVpcPeeringRequest

type CreateVpcPeeringRequest struct {
	Body *CreateVpcPeeringRequestBody `json:"body,omitempty"`
}

CreateVpcPeeringRequest Request Object

func (CreateVpcPeeringRequest) String

func (o CreateVpcPeeringRequest) String() string

type CreateVpcPeeringRequestBody

type CreateVpcPeeringRequestBody struct {
	Peering *CreateVpcPeeringOption `json:"peering"`
}

CreateVpcPeeringRequestBody

func (CreateVpcPeeringRequestBody) String

type CreateVpcPeeringResponse

type CreateVpcPeeringResponse struct {
	Peering        *VpcPeering `json:"peering,omitempty"`
	HttpStatusCode int         `json:"-"`
}

CreateVpcPeeringResponse Response Object

func (CreateVpcPeeringResponse) String

func (o CreateVpcPeeringResponse) String() string

type CreateVpcRequest

type CreateVpcRequest struct {
	Body *CreateVpcRequestBody `json:"body,omitempty"`
}

CreateVpcRequest Request Object

func (CreateVpcRequest) String

func (o CreateVpcRequest) String() string

type CreateVpcRequestBody

type CreateVpcRequestBody struct {
	Vpc *CreateVpcOption `json:"vpc"`
}

CreateVpcRequestBody

func (CreateVpcRequestBody) String

func (o CreateVpcRequestBody) String() string

type CreateVpcResourceTagRequest

type CreateVpcResourceTagRequest struct {

	// 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在
	VpcId string `json:"vpc_id"`

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

CreateVpcResourceTagRequest Request Object

func (CreateVpcResourceTagRequest) String

type CreateVpcResourceTagRequestBody

type CreateVpcResourceTagRequestBody struct {
	Tag *ResourceTag `json:"tag"`
}

CreateVpcResourceTagRequestBody This is a auto create Body Object

func (CreateVpcResourceTagRequestBody) String

type CreateVpcResourceTagResponse

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

CreateVpcResourceTagResponse Response Object

func (CreateVpcResourceTagResponse) String

type CreateVpcResponse

type CreateVpcResponse struct {
	Vpc            *Vpc `json:"vpc,omitempty"`
	HttpStatusCode int  `json:"-"`
}

CreateVpcResponse Response Object

func (CreateVpcResponse) String

func (o CreateVpcResponse) String() string

type CreateVpcRouteOption

type CreateVpcRouteOption struct {

	// 路由目的地址CIDR,如192.168.200.0/24。
	Destination string `json:"destination"`

	// 功能说明:路由下一跳  取值范围:如果type为peering类型,则nexthop为peering的ID
	Nexthop string `json:"nexthop"`

	// 功能说明:路由类型  取值范围:peering
	Type CreateVpcRouteOptionType `json:"type"`

	// 请求添加路由的VPC ID
	VpcId string `json:"vpc_id"`
}

CreateVpcRouteOption

func (CreateVpcRouteOption) String

func (o CreateVpcRouteOption) String() string

type CreateVpcRouteOptionType

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

func (CreateVpcRouteOptionType) MarshalJSON

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

func (*CreateVpcRouteOptionType) UnmarshalJSON

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

func (CreateVpcRouteOptionType) Value added in v0.0.90

func (c CreateVpcRouteOptionType) Value() string

type CreateVpcRouteOptionTypeEnum

type CreateVpcRouteOptionTypeEnum struct {
	PEERING CreateVpcRouteOptionType
}

func GetCreateVpcRouteOptionTypeEnum

func GetCreateVpcRouteOptionTypeEnum() CreateVpcRouteOptionTypeEnum

type CreateVpcRouteRequest

type CreateVpcRouteRequest struct {
	Body *CreateVpcRouteRequestBody `json:"body,omitempty"`
}

CreateVpcRouteRequest Request Object

func (CreateVpcRouteRequest) String

func (o CreateVpcRouteRequest) String() string

type CreateVpcRouteRequestBody

type CreateVpcRouteRequestBody struct {
	Route *CreateVpcRouteOption `json:"route"`
}

CreateVpcRouteRequestBody

func (CreateVpcRouteRequestBody) String

func (o CreateVpcRouteRequestBody) String() string

type CreateVpcRouteResponse

type CreateVpcRouteResponse struct {
	Route          *VpcRoute `json:"route,omitempty"`
	HttpStatusCode int       `json:"-"`
}

CreateVpcRouteResponse Response Object

func (CreateVpcRouteResponse) String

func (o CreateVpcRouteResponse) String() string

type DelRouteTableRoute added in v0.1.37

type DelRouteTableRoute struct {

	// 功能说明:路由的类型 取值范围: ecs:弹性云服务器 eni:网卡 vip:虚拟IP nat:NAT网关 peering:对等连接 vpn:虚拟专用网络 dc:云专线 cc:云连接 egw:VPC终端节点
	Type *string `json:"type,omitempty"`

	// 功能说明:路由目的网段 约束:合法的CIDR格式
	Destination string `json:"destination"`

	// 功能说明:路由下一跳对象的ID 取值范围: 当type为ecs时,传入ecs实例ID 当type为eni时,取值为从网卡ID 当type为vip时,取值为vip对应的IP地址 当type为nat时,取值为nat实例对应的ID 当type为peering时,取值为peering对应实例ID 当type为vpn时,取值为vpn实例ID 当type为dc时,取值为dc实例ID 当type为cc时,取值为cc的实例ID
	Nexthop *string `json:"nexthop,omitempty"`

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

DelRouteTableRoute 删除路由条目的字段

func (DelRouteTableRoute) String added in v0.1.37

func (o DelRouteTableRoute) String() string

type DeleteFlowLogRequest added in v0.1.25

type DeleteFlowLogRequest struct {

	// 流日志资源唯一标识
	FlowlogId string `json:"flowlog_id"`
}

DeleteFlowLogRequest Request Object

func (DeleteFlowLogRequest) String added in v0.1.25

func (o DeleteFlowLogRequest) String() string

type DeleteFlowLogResponse added in v0.1.25

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

DeleteFlowLogResponse Response Object

func (DeleteFlowLogResponse) String added in v0.1.25

func (o DeleteFlowLogResponse) String() string

type DeletePortRequest

type DeletePortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`
}

DeletePortRequest Request Object

func (DeletePortRequest) String

func (o DeletePortRequest) String() string

type DeletePortResponse

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

DeletePortResponse Response Object

func (DeletePortResponse) String

func (o DeletePortResponse) String() string

type DeletePrivateipRequest

type DeletePrivateipRequest struct {

	// 私有IP ID
	PrivateipId string `json:"privateip_id"`
}

DeletePrivateipRequest Request Object

func (DeletePrivateipRequest) String

func (o DeletePrivateipRequest) String() string

type DeletePrivateipResponse

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

DeletePrivateipResponse Response Object

func (DeletePrivateipResponse) String

func (o DeletePrivateipResponse) String() string

type DeleteRouteTableRequest added in v0.0.55

type DeleteRouteTableRequest struct {

	// 路由表ID
	RoutetableId string `json:"routetable_id"`
}

DeleteRouteTableRequest Request Object

func (DeleteRouteTableRequest) String added in v0.0.55

func (o DeleteRouteTableRequest) String() string

type DeleteRouteTableResponse added in v0.0.55

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

DeleteRouteTableResponse Response Object

func (DeleteRouteTableResponse) String added in v0.0.55

func (o DeleteRouteTableResponse) String() string

type DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`
}

DeleteSecurityGroupRequest Request Object

func (DeleteSecurityGroupRequest) String

type DeleteSecurityGroupResponse

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

DeleteSecurityGroupResponse Response Object

func (DeleteSecurityGroupResponse) String

type DeleteSecurityGroupRuleRequest

type DeleteSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

DeleteSecurityGroupRuleRequest Request Object

func (DeleteSecurityGroupRuleRequest) String

type DeleteSecurityGroupRuleResponse

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

DeleteSecurityGroupRuleResponse Response Object

func (DeleteSecurityGroupRuleResponse) String

type DeleteSubnetRequest

type DeleteSubnetRequest struct {

	// 子网对应的vpc_id
	VpcId string `json:"vpc_id"`

	// 子网ID
	SubnetId string `json:"subnet_id"`
}

DeleteSubnetRequest Request Object

func (DeleteSubnetRequest) String

func (o DeleteSubnetRequest) String() string

type DeleteSubnetResponse

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

DeleteSubnetResponse Response Object

func (DeleteSubnetResponse) String

func (o DeleteSubnetResponse) String() string

type DeleteSubnetTagRequest

type DeleteSubnetTagRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`

	// 功能说明:键值
	Key string `json:"key"`
}

DeleteSubnetTagRequest Request Object

func (DeleteSubnetTagRequest) String

func (o DeleteSubnetTagRequest) String() string

type DeleteSubnetTagResponse

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

DeleteSubnetTagResponse Response Object

func (DeleteSubnetTagResponse) String

func (o DeleteSubnetTagResponse) String() string

type DeleteVpcPeeringRequest

type DeleteVpcPeeringRequest struct {

	// 对等连接ID
	PeeringId string `json:"peering_id"`
}

DeleteVpcPeeringRequest Request Object

func (DeleteVpcPeeringRequest) String

func (o DeleteVpcPeeringRequest) String() string

type DeleteVpcPeeringResponse

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

DeleteVpcPeeringResponse Response Object

func (DeleteVpcPeeringResponse) String

func (o DeleteVpcPeeringResponse) String() string

type DeleteVpcRequest

type DeleteVpcRequest struct {

	// 虚拟私有云ID
	VpcId string `json:"vpc_id"`
}

DeleteVpcRequest Request Object

func (DeleteVpcRequest) String

func (o DeleteVpcRequest) String() string

type DeleteVpcResponse

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

DeleteVpcResponse Response Object

func (DeleteVpcResponse) String

func (o DeleteVpcResponse) String() string

type DeleteVpcRouteRequest

type DeleteVpcRouteRequest struct {

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

DeleteVpcRouteRequest Request Object

func (DeleteVpcRouteRequest) String

func (o DeleteVpcRouteRequest) String() string

type DeleteVpcRouteResponse

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

DeleteVpcRouteResponse Response Object

func (DeleteVpcRouteResponse) String

func (o DeleteVpcRouteResponse) String() string

type DeleteVpcTagRequest

type DeleteVpcTagRequest struct {

	// 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在
	VpcId string `json:"vpc_id"`

	// 功能说明:标签键
	Key string `json:"key"`
}

DeleteVpcTagRequest Request Object

func (DeleteVpcTagRequest) String

func (o DeleteVpcTagRequest) String() string

type DeleteVpcTagResponse

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

DeleteVpcTagResponse Response Object

func (DeleteVpcTagResponse) String

func (o DeleteVpcTagResponse) String() string

type DisassociateRouteTableRequest added in v0.0.55

type DisassociateRouteTableRequest struct {

	// 路由表ID
	RoutetableId string `json:"routetable_id"`

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

DisassociateRouteTableRequest Request Object

func (DisassociateRouteTableRequest) String added in v0.0.55

type DisassociateRouteTableResponse added in v0.0.55

type DisassociateRouteTableResponse struct {
	Routetable     *RouteTableResp `json:"routetable,omitempty"`
	HttpStatusCode int             `json:"-"`
}

DisassociateRouteTableResponse Response Object

func (DisassociateRouteTableResponse) String added in v0.0.55

type DnsAssignMent

type DnsAssignMent struct {

	// 端口hostname
	Hostname *string `json:"hostname,omitempty"`

	// 端口IP地址
	IpAddress *string `json:"ip_address,omitempty"`

	// 端口内网fqdn
	Fqdn *string `json:"fqdn,omitempty"`
}

DnsAssignMent

func (DnsAssignMent) String

func (o DnsAssignMent) String() string

type ExternalGatewayInfo added in v0.1.48

type ExternalGatewayInfo struct {

	// 功能说明:是否启用SNAT 取值范围:true、false;默认为false。
	EnableSnat *bool `json:"enable_snat,omitempty"`

	// 外部网络的ID。
	NetworkId *string `json:"network_id,omitempty"`
}

ExternalGatewayInfo

func (ExternalGatewayInfo) String added in v0.1.48

func (o ExternalGatewayInfo) String() string

type ExternalGatewayInfoOption added in v0.1.48

type ExternalGatewayInfoOption struct {

	// 外部网络的ID。 外部网络的信息请通过GET /v2.0/networks?router:external=True或neutron net-external-list方式查询。
	NetworkId *string `json:"network_id,omitempty"`
}

ExternalGatewayInfoOption

func (ExternalGatewayInfoOption) String added in v0.1.48

func (o ExternalGatewayInfoOption) String() string

type ExtraDhcpOpt

type ExtraDhcpOpt struct {

	// Option名称
	OptName *string `json:"opt_name,omitempty"`

	// Option值
	OptValue *string `json:"opt_value,omitempty"`
}

ExtraDhcpOpt

func (ExtraDhcpOpt) String

func (o ExtraDhcpOpt) String() string

type ExtraDhcpOption

type ExtraDhcpOption struct {

	// 功能说明:子网配置的NTP地址名称或子网配置的租约到期名称。 约束:目前只支持字段“ntp”或“addresstime”
	OptName ExtraDhcpOptionOptName `json:"opt_name"`

	// 功能说明:子网配置的NTP地址或子网配置的租约到期时间。 约束:opt_name配置为“ntp”,则表示是子网ntp地址,目前只支持IPv4地址,每个IP地址以逗号隔开,IP地址个数不能超过4个,不能存在相同地址。 该字段为null表示取消该子网NTP的设置,不能为””(空字符串)。 opt_name配置为“addresstime”,则该值表示是子网租约到期时间,取值格式有两种,取-1,表示无限租约;数字+h,数字范围是1~30000,比如5h。
	OptValue *string `json:"opt_value,omitempty"`
}

ExtraDhcpOption 子网配置的NTP地址或租约时间对象

func (ExtraDhcpOption) String

func (o ExtraDhcpOption) String() string

type ExtraDhcpOptionOptName

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

func (ExtraDhcpOptionOptName) MarshalJSON

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

func (*ExtraDhcpOptionOptName) UnmarshalJSON

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

func (ExtraDhcpOptionOptName) Value added in v0.0.90

func (c ExtraDhcpOptionOptName) Value() string

type ExtraDhcpOptionOptNameEnum

type ExtraDhcpOptionOptNameEnum struct {
	NTP         ExtraDhcpOptionOptName
	ADDRESSTIME ExtraDhcpOptionOptName
}

func GetExtraDhcpOptionOptNameEnum

func GetExtraDhcpOptionOptNameEnum() ExtraDhcpOptionOptNameEnum

type FixedIp

type FixedIp struct {

	// 功能说明:端口IP地址,如果同时指定子网ID和IP地址,会尝试将该子网上的IP地址分配给该端口。 如果仅指定子网ID,会将该子网中的可用IP分配给该端口。 如果仅指定IP地址,会尝试分配IP地址(如果该地址是指定网络上任何子网的有效IP)
	IpAddress *string `json:"ip_address,omitempty"`

	// 功能说明:端口所属子网ID,如果同时指定子网ID和IP地址,会尝试将该子网上的IP地址分配给该端口。 如果仅指定子网ID,会将该子网中的可用IP分配给该端口。 如果仅指定IP地址,会尝试分配IP地址(如果该地址是指定网络上任何子网的有效IP)
	SubnetId *string `json:"subnet_id,omitempty"`
}

FixedIp

func (FixedIp) String

func (o FixedIp) String() string

type FlowLogResp added in v0.1.25

type FlowLogResp struct {

	// 流日志资源唯一标识
	Id string `json:"id"`

	// 功能说明:流日志名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:流日志描述 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:流日志所属资源类型 取值范围:支持Port、Network、VPC 类型。 约束:当resource_type为Port时,Port资源必须是C3、S3、M3三种虚拟机的网卡。
	ResourceType FlowLogRespResourceType `json:"resource_type"`

	// resource_type对应资源的唯一ID
	ResourceId string `json:"resource_id"`

	// 功能说明:流日志采集类型 取值范围:     1)all:采集指定资源的全部流量。     2)accept:采集指定资源允许传入、传出的流量。     3)reject:采集指定资源拒绝传入、传出的流量。
	TrafficType FlowLogRespTrafficType `json:"traffic_type"`

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

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

	// 功能说明:流日志存储类型 取值范围:     lts:存储类型为云日志服务(LTS)。
	LogStoreType FlowLogRespLogStoreType `json:"log_store_type"`

	// 资源创建时间
	CreatedAt string `json:"created_at"`

	// 最近一次更新资源的时间
	UpdatedAt string `json:"updated_at"`

	// 功能说明:流日志管理 取值范围:若为true,表明开启流日志。若为false,则关闭流日志
	AdminState bool `json:"admin_state"`

	// 功能说明:流日志状态 取值范围:ACTIVE、DOWN、ERROR
	Status FlowLogRespStatus `json:"status"`
}

FlowLogResp

func (FlowLogResp) String added in v0.1.25

func (o FlowLogResp) String() string

type FlowLogRespLogStoreType added in v0.1.25

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

func (FlowLogRespLogStoreType) MarshalJSON added in v0.1.25

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

func (*FlowLogRespLogStoreType) UnmarshalJSON added in v0.1.25

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

func (FlowLogRespLogStoreType) Value added in v0.1.25

func (c FlowLogRespLogStoreType) Value() string

type FlowLogRespLogStoreTypeEnum added in v0.1.25

type FlowLogRespLogStoreTypeEnum struct {
	LTS FlowLogRespLogStoreType
}

func GetFlowLogRespLogStoreTypeEnum added in v0.1.25

func GetFlowLogRespLogStoreTypeEnum() FlowLogRespLogStoreTypeEnum

type FlowLogRespResourceType added in v0.1.25

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

func (FlowLogRespResourceType) MarshalJSON added in v0.1.25

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

func (*FlowLogRespResourceType) UnmarshalJSON added in v0.1.25

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

func (FlowLogRespResourceType) Value added in v0.1.25

func (c FlowLogRespResourceType) Value() string

type FlowLogRespResourceTypeEnum added in v0.1.25

type FlowLogRespResourceTypeEnum struct {
	PORT    FlowLogRespResourceType
	NETWORK FlowLogRespResourceType
	VPC     FlowLogRespResourceType
}

func GetFlowLogRespResourceTypeEnum added in v0.1.25

func GetFlowLogRespResourceTypeEnum() FlowLogRespResourceTypeEnum

type FlowLogRespStatus added in v0.1.25

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

func (FlowLogRespStatus) MarshalJSON added in v0.1.25

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

func (*FlowLogRespStatus) UnmarshalJSON added in v0.1.25

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

func (FlowLogRespStatus) Value added in v0.1.25

func (c FlowLogRespStatus) Value() string

type FlowLogRespStatusEnum added in v0.1.25

type FlowLogRespStatusEnum struct {
	ACTIVE FlowLogRespStatus
	DOWN   FlowLogRespStatus
	ERROR  FlowLogRespStatus
}

func GetFlowLogRespStatusEnum added in v0.1.25

func GetFlowLogRespStatusEnum() FlowLogRespStatusEnum

type FlowLogRespTrafficType added in v0.1.25

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

func (FlowLogRespTrafficType) MarshalJSON added in v0.1.25

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

func (*FlowLogRespTrafficType) UnmarshalJSON added in v0.1.25

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

func (FlowLogRespTrafficType) Value added in v0.1.25

func (c FlowLogRespTrafficType) Value() string

type FlowLogRespTrafficTypeEnum added in v0.1.25

type FlowLogRespTrafficTypeEnum struct {
	ALL    FlowLogRespTrafficType
	ACCEPT FlowLogRespTrafficType
	REJECT FlowLogRespTrafficType
}

func GetFlowLogRespTrafficTypeEnum added in v0.1.25

func GetFlowLogRespTrafficTypeEnum() FlowLogRespTrafficTypeEnum

type HostRoute added in v0.1.48

type HostRoute struct {

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

	// 路由下一跳IP
	Nexthop *string `json:"nexthop,omitempty"`
}

HostRoute

func (HostRoute) String added in v0.1.48

func (o HostRoute) String() string

type ListApiVersionRequest added in v0.1.48

type ListApiVersionRequest struct {
}

ListApiVersionRequest Request Object

func (ListApiVersionRequest) String added in v0.1.48

func (o ListApiVersionRequest) String() string

type ListApiVersionResponse added in v0.1.48

type ListApiVersionResponse struct {

	// API版本列表
	Versions       *[]VersionResult `json:"versions,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListApiVersionResponse Response Object

func (ListApiVersionResponse) String added in v0.1.48

func (o ListApiVersionResponse) String() string

type ListFlowLogsRequest added in v0.1.25

type ListFlowLogsRequest struct {

	// 流日志资源唯一标识
	Id *string `json:"id,omitempty"`

	// 功能说明:流日志名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

	// 项目ID
	TenantId *string `json:"tenant_id,omitempty"`

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

	// 功能说明:流日志所属资源类型 取值范围:支持port、network、vpc 3种类型。
	ResourceType *ListFlowLogsRequestResourceType `json:"resource_type,omitempty"`

	// resource_type对应资源的唯一ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 功能说明:流日志采集类型 取值范围:     1)all:采集指定资源的全部流量。     2)accept:采集指定资源允许传入、传出的流量。     3)reject:采集指定资源拒绝传入、传出的流量。
	TrafficType *ListFlowLogsRequestTrafficType `json:"traffic_type,omitempty"`

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

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

	// 功能说明:流日志存储类型 取值范围:     lts:存储类型为云日志服务(LTS)。
	LogStoreType *ListFlowLogsRequestLogStoreType `json:"log_store_type,omitempty"`

	// 功能说明:流日志状态 取值范围:     ACTIVE:开启     DOWN:关闭     ERROR:异常故障
	Status *ListFlowLogsRequestStatus `json:"status,omitempty"`

	// 功能说明:每页返回的个数 取值范围:0 ~ intmax
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页
	Marker *string `json:"marker,omitempty"`
}

ListFlowLogsRequest Request Object

func (ListFlowLogsRequest) String added in v0.1.25

func (o ListFlowLogsRequest) String() string

type ListFlowLogsRequestLogStoreType added in v0.1.25

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

func (ListFlowLogsRequestLogStoreType) MarshalJSON added in v0.1.25

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

func (*ListFlowLogsRequestLogStoreType) UnmarshalJSON added in v0.1.25

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

func (ListFlowLogsRequestLogStoreType) Value added in v0.1.25

type ListFlowLogsRequestLogStoreTypeEnum added in v0.1.25

type ListFlowLogsRequestLogStoreTypeEnum struct {
	LTS ListFlowLogsRequestLogStoreType
}

func GetListFlowLogsRequestLogStoreTypeEnum added in v0.1.25

func GetListFlowLogsRequestLogStoreTypeEnum() ListFlowLogsRequestLogStoreTypeEnum

type ListFlowLogsRequestResourceType added in v0.1.25

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

func (ListFlowLogsRequestResourceType) MarshalJSON added in v0.1.25

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

func (*ListFlowLogsRequestResourceType) UnmarshalJSON added in v0.1.25

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

func (ListFlowLogsRequestResourceType) Value added in v0.1.25

type ListFlowLogsRequestResourceTypeEnum added in v0.1.25

type ListFlowLogsRequestResourceTypeEnum struct {
	PORT    ListFlowLogsRequestResourceType
	NETWORK ListFlowLogsRequestResourceType
	VPC     ListFlowLogsRequestResourceType
}

func GetListFlowLogsRequestResourceTypeEnum added in v0.1.25

func GetListFlowLogsRequestResourceTypeEnum() ListFlowLogsRequestResourceTypeEnum

type ListFlowLogsRequestStatus added in v0.1.25

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

func (ListFlowLogsRequestStatus) MarshalJSON added in v0.1.25

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

func (*ListFlowLogsRequestStatus) UnmarshalJSON added in v0.1.25

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

func (ListFlowLogsRequestStatus) Value added in v0.1.25

type ListFlowLogsRequestStatusEnum added in v0.1.25

type ListFlowLogsRequestStatusEnum struct {
	ACTIVE ListFlowLogsRequestStatus
	DOWN   ListFlowLogsRequestStatus
	ERROR  ListFlowLogsRequestStatus
}

func GetListFlowLogsRequestStatusEnum added in v0.1.25

func GetListFlowLogsRequestStatusEnum() ListFlowLogsRequestStatusEnum

type ListFlowLogsRequestTrafficType added in v0.1.25

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

func (ListFlowLogsRequestTrafficType) MarshalJSON added in v0.1.25

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

func (*ListFlowLogsRequestTrafficType) UnmarshalJSON added in v0.1.25

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

func (ListFlowLogsRequestTrafficType) Value added in v0.1.25

type ListFlowLogsRequestTrafficTypeEnum added in v0.1.25

type ListFlowLogsRequestTrafficTypeEnum struct {
	ALL    ListFlowLogsRequestTrafficType
	REJECT ListFlowLogsRequestTrafficType
	ACCEPT ListFlowLogsRequestTrafficType
}

func GetListFlowLogsRequestTrafficTypeEnum added in v0.1.25

func GetListFlowLogsRequestTrafficTypeEnum() ListFlowLogsRequestTrafficTypeEnum

type ListFlowLogsResponse added in v0.1.25

type ListFlowLogsResponse struct {

	// flow_log对象列表
	FlowLogs       *[]FlowLogResp `json:"flow_logs,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ListFlowLogsResponse Response Object

func (ListFlowLogsResponse) String added in v0.1.25

func (o ListFlowLogsResponse) String() string

type ListPortsRequest

type ListPortsRequest struct {

	// 功能说明:按照name过滤查询  取值范围:最大长度不超过255
	Name *string `json:"name,omitempty"`

	// 按照port_id过滤查询
	Id *string `json:"id,omitempty"`

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 按照admin_state_up进行过滤
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 按照network_id过滤查询
	NetworkId *string `json:"network_id,omitempty"`

	// 按照mac_address过滤查询
	MacAddress *string `json:"mac_address,omitempty"`

	// 按照device_id过滤查询
	DeviceId *string `json:"device_id,omitempty"`

	// 按照device_owner过滤查询
	DeviceOwner *ListPortsRequestDeviceOwner `json:"device_owner,omitempty"`

	// 功能说明:按照status过滤查询  取值范围:ACTIVE、BUILD、DOWN
	Status *ListPortsRequestStatus `json:"status,omitempty"`

	// 按照安全组ID列表过滤查询
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询
	FixedIps *[]string `json:"fixed_ips,omitempty"`

	// 功能说明:企业项目ID,用于基于企业项目的权限管理。  取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。  若需要查询当前用户所有企业项目绑定的端口,请传参all_granted_eps。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 按照是否使能efi过滤查询
	EnableEfi *bool `json:"enable_efi,omitempty"`
}

ListPortsRequest Request Object

func (ListPortsRequest) String

func (o ListPortsRequest) String() string

type ListPortsRequestDeviceOwner

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

func (ListPortsRequestDeviceOwner) MarshalJSON

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

func (*ListPortsRequestDeviceOwner) UnmarshalJSON

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

func (ListPortsRequestDeviceOwner) Value added in v0.0.90

type ListPortsRequestDeviceOwnerEnum

type ListPortsRequestDeviceOwnerEnum struct {
	NETWORKDHCP                         ListPortsRequestDeviceOwner
	NEUTRONVIP_PORT                     ListPortsRequestDeviceOwner
	NETWORKROUTER_INTERFACE_DISTRIBUTED ListPortsRequestDeviceOwner
	NETWORKROUTER_CENTRALIZED_SNAT      ListPortsRequestDeviceOwner
}

func GetListPortsRequestDeviceOwnerEnum

func GetListPortsRequestDeviceOwnerEnum() ListPortsRequestDeviceOwnerEnum

type ListPortsRequestStatus

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

func (ListPortsRequestStatus) MarshalJSON

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

func (*ListPortsRequestStatus) UnmarshalJSON

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

func (ListPortsRequestStatus) Value added in v0.0.90

func (c ListPortsRequestStatus) Value() string

type ListPortsRequestStatusEnum

type ListPortsRequestStatusEnum struct {
	ACTIVE ListPortsRequestStatus
	BUILD  ListPortsRequestStatus
	DOWN   ListPortsRequestStatus
}

func GetListPortsRequestStatusEnum

func GetListPortsRequestStatusEnum() ListPortsRequestStatusEnum

type ListPortsResponse

type ListPortsResponse struct {

	// port列表对象
	Ports          *[]Port `json:"ports,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListPortsResponse Response Object

func (ListPortsResponse) String

func (o ListPortsResponse) String() string

type ListPrivateipsRequest

type ListPrivateipsRequest struct {

	// 私有IP所在子网的唯一标识
	SubnetId string `json:"subnet_id"`

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源id,为空时查询第一页
	Marker *string `json:"marker,omitempty"`
}

ListPrivateipsRequest Request Object

func (ListPrivateipsRequest) String

func (o ListPrivateipsRequest) String() string

type ListPrivateipsResponse

type ListPrivateipsResponse struct {

	// 私有IP列表对象
	Privateips     *[]Privateip `json:"privateips,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ListPrivateipsResponse Response Object

func (ListPrivateipsResponse) String

func (o ListPrivateipsResponse) String() string

type ListResourceResp

type ListResourceResp struct {

	// 资源详情。 资源对象,用于扩展。默认为空
	ResourceDetail *interface{} `json:"resource_detail"`

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

	// 资源名称,没有默认为空字符串
	ResourceName string `json:"resource_name"`

	// 标签列表,没有标签默认为空数组
	Tags *[]ResourceTag `json:"tags,omitempty"`
}

ListResourceResp

func (ListResourceResp) String

func (o ListResourceResp) String() string

type ListRouteTablesRequest added in v0.0.55

type ListRouteTablesRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时为查询第一页
	Marker *string `json:"marker,omitempty"`

	// 路由表ID,可过滤对应ID的路由表
	Id *string `json:"id,omitempty"`

	// 虚拟私有云ID,可过滤对应虚拟私有云包含的路由表
	VpcId *string `json:"vpc_id,omitempty"`

	// 子网ID,可过滤对应子网关联的路由表
	SubnetId *string `json:"subnet_id,omitempty"`
}

ListRouteTablesRequest Request Object

func (ListRouteTablesRequest) String added in v0.0.55

func (o ListRouteTablesRequest) String() string

type ListRouteTablesResponse added in v0.0.55

type ListRouteTablesResponse struct {

	// 路由表对象列表
	Routetables    *[]RouteTableListResp `json:"routetables,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

ListRouteTablesResponse Response Object

func (ListRouteTablesResponse) String added in v0.0.55

func (o ListRouteTablesResponse) String() string

type ListSecurityGroupRulesRequest

type ListSecurityGroupRulesRequest struct {

	// 功能说明:分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 安全组ID
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 功能说明:远端IP地址 取值范围:cidr格式
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`
}

ListSecurityGroupRulesRequest Request Object

func (ListSecurityGroupRulesRequest) String

type ListSecurityGroupRulesResponse

type ListSecurityGroupRulesResponse struct {

	// 安全组规则对象列表
	SecurityGroupRules *[]SecurityGroupRule `json:"security_group_rules,omitempty"`
	HttpStatusCode     int                  `json:"-"`
}

ListSecurityGroupRulesResponse Response Object

func (ListSecurityGroupRulesResponse) String

type ListSecurityGroupsRequest

type ListSecurityGroupsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照vpc_id过滤查询
	VpcId *string `json:"vpc_id,omitempty"`

	// 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的安全组。  取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。若需要查询当前用户所有企业项目绑定的安全组,或者企业项目子账号需要进行安全组列表展示,请传参all_granted_eps。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListSecurityGroupsRequest Request Object

func (ListSecurityGroupsRequest) String

func (o ListSecurityGroupsRequest) String() string

type ListSecurityGroupsResponse

type ListSecurityGroupsResponse struct {

	// 安全组列表对象
	SecurityGroups *[]SecurityGroup `json:"security_groups,omitempty"`
	HttpStatusCode int              `json:"-"`
}

ListSecurityGroupsResponse Response Object

func (ListSecurityGroupsResponse) String

type ListSubnetTagsRequest

type ListSubnetTagsRequest struct {
}

ListSubnetTagsRequest Request Object

func (ListSubnetTagsRequest) String

func (o ListSubnetTagsRequest) String() string

type ListSubnetTagsResponse

type ListSubnetTagsResponse struct {

	// tag对象列表
	Tags           *[]ListTag `json:"tags,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListSubnetTagsResponse Response Object

func (ListSubnetTagsResponse) String

func (o ListSubnetTagsResponse) String() string

type ListSubnetsByTagsRequest

type ListSubnetsByTagsRequest struct {
	Body *ListSubnetsByTagsRequestBody `json:"body,omitempty"`
}

ListSubnetsByTagsRequest Request Object

func (ListSubnetsByTagsRequest) String

func (o ListSubnetsByTagsRequest) String() string

type ListSubnetsByTagsRequestBody

type ListSubnetsByTagsRequestBody struct {

	// 功能说明:操作标识 取值范围:filter(过滤),count(查询总条数)
	Action ListSubnetsByTagsRequestBodyAction `json:"action"`

	// 功能说明:查询记录数 取值范围:1-1000 约束:action为count时此参数不生效;action为filter时默认为1000
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数 约束:action为count时无此参数;action为filter时默认为0;必须为数字,不能为负数
	Offset *int32 `json:"offset,omitempty"`

	// 功能说明:搜索字段,key为要匹配的字段,value为匹配的值 约束:当前仅支持resource_name
	Matches *[]Match `json:"matches,omitempty"`

	// 包含标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复
	Tags *[]ListTag `json:"tags,omitempty"`
}

ListSubnetsByTagsRequestBody This is a auto create Body Object

func (ListSubnetsByTagsRequestBody) String

type ListSubnetsByTagsRequestBodyAction

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

func (ListSubnetsByTagsRequestBodyAction) MarshalJSON

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

func (*ListSubnetsByTagsRequestBodyAction) UnmarshalJSON

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

func (ListSubnetsByTagsRequestBodyAction) Value added in v0.0.90

type ListSubnetsByTagsRequestBodyActionEnum

type ListSubnetsByTagsRequestBodyActionEnum struct {
	FILTER ListSubnetsByTagsRequestBodyAction
	COUNT  ListSubnetsByTagsRequestBodyAction
}

func GetListSubnetsByTagsRequestBodyActionEnum

func GetListSubnetsByTagsRequestBodyActionEnum() ListSubnetsByTagsRequestBodyActionEnum

type ListSubnetsByTagsResponse

type ListSubnetsByTagsResponse struct {

	// 资源列表
	Resources *[]ListResourceResp `json:"resources,omitempty"`

	// 资源数量
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListSubnetsByTagsResponse Response Object

func (ListSubnetsByTagsResponse) String

func (o ListSubnetsByTagsResponse) String() string

type ListSubnetsRequest

type ListSubnetsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源id,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照vpc_id过滤查询  企业项目细粒度授权场景下,该字段必传
	VpcId *string `json:"vpc_id,omitempty"`
}

ListSubnetsRequest Request Object

func (ListSubnetsRequest) String

func (o ListSubnetsRequest) String() string

type ListSubnetsResponse

type ListSubnetsResponse struct {

	// subnet对象列表
	Subnets        *[]Subnet `json:"subnets,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListSubnetsResponse Response Object

func (ListSubnetsResponse) String

func (o ListSubnetsResponse) String() string

type ListTag

type ListTag struct {

	// 功能说明:标签键 约束:key不能为空
	Key string `json:"key"`

	// 功能描述:标签值列表。 如果values为空列表,则表示any_value。value之间为或的关系。
	Values []string `json:"values"`
}

ListTag

func (ListTag) String

func (o ListTag) String() string

type ListVpcPeeringsRequest

type ListVpcPeeringsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照peering_id过滤查询
	Id *string `json:"id,omitempty"`

	// 功能说明:按照peering_name过查询  取值范围:最大长度不超过64
	Name *string `json:"name,omitempty"`

	// 根据status进行过滤  - PENDING_ACCEPTANCE:等待接受 - REJECTED:已拒绝。 - EXPIRED:已过期。 - DELETED:已删除。 - ACTIVE:活动的。
	Status *ListVpcPeeringsRequestStatus `json:"status,omitempty"`

	// 按照项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`

	// 根据vpc ID过滤查询
	VpcId *string `json:"vpc_id,omitempty"`
}

ListVpcPeeringsRequest Request Object

func (ListVpcPeeringsRequest) String

func (o ListVpcPeeringsRequest) String() string

type ListVpcPeeringsRequestStatus

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

func (ListVpcPeeringsRequestStatus) MarshalJSON

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

func (*ListVpcPeeringsRequestStatus) UnmarshalJSON

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

func (ListVpcPeeringsRequestStatus) Value added in v0.0.90

type ListVpcPeeringsRequestStatusEnum

type ListVpcPeeringsRequestStatusEnum struct {
	PENDING_ACCEPTANCE ListVpcPeeringsRequestStatus
	REJECTED           ListVpcPeeringsRequestStatus
	EXPIRED            ListVpcPeeringsRequestStatus
	DELETED            ListVpcPeeringsRequestStatus
	ACTIVE             ListVpcPeeringsRequestStatus
}

func GetListVpcPeeringsRequestStatusEnum

func GetListVpcPeeringsRequestStatusEnum() ListVpcPeeringsRequestStatusEnum

type ListVpcPeeringsResponse

type ListVpcPeeringsResponse struct {

	// peering对象列表
	Peerings *[]VpcPeering `json:"peerings,omitempty"`

	// 分页信息
	PeeringsLinks  *[]NeutronPageLink `json:"peerings_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListVpcPeeringsResponse Response Object

func (ListVpcPeeringsResponse) String

func (o ListVpcPeeringsResponse) String() string

type ListVpcRoutesRequest

type ListVpcRoutesRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照routes_id过滤查询
	Id *string `json:"id,omitempty"`

	// 功能说明:按照路由类型过滤查询  取值范围:peering
	Type *ListVpcRoutesRequestType `json:"type,omitempty"`

	// 按照vpc_id过滤查询
	VpcId *string `json:"vpc_id,omitempty"`

	// 按照路由目的地址CIDR过滤查询
	Destination *string `json:"destination,omitempty"`

	// 按照项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`
}

ListVpcRoutesRequest Request Object

func (ListVpcRoutesRequest) String

func (o ListVpcRoutesRequest) String() string

type ListVpcRoutesRequestType

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

func (ListVpcRoutesRequestType) MarshalJSON

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

func (*ListVpcRoutesRequestType) UnmarshalJSON

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

func (ListVpcRoutesRequestType) Value added in v0.0.90

func (c ListVpcRoutesRequestType) Value() string

type ListVpcRoutesRequestTypeEnum

type ListVpcRoutesRequestTypeEnum struct {
	PEERING ListVpcRoutesRequestType
}

func GetListVpcRoutesRequestTypeEnum

func GetListVpcRoutesRequestTypeEnum() ListVpcRoutesRequestTypeEnum

type ListVpcRoutesResponse

type ListVpcRoutesResponse struct {

	// route对象列表
	Routes *[]VpcRoute `json:"routes,omitempty"`

	// 分页信息
	RoutesLinks    *[]NeutronPageLink `json:"routes_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListVpcRoutesResponse Response Object

func (ListVpcRoutesResponse) String

func (o ListVpcRoutesResponse) String() string

type ListVpcTagsRequest

type ListVpcTagsRequest struct {
}

ListVpcTagsRequest Request Object

func (ListVpcTagsRequest) String

func (o ListVpcTagsRequest) String() string

type ListVpcTagsResponse

type ListVpcTagsResponse struct {

	// tag对象列表
	Tags           *[]ListTag `json:"tags,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListVpcTagsResponse Response Object

func (ListVpcTagsResponse) String

func (o ListVpcTagsResponse) String() string

type ListVpcsByTagsRequest

type ListVpcsByTagsRequest struct {
	Body *ListVpcsByTagsRequestBody `json:"body,omitempty"`
}

ListVpcsByTagsRequest Request Object

func (ListVpcsByTagsRequest) String

func (o ListVpcsByTagsRequest) String() string

type ListVpcsByTagsRequestBody

type ListVpcsByTagsRequestBody struct {

	// 功能说明:操作标识 取值范围:filter(过滤),count(查询总条数)
	Action ListVpcsByTagsRequestBodyAction `json:"action"`

	// 功能说明:查询记录数 取值范围:1-1000 约束:action为count时此参数不生效;action为filter时默认为1000
	Limit *int32 `json:"limit,omitempty"`

	// 功能说明:索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数 约束:action为count时无此参数;action为filter时默认为0;必须为数字,不能为负数
	Offset *int32 `json:"offset,omitempty"`

	// 功能说明:搜索字段,key为要匹配的字段,value为匹配的值 约束:当前仅支持resource_name
	Matches *[]Match `json:"matches,omitempty"`

	// 包含标签,最多包含10个key,每个key下面的value最多10个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复
	Tags *[]ListTag `json:"tags,omitempty"`
}

ListVpcsByTagsRequestBody This is a auto create Body Object

func (ListVpcsByTagsRequestBody) String

func (o ListVpcsByTagsRequestBody) String() string

type ListVpcsByTagsRequestBodyAction

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

func (ListVpcsByTagsRequestBodyAction) MarshalJSON

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

func (*ListVpcsByTagsRequestBodyAction) UnmarshalJSON

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

func (ListVpcsByTagsRequestBodyAction) Value added in v0.0.90

type ListVpcsByTagsRequestBodyActionEnum

type ListVpcsByTagsRequestBodyActionEnum struct {
	FILTER ListVpcsByTagsRequestBodyAction
	COUNT  ListVpcsByTagsRequestBodyAction
}

func GetListVpcsByTagsRequestBodyActionEnum

func GetListVpcsByTagsRequestBodyActionEnum() ListVpcsByTagsRequestBodyActionEnum

type ListVpcsByTagsResponse

type ListVpcsByTagsResponse struct {

	// 资源列表
	Resources *[]ListResourceResp `json:"resources,omitempty"`

	// 资源数量
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListVpcsByTagsResponse Response Object

func (ListVpcsByTagsResponse) String

func (o ListVpcsByTagsResponse) String() string

type ListVpcsRequest

type ListVpcsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 功能说明:虚拟私有云ID。可以使用该字段过滤某个ID的虚拟私有云。
	Id *string `json:"id,omitempty"`

	// 功能说明:企业项目ID。可以使用该字段过滤某个企业项目下的虚拟私有云。若未传值则默认返回所有企业项目绑定的虚拟私有云。  取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。若需要查询当前用户所有企业项目绑定的虚拟私有云,请传参all_granted_eps。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

ListVpcsRequest Request Object

func (ListVpcsRequest) String

func (o ListVpcsRequest) String() string

type ListVpcsResponse

type ListVpcsResponse struct {

	// vpc对象列表
	Vpcs           *[]Vpc `json:"vpcs,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListVpcsResponse Response Object

func (ListVpcsResponse) String

func (o ListVpcsResponse) String() string

type Match

type Match struct {

	// 键。当前仅限定为resource_name
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符,不能包含$ - . /等特殊字符。
	Value string `json:"value"`
}

Match

func (Match) String

func (o Match) String() string

type ModRouteTableRoute added in v0.1.37

type ModRouteTableRoute struct {

	// 功能说明:路由的类型 取值范围: ecs:弹性云服务器 eni:网卡 vip:虚拟IP nat:NAT网关 peering:对等连接 vpn:虚拟专用网络 dc:云专线 cc:云连接 egw:VPC终端节点
	Type string `json:"type"`

	// 功能说明:路由目的网段 约束:合法的CIDR格式
	Destination string `json:"destination"`

	// 功能说明:路由下一跳对象的ID 取值范围: 当type为ecs时,传入ecs实例ID 当type为eni时,取值为从网卡ID 当type为vip时,取值为vip对应的IP地址 当type为nat时,取值为nat实例对应的ID 当type为peering时,取值为peering对应实例ID 当type为vpn时,取值为vpn实例ID 当type为dc时,取值为dc实例ID 当type为cc时,取值为cc的实例ID
	Nexthop string `json:"nexthop"`

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

ModRouteTableRoute 修改路由条目的字段

func (ModRouteTableRoute) String added in v0.1.37

func (o ModRouteTableRoute) String() string

type NetworkIpAvailability

type NetworkIpAvailability struct {

	// 网络ID
	NetworkId string `json:"network_id"`

	// 网络名称
	NetworkName string `json:"network_name"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 网络中IP总数(不包含系统预留地址)
	TotalIps int32 `json:"total_ips"`

	// 网络中已经使用的IP数目(不包含系统预留地址)
	UsedIps int32 `json:"used_ips"`

	// 子网IP使用情况的对象
	SubnetIpAvailability []SubnetIpAvailability `json:"subnet_ip_availability"`
}

NetworkIpAvailability

func (NetworkIpAvailability) String

func (o NetworkIpAvailability) String() string

type NeutronAddFirewallRuleRequest

type NeutronAddFirewallRuleRequest struct {

	// 网络ACL防火墙策略ID
	FirewallPolicyId string `json:"firewall_policy_id"`

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

NeutronAddFirewallRuleRequest Request Object

func (NeutronAddFirewallRuleRequest) String

type NeutronAddFirewallRuleResponse

type NeutronAddFirewallRuleResponse struct {

	// 功能说明:网络ACL策略ID
	Id *string `json:"id,omitempty"`

	// 功能说明:网络ACL策略名称
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL策略的描述信息 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:网络ACL策略关联的规则的ID列表
	FirewallRules *[]string `json:"firewall_rules,omitempty"`

	// 功能说明:每次policy或者它相关的rule有变动,该参数将会被置为False
	Audited *bool `json:"audited,omitempty"`

	// 功能说明:网络ACL策略是否对其他网络ACL策略可见 取值范围:true(可见)、false(不可见)
	Public *bool `json:"public,omitempty"`

	// 功能说明:网络ACL策略所属项目ID
	TenantId *string `json:"tenant_id,omitempty"`

	// 功能说明:网络ACL策略所属项目ID
	ProjectId      *string `json:"project_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

NeutronAddFirewallRuleResponse Response Object

func (NeutronAddFirewallRuleResponse) String

type NeutronAddRouterInterfaceRequest added in v0.1.48

type NeutronAddRouterInterfaceRequest struct {

	// 路由器ID
	RouterId string `json:"router_id"`

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

NeutronAddRouterInterfaceRequest Request Object

func (NeutronAddRouterInterfaceRequest) String added in v0.1.48

type NeutronAddRouterInterfaceResponse added in v0.1.48

type NeutronAddRouterInterfaceResponse struct {

	// 路由器添加的端口对应的ID
	PortId *string `json:"port_id,omitempty"`

	// 路由器添加的子网对应的ID
	SubnetId *NeutronAddRouterInterfaceResponseSubnetId `json:"subnet_id,omitempty"`

	// 项目ID
	TenantId *string `json:"tenant_id,omitempty"`

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

	// 路由器的ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

NeutronAddRouterInterfaceResponse Response Object

func (NeutronAddRouterInterfaceResponse) String added in v0.1.48

type NeutronAddRouterInterfaceResponseSubnetId added in v0.1.48

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

func (NeutronAddRouterInterfaceResponseSubnetId) MarshalJSON added in v0.1.48

func (*NeutronAddRouterInterfaceResponseSubnetId) UnmarshalJSON added in v0.1.48

func (NeutronAddRouterInterfaceResponseSubnetId) Value added in v0.1.48

type NeutronAddRouterInterfaceResponseSubnetIdEnum added in v0.1.48

type NeutronAddRouterInterfaceResponseSubnetIdEnum struct {
	E_0_9A_F8__0_9A_F4__0_9A_F4__0_9A_F4__0_9A_F12 NeutronAddRouterInterfaceResponseSubnetId
}

func GetNeutronAddRouterInterfaceResponseSubnetIdEnum added in v0.1.48

func GetNeutronAddRouterInterfaceResponseSubnetIdEnum() NeutronAddRouterInterfaceResponseSubnetIdEnum

type NeutronCreateFirewallGroupOption

type NeutronCreateFirewallGroupOption struct {

	// 功能说明:网络ACL组名称 取值范围:0-255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL防火墙组描述 取值范围:最长255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:入方向网络ACL策略
	IngressFirewallPolicyId *string `json:"ingress_firewall_policy_id,omitempty"`

	// 功能说明:出方向网络ACL策略
	EgressFirewallPolicyId *string `json:"egress_firewall_policy_id,omitempty"`

	// 功能说明:网络ACL防火墙组绑定的端口列表 约束:必须为分布式router的端口id
	Ports *[]string `json:"ports,omitempty"`

	// 功能说明:网络ACL是否受管理员控制
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

NeutronCreateFirewallGroupOption

func (NeutronCreateFirewallGroupOption) String

type NeutronCreateFirewallGroupRequest

type NeutronCreateFirewallGroupRequest struct {
	Body *NeutronCreateFirewallGroupRequestBody `json:"body,omitempty"`
}

NeutronCreateFirewallGroupRequest Request Object

func (NeutronCreateFirewallGroupRequest) String

type NeutronCreateFirewallGroupRequestBody

type NeutronCreateFirewallGroupRequestBody struct {
	FirewallGroup *NeutronCreateFirewallGroupOption `json:"firewall_group"`
}

NeutronCreateFirewallGroupRequestBody

func (NeutronCreateFirewallGroupRequestBody) String

type NeutronCreateFirewallGroupResponse

type NeutronCreateFirewallGroupResponse struct {
	FirewallGroup  *NeutronFirewallGroup `json:"firewall_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronCreateFirewallGroupResponse Response Object

func (NeutronCreateFirewallGroupResponse) String

type NeutronCreateFirewallPolicyOption

type NeutronCreateFirewallPolicyOption struct {

	// 审计标记。
	Audited *bool `json:"audited,omitempty"`

	// 功能说明:网络ACL防火墙策略描述 取值范围:最长255个字符
	Description *string `json:"description,omitempty"`

	// 策略引用的网络ACL防火墙规则链。
	FirewallRules *[]string `json:"firewall_rules,omitempty"`

	// 功能说明:网络ACL防火墙策略名称 取值范围:最长255个字符
	Name *string `json:"name,omitempty"`
}

NeutronCreateFirewallPolicyOption

func (NeutronCreateFirewallPolicyOption) String

type NeutronCreateFirewallPolicyRequest

type NeutronCreateFirewallPolicyRequest struct {
	Body *NeutronCreateFirewallPolicyRequestBody `json:"body,omitempty"`
}

NeutronCreateFirewallPolicyRequest Request Object

func (NeutronCreateFirewallPolicyRequest) String

type NeutronCreateFirewallPolicyRequestBody

type NeutronCreateFirewallPolicyRequestBody struct {
	FirewallPolicy *NeutronCreateFirewallPolicyOption `json:"firewall_policy"`
}

NeutronCreateFirewallPolicyRequestBody

func (NeutronCreateFirewallPolicyRequestBody) String

type NeutronCreateFirewallPolicyResponse

type NeutronCreateFirewallPolicyResponse struct {
	FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

NeutronCreateFirewallPolicyResponse Response Object

func (NeutronCreateFirewallPolicyResponse) String

type NeutronCreateFirewallRuleOption

type NeutronCreateFirewallRuleOption struct {

	// 功能说明:网络ACL规则名称 取值范围:0-255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL规则描述 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:IP协议 取值范围:支持TCP,UDP,ICMP, ICMPV6或者ip协议号(0-255)
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:对通过网络ACL的流量执行的操作 取值范围:DENY(拒绝)/ALLOW(允许)
	Action *NeutronCreateFirewallRuleOptionAction `json:"action,omitempty"`

	// 功能说明:IP协议版本
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 功能说明:目的地址或者CIDR
	DestinationIpAddress *string `json:"destination_ip_address,omitempty"`

	// 功能说明:目的端口号或者一段端口范围
	DestinationPort *string `json:"destination_port,omitempty"`

	// 功能说明:源地址或者CIDR
	SourceIpAddress *string `json:"source_ip_address,omitempty"`

	// 功能说明:源端口号或者一段端口范围
	SourcePort *string `json:"source_port,omitempty"`

	// 功能说明:是否使能网络ACL防火墙规则。
	Enabled *bool `json:"enabled,omitempty"`
}

NeutronCreateFirewallRuleOption

func (NeutronCreateFirewallRuleOption) String

type NeutronCreateFirewallRuleOptionAction

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

func (NeutronCreateFirewallRuleOptionAction) MarshalJSON

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

func (*NeutronCreateFirewallRuleOptionAction) UnmarshalJSON

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

func (NeutronCreateFirewallRuleOptionAction) Value added in v0.0.90

type NeutronCreateFirewallRuleOptionActionEnum

type NeutronCreateFirewallRuleOptionActionEnum struct {
	DENY  NeutronCreateFirewallRuleOptionAction
	ALLOW NeutronCreateFirewallRuleOptionAction
}

func GetNeutronCreateFirewallRuleOptionActionEnum

func GetNeutronCreateFirewallRuleOptionActionEnum() NeutronCreateFirewallRuleOptionActionEnum

type NeutronCreateFirewallRuleRequest

type NeutronCreateFirewallRuleRequest struct {
	Body *NeutronCreateFirewallRuleRequestBody `json:"body,omitempty"`
}

NeutronCreateFirewallRuleRequest Request Object

func (NeutronCreateFirewallRuleRequest) String

type NeutronCreateFirewallRuleRequestBody

type NeutronCreateFirewallRuleRequestBody struct {
	FirewallRule *NeutronCreateFirewallRuleOption `json:"firewall_rule"`
}

NeutronCreateFirewallRuleRequestBody

func (NeutronCreateFirewallRuleRequestBody) String

type NeutronCreateFirewallRuleResponse

type NeutronCreateFirewallRuleResponse struct {
	FirewallRule   *NeutronFirewallRule `json:"firewall_rule,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

NeutronCreateFirewallRuleResponse Response Object

func (NeutronCreateFirewallRuleResponse) String

type NeutronCreateNetworkOption added in v0.1.48

type NeutronCreateNetworkOption struct {

	// 功能说明:网络名称 取值范围:0-255个字符 约束:不能为admin_external_net
	Name *string `json:"name,omitempty"`

	// 功能说明:资源的管理状态 取值范围:true、false 约束:只支持true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 功能说明:是否支持跨租户共享 取值范围:true、false
	Shared *bool `json:"shared,omitempty"`

	// 功能说明:扩展属性:网络类型。管理员属性,普通租户不可见,允许 geneve类型租户执行操作。 取值范围:vxlan, geneve
	ProvidernetworkType *string `json:"provider:network_type,omitempty"`

	// 功能说明:端口安全使能标记 取值范围:true(启用)、false(禁用) 约束:如果不使能,则network下所有虚机的安全组和dhcp防欺骗不生效
	PortSecurityEnabled *bool `json:"port_security_enabled,omitempty"`
}

NeutronCreateNetworkOption 创建network对象

func (NeutronCreateNetworkOption) String added in v0.1.48

type NeutronCreateNetworkRequest added in v0.1.48

type NeutronCreateNetworkRequest struct {
	Body *NeutronCreateNetworkRequestBody `json:"body,omitempty"`
}

NeutronCreateNetworkRequest Request Object

func (NeutronCreateNetworkRequest) String added in v0.1.48

type NeutronCreateNetworkRequestBody added in v0.1.48

type NeutronCreateNetworkRequestBody struct {
	Network *NeutronCreateNetworkOption `json:"network"`
}

NeutronCreateNetworkRequestBody

func (NeutronCreateNetworkRequestBody) String added in v0.1.48

type NeutronCreateNetworkResponse added in v0.1.48

type NeutronCreateNetworkResponse struct {
	Network        *NeutronNetwork `json:"network,omitempty"`
	HttpStatusCode int             `json:"-"`
}

NeutronCreateNetworkResponse Response Object

func (NeutronCreateNetworkResponse) String added in v0.1.48

type NeutronCreatePortOption added in v0.1.48

type NeutronCreatePortOption struct {

	// 功能说明:端口的名称 取值范围:0-255个字符
	Name *string `json:"name,omitempty"`

	// 端口所属网络ID
	NetworkId string `json:"network_id"`

	// 功能说明:管理状态 约束:只支持true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 功能说明:端口的IP地址,参见“FixedIp对象”表 约束:device_owner为neutron: VIP_PORT时最多指定一个fixed_ip,给云服务器创建IPv6端口时,必须具备一个IPv4 subnet_id和一个IPv6 subnet_id 。
	FixedIps *[]FixedIp `json:"fixed_ips,omitempty"`

	// 功能说明:作用在该端口上的安全组的ID列表 约束:不支持更新为空
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:端口设备所属 取值范围:目前只支持指定\"\"和\"neutron:VIP_PORT\";neutron:VIP_PORT表示创建的是VIP
	DeviceOwner *string `json:"device_owner,omitempty"`

	// 功能说明:扩展属性:IP/Mac对列表,详情参见“allow_address_pair对象”表 约束:IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`

	// 功能说明:扩展属性:DHCP的扩展Option,详情参见“ExtraDhcpOpt对象”表
	ExtraDhcpOpts *[]ExtraDhcpOpt `json:"extra_dhcp_opts,omitempty"`

	// 扩展属性:提供用户设置自定义信息 【使用说明】  internal_elb字段,布尔类型,普通租户可见。只有在创建内网ELB的虚拟IP的网卡时设置为true。普通租户没有权限更改该字段,由系统维护。 举例:{\"internal_elb\": true}  disable_security_groups字段,布尔类型,普通租户可见。默认为false高性能通信场景下,允许指定为true普通租户可见。仅支持创建port和读取时指定。当前仅支持指定为true,不支持指定为false 举例:{\"disable_security_groups\":true }, 当前仅支持指定为true,不支持指定为false,指定为true时,FWaaS功能不生效。  仅对于“华北-北京二”:udp_srvports和tcp_srvports,字段,字符串类型,默认不设置udp_srvports和tcp_srvports字段。允许指定udp_srvports和tcp_srvports字段为端口号,表示这些端口的tcp报文和udp报文可支持高并发连接,但是此类报文不受ACL和安全组规则的限制。udp_srvports和tcp_srvports字段同时支持更新操作。 − 格式: {\"tcp_srvports\": \"port1 port2 port3\", \"udp_srvports\": \"port1 port2 port3\"} 端口号之间以空格间隔,最多允许指定的端口号总共为15个,端口号范围是1到65535。 − 示例:{\"tcp_srvports\": \"80 443\", \"udp_srvports\": \"53\"} 示例表示入方向目的端口为80或者443的tcp报文可支持高并发连接。入方向目的端口为53的udp报文可支持高并发连接。但是此类报文不受ACL和安全组规则的限制。
	Bindingprofile map[string]interface{} `json:"binding:profile,omitempty"`

	// 功能说明:端口安全使能标记,如果不使能则安全组和dhcp防欺骗不生效 取值范围:启用(true)或禁用(false)
	PortSecurityEnabled *bool `json:"port_security_enabled,omitempty"`

	// 绑定的vNIC类型  - normal: 软交换
	BindingvnicType *string `json:"binding:vnic_type,omitempty"`
}

NeutronCreatePortOption

func (NeutronCreatePortOption) String added in v0.1.48

func (o NeutronCreatePortOption) String() string

type NeutronCreatePortRequest added in v0.1.48

type NeutronCreatePortRequest struct {
	Body *NeutronCreatePortRequestBody `json:"body,omitempty"`
}

NeutronCreatePortRequest Request Object

func (NeutronCreatePortRequest) String added in v0.1.48

func (o NeutronCreatePortRequest) String() string

type NeutronCreatePortRequestBody added in v0.1.48

type NeutronCreatePortRequestBody struct {
	Port *NeutronCreatePortOption `json:"port"`
}

NeutronCreatePortRequestBody

func (NeutronCreatePortRequestBody) String added in v0.1.48

type NeutronCreatePortResponse added in v0.1.48

type NeutronCreatePortResponse struct {
	Port           *NeutronPort `json:"port,omitempty"`
	HttpStatusCode int          `json:"-"`
}

NeutronCreatePortResponse Response Object

func (NeutronCreatePortResponse) String added in v0.1.48

func (o NeutronCreatePortResponse) String() string

type NeutronCreateRouterOption added in v0.1.48

type NeutronCreateRouterOption struct {

	// 功能说明:路由器的名称。 取值范围:0-64个字符,仅支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。 约束:如果name非空,则name不能重复
	Name *string `json:"name,omitempty"`

	// 功能说明:资源的管理状态 取值范围:true、false 约束:只支持true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	ExternalGatewayInfo *ExternalGatewayInfoOption `json:"external_gateway_info,omitempty"`
}

NeutronCreateRouterOption

func (NeutronCreateRouterOption) String added in v0.1.48

func (o NeutronCreateRouterOption) String() string

type NeutronCreateRouterRequest added in v0.1.48

type NeutronCreateRouterRequest struct {
	Body *NeutronCreateRouterRequestBody `json:"body,omitempty"`
}

NeutronCreateRouterRequest Request Object

func (NeutronCreateRouterRequest) String added in v0.1.48

type NeutronCreateRouterRequestBody added in v0.1.48

type NeutronCreateRouterRequestBody struct {
	Router *NeutronCreateRouterOption `json:"router"`
}

NeutronCreateRouterRequestBody

func (NeutronCreateRouterRequestBody) String added in v0.1.48

type NeutronCreateRouterResponse added in v0.1.48

type NeutronCreateRouterResponse struct {
	Router         *NeutronRouter `json:"router,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronCreateRouterResponse Response Object

func (NeutronCreateRouterResponse) String added in v0.1.48

type NeutronCreateSecurityGroupOption

type NeutronCreateSecurityGroupOption struct {

	// 功能说明:安全组描述 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:安全组名称 取值范围:0-255个字符 约束:不允许为“default”
	Name *string `json:"name,omitempty"`
}

NeutronCreateSecurityGroupOption

func (NeutronCreateSecurityGroupOption) String

type NeutronCreateSecurityGroupRequest

type NeutronCreateSecurityGroupRequest struct {
	Body *NeutronCreateSecurityGroupRequestBody `json:"body,omitempty"`
}

NeutronCreateSecurityGroupRequest Request Object

func (NeutronCreateSecurityGroupRequest) String

type NeutronCreateSecurityGroupRequestBody

type NeutronCreateSecurityGroupRequestBody struct {
	SecurityGroup *NeutronCreateSecurityGroupOption `json:"security_group"`
}

NeutronCreateSecurityGroupRequestBody

func (NeutronCreateSecurityGroupRequestBody) String

type NeutronCreateSecurityGroupResponse

type NeutronCreateSecurityGroupResponse struct {
	SecurityGroup  *NeutronSecurityGroup `json:"security_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronCreateSecurityGroupResponse Response Object

func (NeutronCreateSecurityGroupResponse) String

type NeutronCreateSecurityGroupRuleOption

type NeutronCreateSecurityGroupRuleOption struct {

	// 功能说明:安全组规则描述 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:安全组规则方向 取值范围:ingress(入方向)或egress(出方向)
	Direction NeutronCreateSecurityGroupRuleOptionDirection `json:"direction"`

	// 功能说明:安全组规则网络类型 取值范围:IPv4或IPv6
	Ethertype *NeutronCreateSecurityGroupRuleOptionEthertype `json:"ethertype,omitempty"`

	// 最大端口,当协议类型为ICMP时,该值表示ICMP的code
	PortRangeMax *int32 `json:"port_range_max,omitempty"`

	// 功能说明:最小端口,当协议类型为ICMP时,该值表示ICMP的type 约束:protocol为tcp和udp时,port_range_max和port_range_min必须同时输入,且port_range_max应大于等于port_range_min。protocol为icmp时,指定ICMP code(port_range_max)时,必须同时指定ICMP type(port_range_min)。
	PortRangeMin *int32 `json:"port_range_min,omitempty"`

	// 功能说明:tcp/udp/icmp/icmpv6或IP协议编号(0~255) 约束:协议为icmpv6时,网络类型应该为IPv6;协议为icmp时,网络类型应该为IPv4
	Protocol *string `json:"protocol,omitempty"`

	// 功能说明:目的安全组的ID
	RemoteGroupId *string `json:"remote_group_id,omitempty"`

	// 功能说明:目的端ip网段 取值范围:cidr格式,如10.10.0.0/16
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`

	// 功能说明:远端地址组的ID
	RemoteAddressGroupId *string `json:"remote_address_group_id,omitempty"`

	// 所属安全组ID
	SecurityGroupId string `json:"security_group_id"`
}

NeutronCreateSecurityGroupRuleOption

func (NeutronCreateSecurityGroupRuleOption) String

type NeutronCreateSecurityGroupRuleOptionDirection

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

func (NeutronCreateSecurityGroupRuleOptionDirection) MarshalJSON

func (*NeutronCreateSecurityGroupRuleOptionDirection) UnmarshalJSON

func (NeutronCreateSecurityGroupRuleOptionDirection) Value added in v0.0.90

type NeutronCreateSecurityGroupRuleOptionEthertype

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

func (NeutronCreateSecurityGroupRuleOptionEthertype) MarshalJSON

func (*NeutronCreateSecurityGroupRuleOptionEthertype) UnmarshalJSON

func (NeutronCreateSecurityGroupRuleOptionEthertype) Value added in v0.0.90

type NeutronCreateSecurityGroupRuleRequest

type NeutronCreateSecurityGroupRuleRequest struct {
	Body *NeutronCreateSecurityGroupRuleRequestBody `json:"body,omitempty"`
}

NeutronCreateSecurityGroupRuleRequest Request Object

func (NeutronCreateSecurityGroupRuleRequest) String

type NeutronCreateSecurityGroupRuleRequestBody

type NeutronCreateSecurityGroupRuleRequestBody struct {
	SecurityGroupRule *NeutronCreateSecurityGroupRuleOption `json:"security_group_rule"`
}

NeutronCreateSecurityGroupRuleRequestBody

func (NeutronCreateSecurityGroupRuleRequestBody) String

type NeutronCreateSecurityGroupRuleResponse

type NeutronCreateSecurityGroupRuleResponse struct {
	SecurityGroupRule *NeutronSecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                       `json:"-"`
}

NeutronCreateSecurityGroupRuleResponse Response Object

func (NeutronCreateSecurityGroupRuleResponse) String

type NeutronCreateSubnetOption added in v0.1.48

type NeutronCreateSubnetOption struct {

	// 功能说明:子网的名称 取值范围:0-255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:子网网段 取值范围:必须是cidr格式,只支持10.0.0.0/8,172.16.0.0/12,192.168.0.0/16三个网段内的地址,掩码长度不能大于28
	Cidr string `json:"cidr"`

	// 功能说明:子网所属网络ID
	NetworkId string `json:"network_id"`

	// 功能说明:子网网关 取值范围:子网网段中的IP地址 约束:必须是ip格式
	GatewayIp *string `json:"gateway_ip,omitempty"`

	// 功能说明:IP版本信息 取值范围:4或者6(特定局点)
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 功能说明:可用的IP池,allocation_pool对象参见allocation_pool对象 例如:[ { \"start\": \"10.0.0.2\", \"end\": \"10.0.0.251\"} ]每个子网的第1个和最后4个IP地址为系统保留地址。以192.168.1.0/24为例,192.168.1.0、 192.168.1.252、192.168.1.253、192.168.1.254和192.168.1.255这些地址是系统保留地址。系统预留地址默认不在allocation_pool范围内。 约束:更新时allocation_pool范围不能包含网关和广播地址的所有IP。
	AllocationPools *[]AllocationPool `json:"allocation_pools,omitempty"`

	// 功能说明:子网关联的DNS名称服务器列表 取值范围:IP地址格式例如:\"dns_nameservers\": [\"8.xx.xx.8\",\"8.xx.xx.4\"] 默认值:不填时为空,无法使用云内网DNS功能 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	DnsNameservers *[]string `json:"dns_nameservers,omitempty"`

	// 功能说明:虚拟机静态路由,参见“host_route对象”表 约束:不支持设置
	HostRoutes *[]HostRoute `json:"host_routes,omitempty"`

	// 功能说明:是否启动dhcp,false表示不提供dhcp服务的能力 约束:只支持true
	EnableDhcp *bool `json:"enable_dhcp,omitempty"`

	// 功能说明:IPv6寻址模式 取值范围:dhcpv6-stateful
	Ipv6AddressMode *string `json:"ipv6_address_mode,omitempty"`

	// 功能说明:IPv6路由广播模式 取值范围:dhcpv6-stateful
	Ipv6RaMode *string `json:"ipv6_ra_mode,omitempty"`
}

NeutronCreateSubnetOption

func (NeutronCreateSubnetOption) String added in v0.1.48

func (o NeutronCreateSubnetOption) String() string

type NeutronCreateSubnetRequest added in v0.1.48

type NeutronCreateSubnetRequest struct {
	Body *NeutronCreateSubnetRequestBody `json:"body,omitempty"`
}

NeutronCreateSubnetRequest Request Object

func (NeutronCreateSubnetRequest) String added in v0.1.48

type NeutronCreateSubnetRequestBody added in v0.1.48

type NeutronCreateSubnetRequestBody struct {
	Subnet *NeutronCreateSubnetOption `json:"subnet"`
}

NeutronCreateSubnetRequestBody

func (NeutronCreateSubnetRequestBody) String added in v0.1.48

type NeutronCreateSubnetResponse added in v0.1.48

type NeutronCreateSubnetResponse struct {
	Subnet         *NeutronSubnet `json:"subnet,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronCreateSubnetResponse Response Object

func (NeutronCreateSubnetResponse) String added in v0.1.48

type NeutronDeleteFirewallGroupRequest

type NeutronDeleteFirewallGroupRequest struct {

	// 网络ACL防火墙组ID
	FirewallGroupId string `json:"firewall_group_id"`
}

NeutronDeleteFirewallGroupRequest Request Object

func (NeutronDeleteFirewallGroupRequest) String

type NeutronDeleteFirewallGroupResponse

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

NeutronDeleteFirewallGroupResponse Response Object

func (NeutronDeleteFirewallGroupResponse) String

type NeutronDeleteFirewallPolicyRequest

type NeutronDeleteFirewallPolicyRequest struct {

	// 网络ACL防火墙策略ID
	FirewallPolicyId string `json:"firewall_policy_id"`
}

NeutronDeleteFirewallPolicyRequest Request Object

func (NeutronDeleteFirewallPolicyRequest) String

type NeutronDeleteFirewallPolicyResponse

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

NeutronDeleteFirewallPolicyResponse Response Object

func (NeutronDeleteFirewallPolicyResponse) String

type NeutronDeleteFirewallRuleRequest

type NeutronDeleteFirewallRuleRequest struct {

	// 网络ACL防火墙规则ID
	FirewallRuleId string `json:"firewall_rule_id"`
}

NeutronDeleteFirewallRuleRequest Request Object

func (NeutronDeleteFirewallRuleRequest) String

type NeutronDeleteFirewallRuleResponse

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

NeutronDeleteFirewallRuleResponse Response Object

func (NeutronDeleteFirewallRuleResponse) String

type NeutronDeleteNetworkRequest added in v0.1.48

type NeutronDeleteNetworkRequest struct {

	// 网络ID
	NetworkId string `json:"network_id"`
}

NeutronDeleteNetworkRequest Request Object

func (NeutronDeleteNetworkRequest) String added in v0.1.48

type NeutronDeleteNetworkResponse added in v0.1.48

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

NeutronDeleteNetworkResponse Response Object

func (NeutronDeleteNetworkResponse) String added in v0.1.48

type NeutronDeletePortRequest added in v0.1.48

type NeutronDeletePortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`
}

NeutronDeletePortRequest Request Object

func (NeutronDeletePortRequest) String added in v0.1.48

func (o NeutronDeletePortRequest) String() string

type NeutronDeletePortResponse added in v0.1.48

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

NeutronDeletePortResponse Response Object

func (NeutronDeletePortResponse) String added in v0.1.48

func (o NeutronDeletePortResponse) String() string

type NeutronDeleteRouterRequest added in v0.1.48

type NeutronDeleteRouterRequest struct {

	// 路由器ID
	RouterId string `json:"router_id"`
}

NeutronDeleteRouterRequest Request Object

func (NeutronDeleteRouterRequest) String added in v0.1.48

type NeutronDeleteRouterResponse added in v0.1.48

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

NeutronDeleteRouterResponse Response Object

func (NeutronDeleteRouterResponse) String added in v0.1.48

type NeutronDeleteSecurityGroupRequest

type NeutronDeleteSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`
}

NeutronDeleteSecurityGroupRequest Request Object

func (NeutronDeleteSecurityGroupRequest) String

type NeutronDeleteSecurityGroupResponse

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

NeutronDeleteSecurityGroupResponse Response Object

func (NeutronDeleteSecurityGroupResponse) String

type NeutronDeleteSecurityGroupRuleRequest

type NeutronDeleteSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

NeutronDeleteSecurityGroupRuleRequest Request Object

func (NeutronDeleteSecurityGroupRuleRequest) String

type NeutronDeleteSecurityGroupRuleResponse

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

NeutronDeleteSecurityGroupRuleResponse Response Object

func (NeutronDeleteSecurityGroupRuleResponse) String

type NeutronDeleteSubnetRequest added in v0.1.48

type NeutronDeleteSubnetRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`
}

NeutronDeleteSubnetRequest Request Object

func (NeutronDeleteSubnetRequest) String added in v0.1.48

type NeutronDeleteSubnetResponse added in v0.1.48

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

NeutronDeleteSubnetResponse Response Object

func (NeutronDeleteSubnetResponse) String added in v0.1.48

type NeutronFirewallGroup

type NeutronFirewallGroup struct {

	// 功能说明:网络ACL组的ID
	Id string `json:"id"`

	// 功能说明:网络ACL组名称 取值范围:0-255个字符
	Name string `json:"name"`

	// 功能说明:网络ACL组描述 取值范围:0-255个字符
	Description string `json:"description"`

	// 网络ACL防火墙是否受管理员控制。
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:出方向网络ACL策略ID
	EgressFirewallPolicyId string `json:"egress_firewall_policy_id"`

	// 功能说明:入方向网络ACL策略ID
	IngressFirewallPolicyId string `json:"ingress_firewall_policy_id"`

	// 取值范围:网络ACL组绑定的端口列表
	Ports []string `json:"ports"`

	// 功能说明:是否支持跨租户共享 取值范围:true/false
	Public bool `json:"public"`

	// 功能说明:网络ACL组状态
	Status string `json:"status"`

	// 功能说明:网络ACL组所属项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:网络ACL组所属项目ID
	ProjectId string `json:"project_id"`

	// 功能说明:资源创建时间,UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新时间,UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronFirewallGroup

func (NeutronFirewallGroup) String

func (o NeutronFirewallGroup) String() string

type NeutronFirewallPolicy

type NeutronFirewallPolicy struct {

	// 审计标记。
	Audited bool `json:"audited"`

	// 网络ACL防火墙策略描述。
	Description string `json:"description"`

	// 策略引用的网络ACL防火墙规则链。
	FirewallRules []string `json:"firewall_rules"`

	// 网络ACL防火墙策略uuid标识。
	Id string `json:"id"`

	// 网络ACL防火墙策略名称。
	Name string `json:"name"`

	// 是否支持跨租户共享。
	Public bool `json:"public"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

NeutronFirewallPolicy

func (NeutronFirewallPolicy) String

func (o NeutronFirewallPolicy) String() string

type NeutronFirewallRule

type NeutronFirewallRule struct {

	// 功能说明:网络ACL规则的uuid标识。
	Id string `json:"id"`

	// 功能说明:网络ACL规则名称。 取值范围:0-255个字符
	Name string `json:"name"`

	// 功能说明:网络ACL规则描述 取值范围:0-255个字符长度
	Description string `json:"description"`

	// 功能说明:对通过网络ACL的流量执行的操作。 取值范围:DENY(拒绝)/ALLOW(允许)
	Action NeutronFirewallRuleAction `json:"action"`

	// 功能说明:IP协议 取值范围:支持TCP,UDP,ICMP, ICMPV6或者IP协议号(0-255)
	Protocol string `json:"protocol"`

	// 功能说明:IP协议版本 取值范围:Ipv4/Ipv6
	IpVersion int32 `json:"ip_version"`

	// 功能说明:是否使能网络ACL规则。 取值范围:true/false
	Enabled bool `json:"enabled"`

	// 功能说明:是否支持跨租户共享 取值范围:true/false
	Public bool `json:"public"`

	// 功能说明:目的地址或者CIDR。
	DestinationIpAddress string `json:"destination_ip_address"`

	// 功能说明:目的端口号或者一段端口范围。
	DestinationPort string `json:"destination_port"`

	// 功能说明:源地址或者CIDR。
	SourceIpAddress string `json:"source_ip_address"`

	// 功能说明:源端口号或者一段端口范围。
	SourcePort string `json:"source_port"`

	// 功能说明:项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:项目ID
	ProjectId string `json:"project_id"`
}

NeutronFirewallRule

func (NeutronFirewallRule) String

func (o NeutronFirewallRule) String() string

type NeutronFirewallRuleAction

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

func (NeutronFirewallRuleAction) MarshalJSON

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

func (*NeutronFirewallRuleAction) UnmarshalJSON

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

func (NeutronFirewallRuleAction) Value added in v0.0.90

type NeutronFirewallRuleActionEnum

type NeutronFirewallRuleActionEnum struct {
	DENY  NeutronFirewallRuleAction
	ALLOW NeutronFirewallRuleAction
}

func GetNeutronFirewallRuleActionEnum

func GetNeutronFirewallRuleActionEnum() NeutronFirewallRuleActionEnum

type NeutronInsertFirewallRuleRequestBody

type NeutronInsertFirewallRuleRequestBody struct {

	// 功能说明:网络ACL规则ID
	FirewallRuleId string `json:"firewall_rule_id"`

	// insert_after参数表示已经和某个policy关联的rule,新的rule将会直接被插入到insert_after参数指定的rule后面。如果insert_after和insert_before都被指定了,insert_after参数值将被忽略。
	InsertAfter *string `json:"insert_after,omitempty"`

	// insert_before参数表示已经和某个policy关联的rule,新的firewall rule将会直接被插入到insert_ before参数指定的firewall rule前面。如果insert_after和insert_before都被指定了,insert_after参数值将被忽略。
	InsertBefore *string `json:"insert_before,omitempty"`
}

NeutronInsertFirewallRuleRequestBody

func (NeutronInsertFirewallRuleRequestBody) String

type NeutronListFirewallGroupsRequest

type NeutronListFirewallGroupsRequest struct {

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 使用id过滤网络ACL组
	Id *[]string `json:"id,omitempty"`

	// 使用name过滤ACL组
	Name *[]string `json:"name,omitempty"`

	// 使用description过滤ACL组
	Description *[]string `json:"description,omitempty"`

	// 使用入方向的网络ACL策略ID过滤网络ACL组
	IngressFirewallPolicyId *string `json:"ingress_firewall_policy_id,omitempty"`

	// 使用出方向的网络ACL策略过滤查询网络ACL组
	EgressFirewallPolicyId *string `json:"egress_firewall_policy_id,omitempty"`
}

NeutronListFirewallGroupsRequest Request Object

func (NeutronListFirewallGroupsRequest) String

type NeutronListFirewallGroupsResponse

type NeutronListFirewallGroupsResponse struct {

	// firewall_group对象列表
	FirewallGroups *[]NeutronFirewallGroup `json:"firewall_groups,omitempty"`

	// 分页信息
	FirewallGroupsLinks *[]NeutronPageLink `json:"firewall_groups_links,omitempty"`
	HttpStatusCode      int                `json:"-"`
}

NeutronListFirewallGroupsResponse Response Object

func (NeutronListFirewallGroupsResponse) String

type NeutronListFirewallPoliciesRequest

type NeutronListFirewallPoliciesRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 使用网络ACL策略ID过滤网络ACL策略
	Id *[]string `json:"id,omitempty"`

	// 使用name过滤网络ACL策略
	Name *[]string `json:"name,omitempty"`

	// 使用网络ACL策略描述过滤查询网络ACL策略
	Description *[]string `json:"description,omitempty"`

	// 使用tenant_id过滤查询网络ACL策略
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListFirewallPoliciesRequest Request Object

func (NeutronListFirewallPoliciesRequest) String

type NeutronListFirewallPoliciesResponse

type NeutronListFirewallPoliciesResponse struct {

	// firewall_policy对象列表
	FirewallPolicies *[]NeutronFirewallPolicy `json:"firewall_policies,omitempty"`

	// 分页信息
	FirewallPoliciesLinks *[]NeutronPageLink `json:"firewall_policies_links,omitempty"`
	HttpStatusCode        int                `json:"-"`
}

NeutronListFirewallPoliciesResponse Response Object

func (NeutronListFirewallPoliciesResponse) String

type NeutronListFirewallRulesRequest

type NeutronListFirewallRulesRequest struct {

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 使用网络ACL规则ID过滤网络ACL规则
	Id *[]string `json:"id,omitempty"`

	// 使用网络ACL规则name过滤网络ACL规则
	Name *[]string `json:"name,omitempty"`

	// 使用网络ACL规则的description过滤网络ACL规则
	Description *[]string `json:"description,omitempty"`

	// 使用action过滤查询网络ACL规则
	Action *string `json:"action,omitempty"`

	// 使用tenant_id过滤查询网络ACL规则
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListFirewallRulesRequest Request Object

func (NeutronListFirewallRulesRequest) String

type NeutronListFirewallRulesResponse

type NeutronListFirewallRulesResponse struct {

	// firewall_rule对象列表
	FirewallRules *[]NeutronFirewallRule `json:"firewall_rules,omitempty"`

	// 分页信息
	FirewallRulesLinks *[]NeutronPageLink `json:"firewall_rules_links,omitempty"`
	HttpStatusCode     int                `json:"-"`
}

NeutronListFirewallRulesResponse Response Object

func (NeutronListFirewallRulesResponse) String

type NeutronListNetworksRequest added in v0.1.48

type NeutronListNetworksRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照网络对应的ID过滤查询
	Id *string `json:"id,omitempty"`

	// 按照网络的名称过滤查询
	Name *string `json:"name,omitempty"`

	// 按照网络的状态过滤查询,取值范围:ACTIVE、ERROR、DOWN
	Status *string `json:"status,omitempty"`

	// 按照网络是否支持跨租户共享过滤查询,取值范围:true or false
	Shared *bool `json:"shared,omitempty"`

	// 按照网络是否外部网络过滤查询,取值范围:true or false
	Routerexternal *bool `json:"router:external,omitempty"`

	// 按照网络的管理状态过滤查询,取值范围:true or false
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 按照网络的类型过滤查询
	ProvidernetworkType *string `json:"provider:network_type,omitempty"`

	// 按照network所属的项目ID过滤
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListNetworksRequest Request Object

func (NeutronListNetworksRequest) String added in v0.1.48

type NeutronListNetworksResponse added in v0.1.48

type NeutronListNetworksResponse struct {

	// network对象列表
	Networks *[]NeutronNetwork `json:"networks,omitempty"`

	// 分页信息
	NetworksLinks  *[]NeutronPageLink `json:"networks_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NeutronListNetworksResponse Response Object

func (NeutronListNetworksResponse) String added in v0.1.48

type NeutronListPortsRequest added in v0.1.48

type NeutronListPortsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照端口的ID过滤查询
	Id *string `json:"id,omitempty"`

	// 按照端口的名称过滤查询
	Name *string `json:"name,omitempty"`

	// 按照端口的管理状态过滤查询,取值范围:true or false
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 按照端口所属的网络ID过滤查询
	NetworkId *string `json:"network_id,omitempty"`

	// 按照端口的mac地址过滤查询
	MacAddress *string `json:"mac_address,omitempty"`

	// 按照端口的设备ID过滤查询
	DeviceId *string `json:"device_id,omitempty"`

	// 按照端口的设备所属过滤查询
	DeviceOwner *string `json:"device_owner,omitempty"`

	// 按照端口状态过滤查询,取值范围:ACTIVE、BUILD、DOWN
	Status *string `json:"status,omitempty"`

	// 按照安全组ID列表过滤查询
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 按照端口的IP地址过滤查询,fixed_ips=ip_address或者fixed_ips=subnet_id过滤查询
	FixedIps *[]string `json:"fixed_ips,omitempty"`

	// 按照端口所属的项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListPortsRequest Request Object

func (NeutronListPortsRequest) String added in v0.1.48

func (o NeutronListPortsRequest) String() string

type NeutronListPortsResponse added in v0.1.48

type NeutronListPortsResponse struct {

	// port对象列表
	Ports *[]NeutronPort `json:"ports,omitempty"`

	// 分页信息
	PortsLinks     *[]NeutronPageLink `json:"ports_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NeutronListPortsResponse Response Object

func (NeutronListPortsResponse) String added in v0.1.48

func (o NeutronListPortsResponse) String() string

type NeutronListRoutersRequest added in v0.1.48

type NeutronListRoutersRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照路由器的ID过滤查询
	Id *string `json:"id,omitempty"`

	// 按照路由器的状态过滤查询,取值范围:ACTIVE, DOWN,ERROR
	Status *string `json:"status,omitempty"`

	// 按照路由器所属的项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`

	// 按照路由器的管理状态过滤查询,取值范围:true or false
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

NeutronListRoutersRequest Request Object

func (NeutronListRoutersRequest) String added in v0.1.48

func (o NeutronListRoutersRequest) String() string

type NeutronListRoutersResponse added in v0.1.48

type NeutronListRoutersResponse struct {

	// router对象列表
	Routers *[]NeutronRouter `json:"routers,omitempty"`

	// 分页信息
	RoutersLinks   *[]NeutronPageLink `json:"routers_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NeutronListRoutersResponse Response Object

func (NeutronListRoutersResponse) String added in v0.1.48

type NeutronListSecurityGroupRulesRequest

type NeutronListSecurityGroupRulesRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照安全组规则对应的id过滤查询结果
	Id *string `json:"id,omitempty"`

	// 按照安全组规则的方向过滤查询结果,支持ingress和egress进行过滤
	Direction *string `json:"direction,omitempty"`

	// 按照安全组规则的IP协议过滤查询结果
	Protocol *string `json:"protocol,omitempty"`

	// 按照网络类型过滤查询结果,支持IPv4或者IPv6
	Ethertype *string `json:"ethertype,omitempty"`

	// 按照安全组规则的描述过滤查询结果
	Description *string `json:"description,omitempty"`

	// 按照与此安全组规则匹配的远端IP网段过滤查询结果
	RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"`

	// 按照与此安全组规则关联的远端安全组ID过滤查询结果
	RemoteGroupId *string `json:"remote_group_id,omitempty"`

	// 按照与此安全组规则所属的安全组ID过滤查询结果
	SecurityGroupId *string `json:"security_group_id,omitempty"`

	// 按照最大端口过滤查询结果
	PortRangeMax *string `json:"port_range_max,omitempty"`

	// 按照最小端口过滤查询结果
	PortRangeMin *string `json:"port_range_min,omitempty"`

	// 按照安全组规则所属的项目ID过滤查询结果
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListSecurityGroupRulesRequest Request Object

func (NeutronListSecurityGroupRulesRequest) String

type NeutronListSecurityGroupRulesResponse

type NeutronListSecurityGroupRulesResponse struct {

	// 安全组规则对象列表
	SecurityGroupRules *[]NeutronSecurityGroupRule `json:"security_group_rules,omitempty"`

	// 分页信息
	SecurityGroupRulesLinks *[]NeutronPageLink `json:"security_group_rules_links,omitempty"`
	HttpStatusCode          int                `json:"-"`
}

NeutronListSecurityGroupRulesResponse Response Object

func (NeutronListSecurityGroupRulesResponse) String

type NeutronListSecurityGroupsRequest

type NeutronListSecurityGroupsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照安全组对应的ID过滤查询
	Id *string `json:"id,omitempty"`

	// 按照安全组的名称过滤查询
	Name *string `json:"name,omitempty"`

	// 按照安全组的描述过滤查询
	Description *string `json:"description,omitempty"`

	// 按照安全组所属的项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListSecurityGroupsRequest Request Object

func (NeutronListSecurityGroupsRequest) String

type NeutronListSecurityGroupsResponse

type NeutronListSecurityGroupsResponse struct {

	// 安全组对象列表
	SecurityGroups *[]NeutronSecurityGroup `json:"security_groups,omitempty"`

	// 分页信息
	SecurityGroupsLinks *[]NeutronPageLink `json:"security_groups_links,omitempty"`
	HttpStatusCode      int                `json:"-"`
}

NeutronListSecurityGroupsResponse Response Object

func (NeutronListSecurityGroupsResponse) String

type NeutronListSubnetsRequest added in v0.1.48

type NeutronListSubnetsRequest struct {

	// 每页返回的个数
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询起始的资源ID,为空时查询第一页
	Marker *string `json:"marker,omitempty"`

	// 按照子网对应的ID过滤查询
	Id *string `json:"id,omitempty"`

	// 按照子网的cidr过滤查询
	Cidr *string `json:"cidr,omitempty"`

	// 按照子网的名称过滤查询
	Name *string `json:"name,omitempty"`

	// 按照子网是否开启dhcp过滤查询,取值范围:true or false
	EnableDhcp *bool `json:"enable_dhcp,omitempty"`

	// 按照子网所属network_id过滤查询
	NetworkId *string `json:"network_id,omitempty"`

	// 按照子网的IP协议版本过滤查询
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 按照子网的网关IP过滤查询
	GatewayIp *string `json:"gateway_ip,omitempty"`

	// 按照子网所属的项目ID过滤查询
	TenantId *string `json:"tenant_id,omitempty"`
}

NeutronListSubnetsRequest Request Object

func (NeutronListSubnetsRequest) String added in v0.1.48

func (o NeutronListSubnetsRequest) String() string

type NeutronListSubnetsResponse added in v0.1.48

type NeutronListSubnetsResponse struct {

	// subnet对象列表
	Subnets *[]NeutronSubnet `json:"subnets,omitempty"`

	// 分页信息
	SubnetsLinks   *[]NeutronPageLink `json:"subnets_links,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NeutronListSubnetsResponse Response Object

func (NeutronListSubnetsResponse) String added in v0.1.48

type NeutronNetwork added in v0.1.48

type NeutronNetwork struct {

	// 网络ID
	Id string `json:"id"`

	// 功能说明:网络状态 取值范围:ACTIVE,DOWN,BUILD或ERROR
	Status NeutronNetworkStatus `json:"status"`

	// 功能说明:网络名称 取值范围:0-255个字符
	Name string `json:"name"`

	// 功能说明:网络关联的子网ID列表 约束:一个network仅支持关联一个 subnet。
	Subnets []string `json:"subnets"`

	// 功能说明:扩展属性,是否外部网络 取值范围:true、false 约束:不支持设置和更新
	Routerexternal bool `json:"router:external"`

	// 功能说明:资源的管理状态 取值范围:true、false 约束:只支持true
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:是否支持跨租户共享此资源 取值范围:true(共享)、false(非共享) 约束:不支持设置和更新
	Shared bool `json:"shared"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:扩展属性,网络类型(支持vxlan, geneve) 取值范围:vxlan,geneve
	ProvidernetworkType string `json:"provider:network_type"`

	// 功能说明:本网络的候选可用域
	AvailabilityZoneHints []string `json:"availability_zone_hints"`

	// 功能说明:本网络的可用域。 取值范围:当前region下的可用域
	AvailabilityZones []string `json:"availability_zones"`

	// 功能说明:端口安全使能标记 取值范围:true(启用)、false(禁用) 约束:如果不使能,则network下所有虚机的安全组和dhcp防欺骗不生效
	PortSecurityEnabled bool `json:"port_security_enabled"`

	// 功能说明:默认内网DNS域地址 约束:系统自动生成维护,不支持设置和更新
	DnsDomain string `json:"dns_domain"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronNetwork network对象列表

func (NeutronNetwork) String added in v0.1.48

func (o NeutronNetwork) String() string

type NeutronNetworkStatus added in v0.1.48

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

func (NeutronNetworkStatus) MarshalJSON added in v0.1.48

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

func (*NeutronNetworkStatus) UnmarshalJSON added in v0.1.48

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

func (NeutronNetworkStatus) Value added in v0.1.48

func (c NeutronNetworkStatus) Value() string

type NeutronNetworkStatusEnum added in v0.1.48

type NeutronNetworkStatusEnum struct {
	ACTIVE NeutronNetworkStatus
	DOWN   NeutronNetworkStatus
	BUILD  NeutronNetworkStatus
	ERROR  NeutronNetworkStatus
}

func GetNeutronNetworkStatusEnum added in v0.1.48

func GetNeutronNetworkStatusEnum() NeutronNetworkStatusEnum
type NeutronPageLink struct {

	// API链接
	Href string `json:"href"`

	// API链接与该API版本的关系
	Rel string `json:"rel"`
}

NeutronPageLink

func (NeutronPageLink) String

func (o NeutronPageLink) String() string

type NeutronPort added in v0.1.48

type NeutronPort struct {

	// 功能说明:端口管理状态 约束:目前支持true
	AdminStateUp bool `json:"admin_state_up"`

	// 功能说明:扩展属性:IP/Mac对列表,详情参见“allow_address_pair对象”表 约束:IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。
	AllowedAddressPairs []AllowedAddressPair `json:"allowed_address_pairs"`

	// 扩展属性:提供用户设置自定义信息 【使用说明】  internal_elb字段,布尔类型,普通租户可见。只有在创建内网ELB的虚拟IP的网卡时设置为true。普通租户没有权限更改该字段,由系统维护。 举例:{\"internal_elb\": true}  disable_security_groups字段,布尔类型,普通租户可见。默认为false高性能通信场景下,允许指定为true普通租户可见。仅支持创建port和读取时指定。当前仅支持指定为true,不支持指定为false 举例:{\"disable_security_groups\":true }, 当前仅支持指定为true,不支持指定为false,指定为true时,FWaaS功能不生效。  仅对于“华北-北京二”:udp_srvports和tcp_srvports,字段,字符串类型,默认不设置udp_srvports和tcp_srvports字段。允许指定udp_srvports和tcp_srvports字段为端口号,表示这些端口的tcp报文和udp报文可支持高并发连接,但是此类报文不受ACL和安全组规则的限制。udp_srvports和tcp_srvports字段同时支持更新操作。 − 格式: {\"tcp_srvports\": \"port1 port2 port3\", \"udp_srvports\": \"port1 port2 port3\"} 端口号之间以空格间隔,最多允许指定的端口号总共为15个,端口号范围是1到65535。 − 示例:{\"tcp_srvports\": \"80 443\", \"udp_srvports\": \"53\"} 示例表示入方向目的端口为80或者443的tcp报文可支持高并发连接。入方向目的端口为53的udp报文可支持高并发连接。但是此类报文不受ACL和安全组规则的限制。
	Bindingprofile *interface{} `json:"binding:profile"`

	BindingvifDetails *BindingVifDetails `json:"binding:vif_details"`

	// 功能说明:绑定的vNIC类型  - normal:软交换
	BindingvnicType string `json:"binding:vnic_type"`

	// 功能说明:端口设备ID 约束:不支持设置和更新,由系统自动维护,该字段非空的端口不允许删除。
	DeviceId string `json:"device_id"`

	// 功能说明:端口设备所属(DHCP/Router/ Nova等) 约束:不支持更新,只允许用户在创建虚拟IP端口时,为虚拟IP端口设置device_owner为neutron:VIP_PORT,当端口的该字段不为空时,仅支持该字段为neutron:VIP_PORT时的端口删除。该字段非空的端口不允许删除。
	DeviceOwner string `json:"device_owner"`

	// 功能说明:扩展属性:主网卡默认内网域名信息 约束:不支持设置和更新,由系统自动维护  - hostname:与端口dns_name一致  - ip_address:端口ipv4私有地址  - fqdn:为端口创建默认内网fqdn
	DnsAssignment []DnsAssignMent `json:"dns_assignment"`

	// 功能说明:扩展属性:主网卡默认内网DNS名称 约束:不支持设置和更新,由系统自动维护,访问该默认内网域名前,请确保子网使用当前系统提供的DNS
	DnsName string `json:"dns_name"`

	// 功能说明:扩展属性:DHCP的扩展Option,详情参见“ExtraDhcpOpt对象”表
	ExtraDhcpOpts []ExtraDhcpOpt `json:"extra_dhcp_opts"`

	// 功能说明:端口的IP地址,参见“FixedIp对象”表 约束:device_owner为neutron: VIP_PORT时最多指定一个fixed_ip,给云服务器创建IPv6端口时,必须具备一个IPv4 subnet_id和一个IPv6 subnet_id 。
	FixedIps []FixedIp `json:"fixed_ips"`

	// 端口ID
	Id string `json:"id"`

	// 功能说明:端口mac地址 约束:只支持系统动态分配,不支持指定
	MacAddress string `json:"mac_address"`

	// 功能说明:端口的名称 取值范围:0-255个字符
	Name string `json:"name"`

	// 端口所属网络ID
	NetworkId string `json:"network_id"`

	// 功能说明:端口安全使能标记,如果不使能则安全组和dhcp防欺骗不生效 取值范围:启用(true)或禁用(false)
	PortSecurityEnabled bool `json:"port_security_enabled"`

	// 功能说明:作用在该端口上的安全组的ID列表 约束:不支持更新为空
	SecurityGroups []string `json:"security_groups"`

	// 功能说明:端口状态 取值范围:ACTIVE,BUILD,DOWN 约束:Hana硬直通虚拟机端口状态总为DOWN
	Status string `json:"status"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronPort

func (NeutronPort) String added in v0.1.48

func (o NeutronPort) String() string

type NeutronRemoveFirewallRuleRequest

type NeutronRemoveFirewallRuleRequest struct {

	// 网络ACL防火墙策略ID
	FirewallPolicyId string `json:"firewall_policy_id"`

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

NeutronRemoveFirewallRuleRequest Request Object

func (NeutronRemoveFirewallRuleRequest) String

type NeutronRemoveFirewallRuleRequestBody

type NeutronRemoveFirewallRuleRequestBody struct {

	// 功能说明:待移除的ACL规则ID
	FirewallRuleId string `json:"firewall_rule_id"`
}

NeutronRemoveFirewallRuleRequestBody

func (NeutronRemoveFirewallRuleRequestBody) String

type NeutronRemoveFirewallRuleResponse

type NeutronRemoveFirewallRuleResponse struct {

	// 功能说明:网络ACL策略ID
	Id *string `json:"id,omitempty"`

	// 功能说明:网络ACL策略名称
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL策略的描述信息 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:网络ACL策略关联的规则的ID列表
	FirewallRules *[]string `json:"firewall_rules,omitempty"`

	// 功能说明:每次policy或者它相关的rule有变动,该参数将会被置为False
	Audited *bool `json:"audited,omitempty"`

	// 功能说明:网络ACL策略是否对其他网络ACL策略可见 取值范围:true(可见)、false(不可见)
	Public *bool `json:"public,omitempty"`

	// 功能说明:网络ACL策略所属项目ID
	TenantId *string `json:"tenant_id,omitempty"`

	// 功能说明:网络ACL策略所属项目ID
	ProjectId      *string `json:"project_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

NeutronRemoveFirewallRuleResponse Response Object

func (NeutronRemoveFirewallRuleResponse) String

type NeutronRemoveRouterInterfaceRequest added in v0.1.48

type NeutronRemoveRouterInterfaceRequest struct {

	// 路由器ID
	RouterId string `json:"router_id"`

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

NeutronRemoveRouterInterfaceRequest Request Object

func (NeutronRemoveRouterInterfaceRequest) String added in v0.1.48

type NeutronRemoveRouterInterfaceResponse added in v0.1.48

type NeutronRemoveRouterInterfaceResponse struct {

	// 路由器添加的端口对应的ID
	PortId *string `json:"port_id,omitempty"`

	// 路由器添加的子网对应的ID
	SubnetId *NeutronRemoveRouterInterfaceResponseSubnetId `json:"subnet_id,omitempty"`

	// 项目ID
	TenantId *string `json:"tenant_id,omitempty"`

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

	// 路由器的ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

NeutronRemoveRouterInterfaceResponse Response Object

func (NeutronRemoveRouterInterfaceResponse) String added in v0.1.48

type NeutronRemoveRouterInterfaceResponseSubnetId added in v0.1.48

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

func (NeutronRemoveRouterInterfaceResponseSubnetId) MarshalJSON added in v0.1.48

func (*NeutronRemoveRouterInterfaceResponseSubnetId) UnmarshalJSON added in v0.1.48

func (NeutronRemoveRouterInterfaceResponseSubnetId) Value added in v0.1.48

type NeutronRemoveRouterInterfaceResponseSubnetIdEnum added in v0.1.48

type NeutronRemoveRouterInterfaceResponseSubnetIdEnum struct {
	E_0_9A_F8__0_9A_F4__0_9A_F4__0_9A_F4__0_9A_F12 NeutronRemoveRouterInterfaceResponseSubnetId
}

func GetNeutronRemoveRouterInterfaceResponseSubnetIdEnum added in v0.1.48

func GetNeutronRemoveRouterInterfaceResponseSubnetIdEnum() NeutronRemoveRouterInterfaceResponseSubnetIdEnum

type NeutronRouter added in v0.1.48

type NeutronRouter struct {

	// 功能说明:资源的管理状态。只支持true。 取值范围:true、false 约束:只支持true
	AdminStateUp bool `json:"admin_state_up"`

	ExternalGatewayInfo *ExternalGatewayInfo `json:"external_gateway_info"`

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

	// 功能说明:路由器的名称 取值范围:0-64个字符,仅支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。 约束:如果name非空,则name不能重复。
	Name string `json:"name"`

	// 功能说明:路由信息,见Route对象
	Routes []Route `json:"routes"`

	// 功能说明:路由器的状态 取值范围:ACTIVE, DOWN,ERROR
	Status string `json:"status"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronRouter router对象模型

func (NeutronRouter) String added in v0.1.48

func (o NeutronRouter) String() string

type NeutronSecurityGroup

type NeutronSecurityGroup struct {

	// 功能说明:安全组描述 取值范围:0-255个字符
	Description string `json:"description"`

	// 安全组ID
	Id string `json:"id"`

	// 功能说明:安全组名称 取值范围:0-255个字符
	Name string `json:"name"`

	// 安全组规则,详情参见Security Group Rule对象
	SecurityGroupRules []NeutronSecurityGroupRule `json:"security_group_rules"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronSecurityGroup

func (NeutronSecurityGroup) String

func (o NeutronSecurityGroup) String() string

type NeutronSecurityGroupRule

type NeutronSecurityGroupRule struct {

	// 安全组规则描述
	Description string `json:"description"`

	// 功能说明:规则方向 取值范围:ingress、egress
	Direction NeutronSecurityGroupRuleDirection `json:"direction"`

	// 功能说明:网络类型 取值范围:IPv4、IPv6
	Ethertype string `json:"ethertype"`

	// 安全组规则ID,查询安全组规则非必选
	Id string `json:"id"`

	// 功能说明:最大端口 取值范围:当协议类型为ICMP时,该值表示ICMP的code
	PortRangeMax int32 `json:"port_range_max"`

	// 功能说明:最小端口 当协议类型为ICMP时,该值表示ICMP的type。protocol为tcp和udp时,port_range_max和port_range_min必须同时输入,且port_range_max应大于等于port_range_min。protocol为icmp时,指定ICMP code(port_range_max)时,必须同时指定ICMP type(port_range_min)。
	PortRangeMin int32 `json:"port_range_min"`

	// 功能说明:tcp/udp/icmp/icmpv6或IP协议编号(0~255) 约束:协议为icmpv6时,网络类型应该为IPv6;协议为icmp时,网络类型应该为IPv4
	Protocol string `json:"protocol"`

	// 所属安全组的对端ID
	RemoteGroupId string `json:"remote_group_id"`

	// 对端ip网段
	RemoteIpPrefix string `json:"remote_ip_prefix"`

	// 功能说明:远端IP地址组ID 约束:和remote_ip_prefix,remote_group_id互斥
	RemoteAddressGroupId string `json:"remote_address_group_id"`

	// 所属安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

NeutronSecurityGroupRule

func (NeutronSecurityGroupRule) String

func (o NeutronSecurityGroupRule) String() string

type NeutronSecurityGroupRuleDirection

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

func (NeutronSecurityGroupRuleDirection) MarshalJSON

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

func (*NeutronSecurityGroupRuleDirection) UnmarshalJSON

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

func (NeutronSecurityGroupRuleDirection) Value added in v0.0.90

type NeutronSecurityGroupRuleDirectionEnum

type NeutronSecurityGroupRuleDirectionEnum struct {
	INGRESS NeutronSecurityGroupRuleDirection
	EGRESS  NeutronSecurityGroupRuleDirection
}

func GetNeutronSecurityGroupRuleDirectionEnum

func GetNeutronSecurityGroupRuleDirectionEnum() NeutronSecurityGroupRuleDirectionEnum

type NeutronShowFirewallGroupRequest

type NeutronShowFirewallGroupRequest struct {

	// 网络ACL防火墙组ID
	FirewallGroupId string `json:"firewall_group_id"`
}

NeutronShowFirewallGroupRequest Request Object

func (NeutronShowFirewallGroupRequest) String

type NeutronShowFirewallGroupResponse

type NeutronShowFirewallGroupResponse struct {
	FirewallGroup  *NeutronFirewallGroup `json:"firewall_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronShowFirewallGroupResponse Response Object

func (NeutronShowFirewallGroupResponse) String

type NeutronShowFirewallPolicyRequest

type NeutronShowFirewallPolicyRequest struct {

	// 网络ACL防火墙策略ID
	FirewallPolicyId string `json:"firewall_policy_id"`
}

NeutronShowFirewallPolicyRequest Request Object

func (NeutronShowFirewallPolicyRequest) String

type NeutronShowFirewallPolicyResponse

type NeutronShowFirewallPolicyResponse struct {
	FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

NeutronShowFirewallPolicyResponse Response Object

func (NeutronShowFirewallPolicyResponse) String

type NeutronShowFirewallRuleRequest

type NeutronShowFirewallRuleRequest struct {

	// 网络ACL规则ID
	FirewallRuleId string `json:"firewall_rule_id"`
}

NeutronShowFirewallRuleRequest Request Object

func (NeutronShowFirewallRuleRequest) String

type NeutronShowFirewallRuleResponse

type NeutronShowFirewallRuleResponse struct {
	FirewallRule   *NeutronFirewallRule `json:"firewall_rule,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

NeutronShowFirewallRuleResponse Response Object

func (NeutronShowFirewallRuleResponse) String

type NeutronShowNetworkRequest added in v0.1.48

type NeutronShowNetworkRequest struct {

	// 网络ID
	NetworkId string `json:"network_id"`
}

NeutronShowNetworkRequest Request Object

func (NeutronShowNetworkRequest) String added in v0.1.48

func (o NeutronShowNetworkRequest) String() string

type NeutronShowNetworkResponse added in v0.1.48

type NeutronShowNetworkResponse struct {
	Network        *NeutronNetwork `json:"network,omitempty"`
	HttpStatusCode int             `json:"-"`
}

NeutronShowNetworkResponse Response Object

func (NeutronShowNetworkResponse) String added in v0.1.48

type NeutronShowPortRequest added in v0.1.48

type NeutronShowPortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`
}

NeutronShowPortRequest Request Object

func (NeutronShowPortRequest) String added in v0.1.48

func (o NeutronShowPortRequest) String() string

type NeutronShowPortResponse added in v0.1.48

type NeutronShowPortResponse struct {
	Port           *NeutronPort `json:"port,omitempty"`
	HttpStatusCode int          `json:"-"`
}

NeutronShowPortResponse Response Object

func (NeutronShowPortResponse) String added in v0.1.48

func (o NeutronShowPortResponse) String() string

type NeutronShowRouterRequest added in v0.1.48

type NeutronShowRouterRequest struct {

	// 路由器ID
	RouterId string `json:"router_id"`
}

NeutronShowRouterRequest Request Object

func (NeutronShowRouterRequest) String added in v0.1.48

func (o NeutronShowRouterRequest) String() string

type NeutronShowRouterResponse added in v0.1.48

type NeutronShowRouterResponse struct {
	Router         *NeutronRouter `json:"router,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronShowRouterResponse Response Object

func (NeutronShowRouterResponse) String added in v0.1.48

func (o NeutronShowRouterResponse) String() string

type NeutronShowSecurityGroupRequest

type NeutronShowSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`
}

NeutronShowSecurityGroupRequest Request Object

func (NeutronShowSecurityGroupRequest) String

type NeutronShowSecurityGroupResponse

type NeutronShowSecurityGroupResponse struct {
	SecurityGroup  *NeutronSecurityGroup `json:"security_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronShowSecurityGroupResponse Response Object

func (NeutronShowSecurityGroupResponse) String

type NeutronShowSecurityGroupRuleRequest

type NeutronShowSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

NeutronShowSecurityGroupRuleRequest Request Object

func (NeutronShowSecurityGroupRuleRequest) String

type NeutronShowSecurityGroupRuleResponse

type NeutronShowSecurityGroupRuleResponse struct {
	SecurityGroupRule *NeutronSecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                       `json:"-"`
}

NeutronShowSecurityGroupRuleResponse Response Object

func (NeutronShowSecurityGroupRuleResponse) String

type NeutronShowSubnetRequest added in v0.1.48

type NeutronShowSubnetRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`
}

NeutronShowSubnetRequest Request Object

func (NeutronShowSubnetRequest) String added in v0.1.48

func (o NeutronShowSubnetRequest) String() string

type NeutronShowSubnetResponse added in v0.1.48

type NeutronShowSubnetResponse struct {
	Subnet         *NeutronSubnet `json:"subnet,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronShowSubnetResponse Response Object

func (NeutronShowSubnetResponse) String added in v0.1.48

func (o NeutronShowSubnetResponse) String() string

type NeutronSubnet added in v0.1.48

type NeutronSubnet struct {

	// 功能说明:可用的IP池,allocation_pool对象参见 allocation_pool对象 例如:[ { \"start\": \"10.0.0.2\", \"end\": \"10.0.0.251\"} ]每个子网的第1个和最后4个IP地址为系统保留地址。以192.168.1.0/24为例,192.168.1.0、 192.168.1.252、192.168.1.253、192.168.1.254和192.168.1.255这些地址是系统保留地址。系统预留地址默认不在allocation_pool范围内 约束:更新时allocation_pool范围不能包含网关和广播地址的所有IP。
	AllocationPools []AllocationPool `json:"allocation_pools"`

	// 功能说明:子网网段 取值范围:CIDR格式,只支持10.0.0.0/8,172.16.0.0/12,192.168.0.0/16三个网段内的地址,掩码长度不能大于28 约束:当ip_version=6时,该字段不支持设置
	Cidr string `json:"cidr"`

	// 功能说明:子网关联的DNS名称服务器列表 取值范围:IP地址格式例如:\"dns_nameservers\": [\"8.xx.xx.8\",\"8.xx.xx.4\"]; 默认值:不填时为空,无法使用云内网DNS功能
	DnsNameservers []string `json:"dns_nameservers"`

	// 功能说明:是否启动dhcp 取值范围:只支持true
	EnableDhcp bool `json:"enable_dhcp"`

	// 功能说明:子网网关IP  取值范围:本子网网段内的可用IP  约束:不允许和allocation_pools地址块冲突;ip_version=6时该字段不支持设置 默认值:本子网网段内第一个可用IP
	GatewayIp string `json:"gateway_ip"`

	// 虚拟机静态路由,参见“host_route对象”表
	HostRoutes []HostRoute `json:"host_routes"`

	// 子网ID
	Id string `json:"id"`

	// 功能说明:IP协议版本 取值范围:4或6(支持后)
	IpVersion int32 `json:"ip_version"`

	// 功能说明:IPv6寻址模式 取值范围:dhcpv6-stateful
	Ipv6AddressMode string `json:"ipv6_address_mode"`

	// 功能说明:IPv6路由广播模式 取值范围:dhcpv6-stateful
	Ipv6RaMode string `json:"ipv6_ra_mode"`

	// 功能说明:子网的名称 取值范围:0-255个字符
	Name string `json:"name"`

	// 所属网络的ID
	NetworkId string `json:"network_id"`

	// 项目ID
	TenantId string `json:"tenant_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 子网池id 【使用说明】目前IPv4不支持,IPv6支持
	SubnetpoolId *string `json:"subnetpool_id,omitempty"`
}

NeutronSubnet

func (NeutronSubnet) String added in v0.1.48

func (o NeutronSubnet) String() string

type NeutronUpdateFirewallGroupOption

type NeutronUpdateFirewallGroupOption struct {

	// 网络ACL防火墙是否受管理员控制。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 功能说明:网络ACL防火墙组描述 取值范围:最长255个字符
	Description *string `json:"description,omitempty"`

	// 出方向网络ACL防火墙策略。
	EgressFirewallPolicyId *string `json:"egress_firewall_policy_id,omitempty"`

	// 入方向网络ACL防火墙策略。
	IngressFirewallPolicyId *string `json:"ingress_firewall_policy_id,omitempty"`

	// 功能说明:网络ACL防火墙组名称 取值范围:最长255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL防火墙组绑定的端口列表 约束:必须为分布式router的端口id
	Ports *[]string `json:"ports,omitempty"`
}

NeutronUpdateFirewallGroupOption

func (NeutronUpdateFirewallGroupOption) String

type NeutronUpdateFirewallGroupRequest

type NeutronUpdateFirewallGroupRequest struct {

	// 网络ACL防火墙组ID
	FirewallGroupId string `json:"firewall_group_id"`

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

NeutronUpdateFirewallGroupRequest Request Object

func (NeutronUpdateFirewallGroupRequest) String

type NeutronUpdateFirewallGroupRequestBody

type NeutronUpdateFirewallGroupRequestBody struct {
	FirewallGroup *NeutronUpdateFirewallGroupOption `json:"firewall_group"`
}

NeutronUpdateFirewallGroupRequestBody

func (NeutronUpdateFirewallGroupRequestBody) String

type NeutronUpdateFirewallGroupResponse

type NeutronUpdateFirewallGroupResponse struct {
	FirewallGroup  *NeutronFirewallGroup `json:"firewall_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronUpdateFirewallGroupResponse Response Object

func (NeutronUpdateFirewallGroupResponse) String

type NeutronUpdateFirewallPolicyOption

type NeutronUpdateFirewallPolicyOption struct {

	// 功能说明:网络ACL防火墙策略名称 取值范围:最长255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:网络ACL防火墙策略描述 取值范围:最长255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:网络ACL策略关联的规则列表
	FirewallRules *[]string `json:"firewall_rules,omitempty"`

	// 审计标记。
	Audited *bool `json:"audited,omitempty"`
}

NeutronUpdateFirewallPolicyOption

func (NeutronUpdateFirewallPolicyOption) String

type NeutronUpdateFirewallPolicyRequest

type NeutronUpdateFirewallPolicyRequest struct {

	// 网络ACL防火墙策略ID
	FirewallPolicyId string `json:"firewall_policy_id"`

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

NeutronUpdateFirewallPolicyRequest Request Object

func (NeutronUpdateFirewallPolicyRequest) String

type NeutronUpdateFirewallPolicyRequestBody

type NeutronUpdateFirewallPolicyRequestBody struct {
	FirewallPolicy *NeutronUpdateFirewallPolicyOption `json:"firewall_policy"`
}

NeutronUpdateFirewallPolicyRequestBody

func (NeutronUpdateFirewallPolicyRequestBody) String

type NeutronUpdateFirewallPolicyResponse

type NeutronUpdateFirewallPolicyResponse struct {
	FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

NeutronUpdateFirewallPolicyResponse Response Object

func (NeutronUpdateFirewallPolicyResponse) String

type NeutronUpdateFirewallRuleOption

type NeutronUpdateFirewallRuleOption struct {

	// 对通过网络ACL防火墙的流量执行的操作。
	Action *NeutronUpdateFirewallRuleOptionAction `json:"action,omitempty"`

	// 网络ACL防火墙规则描述。
	Description *string `json:"description,omitempty"`

	// 目的地址或者CIDR。
	DestinationIpAddress *string `json:"destination_ip_address,omitempty"`

	// 目的端口号或者一段端口范围。
	DestinationPort *string `json:"destination_port,omitempty"`

	// 是否使能网络ACL防火墙规则。
	Enabled *bool `json:"enabled,omitempty"`

	// IP协议版本。
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 网络ACL防火墙规则名称。
	Name *string `json:"name,omitempty"`

	// IP协议,支持TCP,UDP,ICMP, ICMPV6或者IP协议号(0-255)
	Protocol *string `json:"protocol,omitempty"`

	// 源地址或者CIDR。
	SourceIpAddress *string `json:"source_ip_address,omitempty"`

	// 源端口号或者一段端口范围。
	SourcePort *string `json:"source_port,omitempty"`
}

NeutronUpdateFirewallRuleOption

func (NeutronUpdateFirewallRuleOption) String

type NeutronUpdateFirewallRuleOptionAction

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

func (NeutronUpdateFirewallRuleOptionAction) MarshalJSON

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

func (*NeutronUpdateFirewallRuleOptionAction) UnmarshalJSON

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

func (NeutronUpdateFirewallRuleOptionAction) Value added in v0.0.90

type NeutronUpdateFirewallRuleOptionActionEnum

type NeutronUpdateFirewallRuleOptionActionEnum struct {
	DENY  NeutronUpdateFirewallRuleOptionAction
	ALLOW NeutronUpdateFirewallRuleOptionAction
}

func GetNeutronUpdateFirewallRuleOptionActionEnum

func GetNeutronUpdateFirewallRuleOptionActionEnum() NeutronUpdateFirewallRuleOptionActionEnum

type NeutronUpdateFirewallRuleRequest

type NeutronUpdateFirewallRuleRequest struct {

	// 网络ACL防火墙规则ID
	FirewallRuleId string `json:"firewall_rule_id"`

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

NeutronUpdateFirewallRuleRequest Request Object

func (NeutronUpdateFirewallRuleRequest) String

type NeutronUpdateFirewallRuleRequestBody

type NeutronUpdateFirewallRuleRequestBody struct {
	FirewallRule *NeutronUpdateFirewallRuleOption `json:"firewall_rule"`
}

NeutronUpdateFirewallRuleRequestBody

func (NeutronUpdateFirewallRuleRequestBody) String

type NeutronUpdateFirewallRuleResponse

type NeutronUpdateFirewallRuleResponse struct {
	FirewallRule   *NeutronFirewallRule `json:"firewall_rule,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

NeutronUpdateFirewallRuleResponse Response Object

func (NeutronUpdateFirewallRuleResponse) String

type NeutronUpdateNetworkOption added in v0.1.48

type NeutronUpdateNetworkOption struct {

	// 功能说明:网络名称 取值范围:0-255个字符 约束:不能为admin_external_net
	Name *string `json:"name,omitempty"`

	// 功能说明:资源的管理状态 取值范围:true、false 约束:只支持true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 功能说明:端口安全使能标记 取值范围:true(启用)、false(禁用) 约束:如果不使能,则network下所有虚机的安全组和dhcp防欺骗不生效
	PortSecurityEnabled *bool `json:"port_security_enabled,omitempty"`
}

NeutronUpdateNetworkOption 更新network对象

func (NeutronUpdateNetworkOption) String added in v0.1.48

type NeutronUpdateNetworkRequest added in v0.1.48

type NeutronUpdateNetworkRequest struct {

	// 网络ID
	NetworkId string `json:"network_id"`

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

NeutronUpdateNetworkRequest Request Object

func (NeutronUpdateNetworkRequest) String added in v0.1.48

type NeutronUpdateNetworkRequestBody added in v0.1.48

type NeutronUpdateNetworkRequestBody struct {
	Network *NeutronUpdateNetworkOption `json:"network"`
}

NeutronUpdateNetworkRequestBody

func (NeutronUpdateNetworkRequestBody) String added in v0.1.48

type NeutronUpdateNetworkResponse added in v0.1.48

type NeutronUpdateNetworkResponse struct {
	Network        *NeutronNetwork `json:"network,omitempty"`
	HttpStatusCode int             `json:"-"`
}

NeutronUpdateNetworkResponse Response Object

func (NeutronUpdateNetworkResponse) String added in v0.1.48

type NeutronUpdatePortOption added in v0.1.48

type NeutronUpdatePortOption struct {

	// 功能说明:网络的名称 取值范围:0-255个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:扩展属性:安全组的UUID 例如:\"security_groups\": [\"a0608cbf-d047-4f54-8b28-cd7b59853fff\"] 约束:不支持更新为空
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:扩展属性:IP/Mac对列表,allow_address_pair参见“allow_address_pair对象”表 约束:  - IP地址不允许为 “0.0.0.0”  - 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组  - 硬件SDN环境不支持ip_address属性配置为CIDR格式  - 为虚拟IP配置后端ECS场景,allowed_address_pairs中配置的IP地址,必须为ECS网卡已有的IP地址,否则可能会导致虚拟IP通信异常。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`

	// 扩展属性:DHCP的扩展Option
	ExtraDhcpOpts *[]ExtraDhcpOpt `json:"extra_dhcp_opts,omitempty"`

	// 功能说明:端口安全使能标记,如果不使能则安全组和dhcp防欺骗不生效,默认为true
	PortSecurityEnabled *bool `json:"port_security_enabled,omitempty"`

	// 绑定的vNIC类型  - normal: 软交换
	BindingvnicType *string `json:"binding:vnic_type,omitempty"`

	// 功能说明:扩展属性,提供用户设置自定义信息  - internal_elb字段,布尔类型,普通租户可见。只有在创建内网ELB的虚拟IP的网卡时设置为true。普通租户没有权限更改该字段,由系统维护。 举例:{\"internal_elb\": true}  - disable_security_groups字段,布尔类型,普通租户可见。默认为false,高性能通信场景下,允许指定为true。仅支持创建port和读取时指定。当前仅支持指定为true,不支持指定为false。 举例:{\"disable_security_groups\":true },当前仅支持指定为true,不支持指定为false,指定为true时,FWaaS功能不生效。
	Bindingprofile map[string]interface{} `json:"binding:profile,omitempty"`
}

NeutronUpdatePortOption

func (NeutronUpdatePortOption) String added in v0.1.48

func (o NeutronUpdatePortOption) String() string

type NeutronUpdatePortRequest added in v0.1.48

type NeutronUpdatePortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`

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

NeutronUpdatePortRequest Request Object

func (NeutronUpdatePortRequest) String added in v0.1.48

func (o NeutronUpdatePortRequest) String() string

type NeutronUpdatePortRequestBody added in v0.1.48

type NeutronUpdatePortRequestBody struct {
	Port *NeutronUpdatePortOption `json:"port"`
}

NeutronUpdatePortRequestBody

func (NeutronUpdatePortRequestBody) String added in v0.1.48

type NeutronUpdatePortResponse added in v0.1.48

type NeutronUpdatePortResponse struct {
	Port           *NeutronPort `json:"port,omitempty"`
	HttpStatusCode int          `json:"-"`
}

NeutronUpdatePortResponse Response Object

func (NeutronUpdatePortResponse) String added in v0.1.48

func (o NeutronUpdatePortResponse) String() string

type NeutronUpdateRouterOption added in v0.1.48

type NeutronUpdateRouterOption struct {

	// 功能说明:路由器的名称。 取值范围:0-64个字符,仅支持数字、字母、中文、_(下划线)、-(中划线)、.(点)。 约束:如果name非空,则name不能重复。
	Name *string `json:"name,omitempty"`

	// 功能说明:资源的管理状态。 取值范围:true、false 约束:只支持true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	ExternalGatewayInfo *ExternalGatewayInfoOption `json:"external_gateway_info,omitempty"`

	// 功能说明:路由信息,见ListRoute详细说明
	Routes *[]Route `json:"routes,omitempty"`
}

NeutronUpdateRouterOption

func (NeutronUpdateRouterOption) String added in v0.1.48

func (o NeutronUpdateRouterOption) String() string

type NeutronUpdateRouterRequest added in v0.1.48

type NeutronUpdateRouterRequest struct {

	// 路由器ID
	RouterId string `json:"router_id"`

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

NeutronUpdateRouterRequest Request Object

func (NeutronUpdateRouterRequest) String added in v0.1.48

type NeutronUpdateRouterRequestBody added in v0.1.48

type NeutronUpdateRouterRequestBody struct {
	Router *NeutronUpdateRouterOption `json:"router"`
}

NeutronUpdateRouterRequestBody

func (NeutronUpdateRouterRequestBody) String added in v0.1.48

type NeutronUpdateRouterResponse added in v0.1.48

type NeutronUpdateRouterResponse struct {
	Router         *NeutronRouter `json:"router,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronUpdateRouterResponse Response Object

func (NeutronUpdateRouterResponse) String added in v0.1.48

type NeutronUpdateSecurityGroupOption

type NeutronUpdateSecurityGroupOption struct {

	// 功能说明:安全组描述 取值范围:0-255个字符
	Description *string `json:"description,omitempty"`

	// 功能说明:安全组名称 取值范围:0-255个字符 约束:不允许为“default”
	Name *string `json:"name,omitempty"`
}

NeutronUpdateSecurityGroupOption

func (NeutronUpdateSecurityGroupOption) String

type NeutronUpdateSecurityGroupRequest

type NeutronUpdateSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

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

NeutronUpdateSecurityGroupRequest Request Object

func (NeutronUpdateSecurityGroupRequest) String

type NeutronUpdateSecurityGroupRequestBody

type NeutronUpdateSecurityGroupRequestBody struct {
	SecurityGroup *NeutronUpdateSecurityGroupOption `json:"security_group"`
}

NeutronUpdateSecurityGroupRequestBody

func (NeutronUpdateSecurityGroupRequestBody) String

type NeutronUpdateSecurityGroupResponse

type NeutronUpdateSecurityGroupResponse struct {
	SecurityGroup  *NeutronSecurityGroup `json:"security_group,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

NeutronUpdateSecurityGroupResponse Response Object

func (NeutronUpdateSecurityGroupResponse) String

type NeutronUpdateSubnetOption added in v0.1.48

type NeutronUpdateSubnetOption struct {

	// 功能说明:dns服务器 取值范围:IP地址格式例如:\"dns_nameservers\": [\"8.xx.xx.8\",\"8.xx.xx.4\"],最多5个 默认值:不填时为空,无法使用云内网DNS功能 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	DnsNameservers *[]string `json:"dns_nameservers,omitempty"`

	// 功能说明:是否启动dhcp,false表示不提供dhcp服务的能力 约束:只支持true
	EnableDhcp *bool `json:"enable_dhcp,omitempty"`

	// 功能说明:虚拟机静态路由,参见“host_route对象”表 约束:不支持,忽略输入信息
	HostRoutes *[]HostRoute `json:"host_routes,omitempty"`

	// 子网的名称
	Name *string `json:"name,omitempty"`

	// 功能说明:可用的IP池,allocation_pool对象参见表 allocation_pool对象 例如:[ { \"start\": \"10.0.0.2\", \"end\": \"10.0.0.251\"} ]每个子网的第1个和最后3个IP地址为系统保留地址。以192.168.1.0/24为例,192.168.1.0、 192.168.1.253、192.168.1.254和192.168.1.255这些地址是系统保留地址。系统预留地址默认不在allocation_pool范围内。 约束:更新时allocation_pool范围不能包含网关和广播地址的所有IP。
	AllocationPools *[]AllocationPool `json:"allocation_pools,omitempty"`
}

NeutronUpdateSubnetOption

func (NeutronUpdateSubnetOption) String added in v0.1.48

func (o NeutronUpdateSubnetOption) String() string

type NeutronUpdateSubnetRequest added in v0.1.48

type NeutronUpdateSubnetRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`

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

NeutronUpdateSubnetRequest Request Object

func (NeutronUpdateSubnetRequest) String added in v0.1.48

type NeutronUpdateSubnetRequestBody added in v0.1.48

type NeutronUpdateSubnetRequestBody struct {
	Subnet *NeutronUpdateSubnetOption `json:"subnet"`
}

NeutronUpdateSubnetRequestBody

func (NeutronUpdateSubnetRequestBody) String added in v0.1.48

type NeutronUpdateSubnetResponse added in v0.1.48

type NeutronUpdateSubnetResponse struct {
	Subnet         *NeutronSubnet `json:"subnet,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NeutronUpdateSubnetResponse Response Object

func (NeutronUpdateSubnetResponse) String added in v0.1.48

type Port

type Port struct {

	// 端口ID
	Id string `json:"id"`

	// 功能说明:端口名称 取值范围:0~255个字符,支持中文、英文、字母、_(下划线)、-(中划线)
	Name string `json:"name"`

	// 端口所属网络的ID
	NetworkId string `json:"network_id"`

	// 功能说明:管理状态 约束:只支持true,默认为true
	AdminStateUp bool `json:"admin_state_up"`

	// 功能描述:端口MAC地址 约束:由系统分配,不支持指定
	MacAddress string `json:"mac_address"`

	// 功能说明:端口IP 例如:\"fixed_ips\": [{\"subnet_id\": \"4dc70db6-cb7f-4200-9790-a6a910776bba\", \"ip_address\": \"192.169.25.79\"}] 约束:一个端口只支持一个fixed_ip,且不支持更新。
	FixedIps []FixedIp `json:"fixed_ips"`

	// 功能说明:端口所属设备ID 约束:不支持设置和更新,由系统自动维护
	DeviceId string `json:"device_id"`

	// 功能说明:设备所属 取值范围:合法设备所属,如network:dhcp、neutron:VIP_PORT、network:router_interface_distributed、network:router_centralized_snat 约束:不支持设置和更新,由系统自动维护
	DeviceOwner PortDeviceOwner `json:"device_owner"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:端口状态,Hana硬直通虚拟机端口状态总为DOWN 取值范围:ACTIVE、BUILD、DOWN
	Status PortStatus `json:"status"`

	// 安全组的ID列表
	SecurityGroups []string `json:"security_groups"`

	// 功能说明:IP/Mac对列表 约束:IP地址不允许为 “0.0.0.0” 如果配置地址池较大(CIDR掩码小于24位),建议为该port配置一个单独的安全组。
	AllowedAddressPairs []AllowedAddressPair `json:"allowed_address_pairs"`

	// 功能说明:DHCP的扩展Option(扩展属性)
	ExtraDhcpOpts []ExtraDhcpOpt `json:"extra_dhcp_opts"`

	// 功能说明:绑定的vNIC类型 取值范围:  - normal(软交换)  - direct: SRIOV硬直通(不支持)
	BindingvnicType string `json:"binding:vnic_type"`

	// 功能说明:主网卡默认内网域名信息 约束:不支持设置和更新,由系统自动维护
	DnsAssignment []DnsAssignMent `json:"dns_assignment"`

	// 功能说明:主网卡默认内网DNS名称 约束:不支持设置和更新,由系统自动维护
	DnsName string `json:"dns_name"`

	BindingvifDetails *BindingVifDetails `json:"binding:vif_details"`

	// 功能说明:提供用户设置自定义信息(扩展属性)
	Bindingprofile *interface{} `json:"binding:profile"`

	// 功能说明:端口所属实例ID,例如RDS实例ID 约束:不支持设置和更新,由系统自动维护
	InstanceId string `json:"instance_id"`

	// 功能说明:端口所属实例类型,例如“RDS” 约束:不支持设置和更新,由系统自动维护
	InstanceType string `json:"instance_type"`

	// 功能说明:端口安全使能标记,如果不使能则安全组和dhcp防欺骗不生效 取值范围:启用(true)或禁用(false)
	PortSecurityEnabled bool `json:"port_security_enabled"`

	// 功能说明:port所属的可用分区
	ZoneId string `json:"zone_id"`

	// 功能说明:是否使能efi,使能则表示端口支持vRoCE能力,默认为false
	EnableEfi bool `json:"enable_efi"`
}

Port

func (Port) String

func (o Port) String() string

type PortDeviceOwner

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

func (PortDeviceOwner) MarshalJSON

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

func (*PortDeviceOwner) UnmarshalJSON

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

func (PortDeviceOwner) Value added in v0.0.90

func (c PortDeviceOwner) Value() string

type PortDeviceOwnerEnum

type PortDeviceOwnerEnum struct {
	NETWORKDHCP                         PortDeviceOwner
	NEUTRONVIP_PORT                     PortDeviceOwner
	NETWORKROUTER_INTERFACE_DISTRIBUTED PortDeviceOwner
	NETWORKROUTER_CENTRALIZED_SNAT      PortDeviceOwner
}

func GetPortDeviceOwnerEnum

func GetPortDeviceOwnerEnum() PortDeviceOwnerEnum

type PortStatus

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

func (PortStatus) MarshalJSON

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

func (*PortStatus) UnmarshalJSON

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

func (PortStatus) Value added in v0.0.90

func (c PortStatus) Value() string

type PortStatusEnum

type PortStatusEnum struct {
	ACTIVE PortStatus
	BUILD  PortStatus
	DOWN   PortStatus
}

func GetPortStatusEnum

func GetPortStatusEnum() PortStatusEnum

type Privateip

type Privateip struct {

	// 私有IP的状态  - ACTIVE:活动的  - DOWN:不可用
	Status PrivateipStatus `json:"status"`

	// 私有IP ID
	Id string `json:"id"`

	// 分配IP的子网标识
	SubnetId string `json:"subnet_id"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 私有IP的使用者,空表示未使用 取值范围:network:dhcp,network:router_interface_distributed,compute:xxx(xxx对应具体的az名称,例如compute:aa-bb-cc表示是被aa-bb-cc上的虚拟机使用) 约束:此处的取值范围只是本服务支持的类型,其他类型未做标注
	DeviceOwner PrivateipDeviceOwner `json:"device_owner"`

	// 申请到的私有IP
	IpAddress string `json:"ip_address"`
}

Privateip

func (Privateip) String

func (o Privateip) String() string

type PrivateipDeviceOwner

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

func (PrivateipDeviceOwner) MarshalJSON

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

func (*PrivateipDeviceOwner) UnmarshalJSON

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

func (PrivateipDeviceOwner) Value added in v0.0.90

func (c PrivateipDeviceOwner) Value() string

type PrivateipDeviceOwnerEnum

type PrivateipDeviceOwnerEnum struct {
	NETWORKDHCP                         PrivateipDeviceOwner
	NETWORKROUTER_INTERFACE_DISTRIBUTED PrivateipDeviceOwner
	COMPUTEXXX                          PrivateipDeviceOwner
}

func GetPrivateipDeviceOwnerEnum

func GetPrivateipDeviceOwnerEnum() PrivateipDeviceOwnerEnum

type PrivateipStatus

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

func (PrivateipStatus) MarshalJSON

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

func (*PrivateipStatus) UnmarshalJSON

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

func (PrivateipStatus) Value added in v0.0.90

func (c PrivateipStatus) Value() string

type PrivateipStatusEnum

type PrivateipStatusEnum struct {
	ACTIVE PrivateipStatus
	DOWN   PrivateipStatus
}

func GetPrivateipStatusEnum

func GetPrivateipStatusEnum() PrivateipStatusEnum

type Quota

type Quota struct {

	// 资源列表对象
	Resources []ResourceResult `json:"resources"`
}

Quota

func (Quota) String

func (o Quota) String() string

type RejectVpcPeeringRequest

type RejectVpcPeeringRequest struct {

	// 对等连接ID
	PeeringId string `json:"peering_id"`
}

RejectVpcPeeringRequest Request Object

func (RejectVpcPeeringRequest) String

func (o RejectVpcPeeringRequest) String() string

type RejectVpcPeeringResponse

type RejectVpcPeeringResponse struct {

	// 对等连接ID
	Id *string `json:"id,omitempty"`

	// 功能说明:对等连接名称 取值范围:支持1~64个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:对等连接状态 取值范围: - PENDING_ACCEPTANCE:等待接受 - REJECTED:已拒绝。 - EXPIRED:已过期。 - DELETED:已删除。 - ACTIVE:活动的。
	Status *RejectVpcPeeringResponseStatus `json:"status,omitempty"`

	RequestVpcInfo *VpcInfo `json:"request_vpc_info,omitempty"`

	AcceptVpcInfo *VpcInfo `json:"accept_vpc_info,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"`

	// 对等连接描述
	Description    *string `json:"description,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RejectVpcPeeringResponse Response Object

func (RejectVpcPeeringResponse) String

func (o RejectVpcPeeringResponse) String() string

type RejectVpcPeeringResponseStatus

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

func (RejectVpcPeeringResponseStatus) MarshalJSON

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

func (*RejectVpcPeeringResponseStatus) UnmarshalJSON

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

func (RejectVpcPeeringResponseStatus) Value added in v0.0.90

type ResourceResult

type ResourceResult struct {

	// 功能说明:根据type过滤查询指定类型的配额  取值范围:vpc,subnet,securityGroup,securityGroupRule,publicIp,vpn,vpngw,vpcPeer,firewall,shareBandwidth,shareBandwidthIP,loadbalancer,listener,physicalConnect,virtualInterface,vpcContainRoutetable,routetableContainRoutes
	Type ResourceResultType `json:"type"`

	// 功能说明:已创建的资源个数  取值范围:0~quota数
	Used int32 `json:"used"`

	// 功能说明:资源的最大配额数  取值范围:各类型资源默认配额数~Integer最大值
	Quota int32 `json:"quota"`

	// 允许修改的配额最小值
	Min int32 `json:"min"`
}

ResourceResult

func (ResourceResult) String

func (o ResourceResult) String() string

type ResourceResultType

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

func (ResourceResultType) MarshalJSON

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

func (*ResourceResultType) UnmarshalJSON

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

func (ResourceResultType) Value added in v0.0.90

func (c ResourceResultType) Value() string

type ResourceResultTypeEnum

type ResourceResultTypeEnum struct {
	VPC                       ResourceResultType
	SUBNET                    ResourceResultType
	SECURITY_GROUP            ResourceResultType
	SECURITY_GROUP_RULE       ResourceResultType
	PUBLIC_IP                 ResourceResultType
	VPN                       ResourceResultType
	VPNGW                     ResourceResultType
	VPC_PEER                  ResourceResultType
	FIREWALL                  ResourceResultType
	SHARE_BANDWIDTH           ResourceResultType
	SHARE_BANDWIDTH_IP        ResourceResultType
	LOADBALANCER              ResourceResultType
	LISTENER                  ResourceResultType
	PHYSICAL_CONNECT          ResourceResultType
	VIRTUAL_INTERFACE         ResourceResultType
	VPC_CONTAIN_ROUTETABLE    ResourceResultType
	ROUTETABLE_CONTAIN_ROUTES ResourceResultType
}

func GetResourceResultTypeEnum

func GetResourceResultTypeEnum() ResourceResultTypeEnum

type ResourceTag

type ResourceTag struct {

	// 功能说明:标签键 约束:同一资源的key值不能重复。
	Key string `json:"key"`

	// 功能说明:标签值
	Value string `json:"value"`
}

ResourceTag

func (ResourceTag) String

func (o ResourceTag) String() string

type Route

type Route struct {

	// 功能说明:路由目的地 取值范围:IP地址段 约束:仅支持配置默认路由,且其取值只能是0.0.0.0/0
	Destination *string `json:"destination,omitempty"`

	// 功能说明:路由下一跳IP地址 取值范围:ipv4地址格式 约束:nexthop仅支持所关联的子网范围内IP地址
	Nexthop *string `json:"nexthop,omitempty"`
}

Route

func (Route) String

func (o Route) String() string

type RouteTableListResp added in v0.0.55

type RouteTableListResp struct {

	// 功能说明:路由表ID  取值范围:标准UUID
	Id string `json:"id"`

	// 功能说明:路由表名称  取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:是否为默认路由表  取值范围:true表示默认路由表;false表示自定义路由表
	Default bool `json:"default"`

	// 功能说明:路由表所关联的子网  约束:只能关联路由表所属VPC下的子网
	Subnets []SubnetList `json:"subnets"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 路由表所在的虚拟私有云ID
	VpcId string `json:"vpc_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

RouteTableListResp

func (RouteTableListResp) String added in v0.0.55

func (o RouteTableListResp) String() string

type RouteTableResp added in v0.0.55

type RouteTableResp struct {

	// 功能说明:路由表ID  取值范围:标准UUID
	Id string `json:"id"`

	// 功能说明:路由表名称  取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:是否为默认路由表  取值范围:true表示默认路由表;false表示自定义路由表
	Default bool `json:"default"`

	// 功能说明:路由对象,参见route字段说明。  约束:每个路由表最大关联200条路由
	Routes []RouteTableRoute `json:"routes"`

	// 功能说明:路由表所关联的子网  约束:只能关联路由表所属VPC下的子网
	Subnets []SubnetList `json:"subnets"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 路由表所在的虚拟私有云ID
	VpcId string `json:"vpc_id"`

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

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

RouteTableResp

func (RouteTableResp) String added in v0.0.55

func (o RouteTableResp) String() string

type RouteTableRoute added in v0.0.57

type RouteTableRoute struct {

	// 功能说明:路由的类型 取值范围: ecs:弹性云服务器 eni:网卡 vip:虚拟IP nat:NAT网关 peering:对等连接 vpn:虚拟专用网络 dc:云专线 cc:云连接 egw:VPC终端节点
	Type string `json:"type"`

	// 功能说明:路由目的网段 约束:合法的CIDR格式
	Destination string `json:"destination"`

	// 功能说明:路由下一跳对象的ID 取值范围: 当type为ecs时,传入ecs实例ID 当type为eni时,取值为从网卡ID 当type为vip时,取值为vip对应的IP地址 当type为nat时,取值为nat实例对应的ID 当type为peering时,取值为peering对应实例ID 当type为vpn时,取值为vpn实例ID 当type为dc时,取值为dc实例ID 当type为cc时,取值为cc的实例ID
	Nexthop string `json:"nexthop"`

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

RouteTableRoute

func (RouteTableRoute) String added in v0.0.57

func (o RouteTableRoute) String() string

type RouteTableRouteAction added in v0.1.37

type RouteTableRouteAction struct {

	// 新增路由条目,type,destination,nexthop必选
	Add *[]AddRouteTableRoute `json:"add,omitempty"`

	// 修改路由条目,type,destination,nexthop必选
	Mod *[]ModRouteTableRoute `json:"mod,omitempty"`

	// 删除路由条目,destination必选
	Del *[]DelRouteTableRoute `json:"del,omitempty"`
}

RouteTableRouteAction 更新路由表路由对象动作,可选add、mod、del

func (RouteTableRouteAction) String added in v0.1.37

func (o RouteTableRouteAction) String() string

type RouterInterfaceRequestBody added in v0.1.48

type RouterInterfaceRequestBody struct {

	// 功能说明:路由器添加(或删除)接口请求参数port对应的id 约束:  - 使用端口的时候,端口上有且只有一个IP地址  - subnet_id与port_id其中之一必须指定
	PortId *string `json:"port_id,omitempty"`

	// 功能说明:路由器添加(或删除)接口请求参数subnet对应的id 约束:  - 使用子网的时候,子网上必须配置gatewayIP地址  - \"provider:network_type\"为\"geneve\"的网络不可以添加路由器  - subnet_id与port_id其中之一必须指定。
	SubnetId *string `json:"subnet_id,omitempty"`
}

RouterInterfaceRequestBody

func (RouterInterfaceRequestBody) String added in v0.1.48

type RoutetableAssociateReqbody added in v0.0.55

type RoutetableAssociateReqbody struct {
	Routetable *AsscoiateReq `json:"routetable"`
}

RoutetableAssociateReqbody

func (RoutetableAssociateReqbody) String added in v0.0.55

type SecurityGroup

type SecurityGroup struct {

	// 安全组名称
	Name string `json:"name"`

	// 安全组描述
	Description *string `json:"description,omitempty"`

	// 安全组唯一标识
	Id string `json:"id"`

	// 安全组所在的vpc的资源标识
	VpcId *string `json:"vpc_id,omitempty"`

	// 功能说明:企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 安全组规则
	SecurityGroupRules []SecurityGroupRule `json:"security_group_rules"`
}

SecurityGroup

func (SecurityGroup) String

func (o SecurityGroup) String() string

type SecurityGroupRule

type SecurityGroupRule struct {

	// 安全组规则ID
	Id string `json:"id"`

	// 功能说明:安全组规则描述 取值范围:0-255个字符,支持数字、字母、中文字符
	Description string `json:"description"`

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`

	// 功能说明:出入控制方向 取值范围: - egress:出方向 - ingress:入方向
	Direction string `json:"direction"`

	// 功能说明:IP协议类型 取值范围:IPv4,IPv6
	Ethertype string `json:"ethertype"`

	// 功能说明:协议类型 取值范围:tcp、udp、icmp或IP协议编号(0~255) 约束:为空表示支持所有协议
	Protocol string `json:"protocol"`

	// 功能说明:起始端口值 取值范围:1~65535 约束:不能大于port_range_max的值,为空表示所有端口,如果协议是icmp类型,取值范围请参见 [安全组规则icmp协议名称对应关系表](https://support.huaweicloud.com/api-vpc/vpc_api_0009.html)
	PortRangeMin int32 `json:"port_range_min"`

	// 功能说明:结束端口值 取值范围:1~65535 约束:取值不能小于port_range_min的值,为空表示所有端口,如果协议是icmp类型,取值范围请参见 [安全组规则icmp协议名称对应关系表](https://support.huaweicloud.com/api-vpc/vpc_api_0009.html)
	PortRangeMax int32 `json:"port_range_max"`

	// 功能说明:远端IP地址,当direction是egress时为虚拟机访问端的地址,当direction是ingress时为访问虚拟机的地址 取值范围:IP地址,或者cidr格式 约束:和remote_group_id,remote_address_group_id互斥
	RemoteIpPrefix string `json:"remote_ip_prefix"`

	// 功能说明:对端安全组ID 约束:和remote_ip_prefix,remote_address_group_id互斥
	RemoteGroupId string `json:"remote_group_id"`

	// 功能说明:远端IP地址组ID 约束:和remote_ip_prefix,remote_group_id互斥
	RemoteAddressGroupId string `json:"remote_address_group_id"`

	// 安全组所属项目ID
	TenantId string `json:"tenant_id"`
}

SecurityGroupRule

func (SecurityGroupRule) String

func (o SecurityGroupRule) String() string

type ShowFlowLogRequest added in v0.1.25

type ShowFlowLogRequest struct {

	// 流日志资源唯一标识
	FlowlogId string `json:"flowlog_id"`
}

ShowFlowLogRequest Request Object

func (ShowFlowLogRequest) String added in v0.1.25

func (o ShowFlowLogRequest) String() string

type ShowFlowLogResponse added in v0.1.25

type ShowFlowLogResponse struct {
	FlowLog        *FlowLogResp `json:"flow_log,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowFlowLogResponse Response Object

func (ShowFlowLogResponse) String added in v0.1.25

func (o ShowFlowLogResponse) String() string

type ShowNetworkIpAvailabilitiesRequest

type ShowNetworkIpAvailabilitiesRequest struct {

	// 网络ID
	NetworkId string `json:"network_id"`
}

ShowNetworkIpAvailabilitiesRequest Request Object

func (ShowNetworkIpAvailabilitiesRequest) String

type ShowNetworkIpAvailabilitiesResponse

type ShowNetworkIpAvailabilitiesResponse struct {
	NetworkIpAvailability *NetworkIpAvailability `json:"network_ip_availability,omitempty"`
	HttpStatusCode        int                    `json:"-"`
}

ShowNetworkIpAvailabilitiesResponse Response Object

func (ShowNetworkIpAvailabilitiesResponse) String

type ShowPortRequest

type ShowPortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`
}

ShowPortRequest Request Object

func (ShowPortRequest) String

func (o ShowPortRequest) String() string

type ShowPortResponse

type ShowPortResponse struct {
	Port           *Port `json:"port,omitempty"`
	HttpStatusCode int   `json:"-"`
}

ShowPortResponse Response Object

func (ShowPortResponse) String

func (o ShowPortResponse) String() string

type ShowPrivateipRequest

type ShowPrivateipRequest struct {

	// 私有IP ID
	PrivateipId string `json:"privateip_id"`
}

ShowPrivateipRequest Request Object

func (ShowPrivateipRequest) String

func (o ShowPrivateipRequest) String() string

type ShowPrivateipResponse

type ShowPrivateipResponse struct {
	Privateip      *Privateip `json:"privateip,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowPrivateipResponse Response Object

func (ShowPrivateipResponse) String

func (o ShowPrivateipResponse) String() string

type ShowQuotaRequest

type ShowQuotaRequest struct {

	// 功能说明:根据type过滤查询指定类型的配额 取值范围:vpc,subnet,securityGroup,securityGroupRule,publicIp,vpn,vpngw,vpcPeer,firewall,shareBandwidth,shareBandwidthIP,loadbalancer,listener,physicalConnect,virtualInterface,vpcContainRoutetable,routetableContainRoutes
	Type *ShowQuotaRequestType `json:"type,omitempty"`
}

ShowQuotaRequest Request Object

func (ShowQuotaRequest) String

func (o ShowQuotaRequest) String() string

type ShowQuotaRequestType

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

func (ShowQuotaRequestType) MarshalJSON

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

func (*ShowQuotaRequestType) UnmarshalJSON

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

func (ShowQuotaRequestType) Value added in v0.0.90

func (c ShowQuotaRequestType) Value() string

type ShowQuotaRequestTypeEnum

type ShowQuotaRequestTypeEnum struct {
	VPC                       ShowQuotaRequestType
	SUBNET                    ShowQuotaRequestType
	SECURITY_GROUP            ShowQuotaRequestType
	SECURITY_GROUP_RULE       ShowQuotaRequestType
	PUBLIC_IP                 ShowQuotaRequestType
	VPN                       ShowQuotaRequestType
	VPNGW                     ShowQuotaRequestType
	VPC_PEER                  ShowQuotaRequestType
	FIREWALL                  ShowQuotaRequestType
	SHARE_BANDWIDTH           ShowQuotaRequestType
	SHARE_BANDWIDTH_IP        ShowQuotaRequestType
	LOADBALANCER              ShowQuotaRequestType
	LISTENER                  ShowQuotaRequestType
	PHYSICAL_CONNECT          ShowQuotaRequestType
	VIRTUAL_INTERFACE         ShowQuotaRequestType
	VPC_CONTAIN_ROUTETABLE    ShowQuotaRequestType
	ROUTETABLE_CONTAIN_ROUTES ShowQuotaRequestType
}

func GetShowQuotaRequestTypeEnum

func GetShowQuotaRequestTypeEnum() ShowQuotaRequestTypeEnum

type ShowQuotaResponse

type ShowQuotaResponse struct {
	Quotas         *Quota `json:"quotas,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowQuotaResponse Response Object

func (ShowQuotaResponse) String

func (o ShowQuotaResponse) String() string

type ShowRouteTableRequest added in v0.0.55

type ShowRouteTableRequest struct {

	// 路由表ID
	RoutetableId string `json:"routetable_id"`
}

ShowRouteTableRequest Request Object

func (ShowRouteTableRequest) String added in v0.0.55

func (o ShowRouteTableRequest) String() string

type ShowRouteTableResponse added in v0.0.55

type ShowRouteTableResponse struct {
	Routetable     *RouteTableResp `json:"routetable,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ShowRouteTableResponse Response Object

func (ShowRouteTableResponse) String added in v0.0.55

func (o ShowRouteTableResponse) String() string

type ShowSecurityGroupRequest

type ShowSecurityGroupRequest struct {

	// 安全组ID
	SecurityGroupId string `json:"security_group_id"`
}

ShowSecurityGroupRequest Request Object

func (ShowSecurityGroupRequest) String

func (o ShowSecurityGroupRequest) String() string

type ShowSecurityGroupResponse

type ShowSecurityGroupResponse struct {
	SecurityGroup  *SecurityGroup `json:"security_group,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowSecurityGroupResponse Response Object

func (ShowSecurityGroupResponse) String

func (o ShowSecurityGroupResponse) String() string

type ShowSecurityGroupRuleRequest

type ShowSecurityGroupRuleRequest struct {

	// 安全组规则ID
	SecurityGroupRuleId string `json:"security_group_rule_id"`
}

ShowSecurityGroupRuleRequest Request Object

func (ShowSecurityGroupRuleRequest) String

type ShowSecurityGroupRuleResponse

type ShowSecurityGroupRuleResponse struct {
	SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
	HttpStatusCode    int                `json:"-"`
}

ShowSecurityGroupRuleResponse Response Object

func (ShowSecurityGroupRuleResponse) String

type ShowSubnetRequest

type ShowSubnetRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`
}

ShowSubnetRequest Request Object

func (ShowSubnetRequest) String

func (o ShowSubnetRequest) String() string

type ShowSubnetResponse

type ShowSubnetResponse struct {
	Subnet         *Subnet `json:"subnet,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSubnetResponse Response Object

func (ShowSubnetResponse) String

func (o ShowSubnetResponse) String() string

type ShowSubnetTagsRequest

type ShowSubnetTagsRequest struct {

	// 子网ID
	SubnetId string `json:"subnet_id"`
}

ShowSubnetTagsRequest Request Object

func (ShowSubnetTagsRequest) String

func (o ShowSubnetTagsRequest) String() string

type ShowSubnetTagsResponse

type ShowSubnetTagsResponse struct {

	// tag对象列表
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowSubnetTagsResponse Response Object

func (ShowSubnetTagsResponse) String

func (o ShowSubnetTagsResponse) String() string

type ShowVpcPeeringRequest

type ShowVpcPeeringRequest struct {

	// 对等连接ID
	PeeringId string `json:"peering_id"`
}

ShowVpcPeeringRequest Request Object

func (ShowVpcPeeringRequest) String

func (o ShowVpcPeeringRequest) String() string

type ShowVpcPeeringResponse

type ShowVpcPeeringResponse struct {
	Peering        *VpcPeering `json:"peering,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowVpcPeeringResponse Response Object

func (ShowVpcPeeringResponse) String

func (o ShowVpcPeeringResponse) String() string

type ShowVpcRequest

type ShowVpcRequest struct {

	// 虚拟私有云ID
	VpcId string `json:"vpc_id"`
}

ShowVpcRequest Request Object

func (ShowVpcRequest) String

func (o ShowVpcRequest) String() string

type ShowVpcResponse

type ShowVpcResponse struct {
	Vpc            *Vpc `json:"vpc,omitempty"`
	HttpStatusCode int  `json:"-"`
}

ShowVpcResponse Response Object

func (ShowVpcResponse) String

func (o ShowVpcResponse) String() string

type ShowVpcRouteRequest

type ShowVpcRouteRequest struct {

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

ShowVpcRouteRequest Request Object

func (ShowVpcRouteRequest) String

func (o ShowVpcRouteRequest) String() string

type ShowVpcRouteResponse

type ShowVpcRouteResponse struct {
	Route          *VpcRoute `json:"route,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ShowVpcRouteResponse Response Object

func (ShowVpcRouteResponse) String

func (o ShowVpcRouteResponse) String() string

type ShowVpcTagsRequest

type ShowVpcTagsRequest struct {

	// 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在
	VpcId string `json:"vpc_id"`
}

ShowVpcTagsRequest Request Object

func (ShowVpcTagsRequest) String

func (o ShowVpcTagsRequest) String() string

type ShowVpcTagsResponse

type ShowVpcTagsResponse struct {

	// tag对象列表
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

ShowVpcTagsResponse Response Object

func (ShowVpcTagsResponse) String

func (o ShowVpcTagsResponse) String() string

type Subnet

type Subnet struct {

	// 子网ID
	Id string `json:"id"`

	// 功能说明:子网名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

	// 功能说明:子网描述 取值范围:0-255个字符,不能包含“<”和“>”。
	Description string `json:"description"`

	// 功能说明:子网的网段 取值范围:必须在vpc对应cidr范围内 约束:必须是cidr格式。掩码长度不能大于28
	Cidr string `json:"cidr"`

	// 功能说明:子网的网关 取值范围:子网网段中的IP地址 约束:必须是ip格式
	GatewayIp string `json:"gateway_ip"`

	// 功能说明:是否创建cidr_v6 取值范围:true(开启),false(关闭)
	Ipv6Enable bool `json:"ipv6_enable"`

	// IPv6子网的网段,如果子网为IPv4子网,则不返回此参数
	CidrV6 string `json:"cidr_v6"`

	// IPv6子网的网关,如果子网为IPv4子网,则不返回此参数
	GatewayIpV6 string `json:"gateway_ip_v6"`

	// 子网是否开启dhcp功能
	DhcpEnable bool `json:"dhcp_enable"`

	// 子网dns服务器地址1
	PrimaryDns string `json:"primary_dns"`

	// 子网dns服务器地址2
	SecondaryDns string `json:"secondary_dns"`

	// 子网dns服务器地址列表
	DnsList []string `json:"dnsList"`

	// 子网所在的可用区标识
	AvailabilityZone string `json:"availability_zone"`

	// 子网所在VPC标识
	VpcId string `json:"vpc_id"`

	// 功能说明:子网的状态 取值范围: - ACTIVE:表示子网已挂载到ROUTER上 - UNKNOWN:表示子网还未挂载到ROUTER上 - ERROR:表示子网状态故障
	Status SubnetStatus `json:"status"`

	// 对应网络(OpenStack Neutron接口)id
	NeutronNetworkId string `json:"neutron_network_id"`

	// 对应子网(OpenStack Neutron接口)id
	NeutronSubnetId string `json:"neutron_subnet_id"`

	// 对应IPv6子网(OpenStack Neutron接口)id,如果子网为IPv4子网,则不返回此参数
	NeutronSubnetIdV6 string `json:"neutron_subnet_id_v6"`

	// 子网配置的NTP地址或DHCP租约时间
	ExtraDhcpOpts []ExtraDhcpOption `json:"extra_dhcp_opts"`

	// 功能说明:子网作用域 取值范围:center-表示作用域为中心;{azId}表示作用域为具体的AZ
	Scope *string `json:"scope,omitempty"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

Subnet

func (Subnet) String

func (o Subnet) String() string

type SubnetIpAvailability

type SubnetIpAvailability struct {

	// 子网中已经使用的IP数目(不包含系统预留地址)
	UsedIps int32 `json:"used_ips"`

	// 子网ID
	SubnetId string `json:"subnet_id"`

	// 子网名称
	SubnetName string `json:"subnet_name"`

	// 子网的IP版本,取值为4或者6
	IpVersion int32 `json:"ip_version"`

	// 子网的CIDR
	Cidr string `json:"cidr"`

	// 子网中IP总数(不包含系统预留地址)
	TotalIps int32 `json:"total_ips"`
}

SubnetIpAvailability

func (SubnetIpAvailability) String

func (o SubnetIpAvailability) String() string

type SubnetList added in v0.0.55

type SubnetList struct {

	// 路由表关联的子网ID
	Id string `json:"id"`
}

SubnetList

func (SubnetList) String added in v0.0.55

func (o SubnetList) String() string

type SubnetResult

type SubnetResult struct {

	// uuid形式的一个资源标识。
	Id string `json:"id"`

	// 功能说明:子网的状态。   取值范围:ACTIVE,UNKNOWN,ERROR       ACTIVE表示子网已挂载到ROUTER上       UNKNOWN表示子网还未挂载到ROUTER上       ERROR表示子网状态故障
	Status SubnetResultStatus `json:"status"`
}

SubnetResult

func (SubnetResult) String

func (o SubnetResult) String() string

type SubnetResultStatus

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

func (SubnetResultStatus) MarshalJSON

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

func (*SubnetResultStatus) UnmarshalJSON

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

func (SubnetResultStatus) Value added in v0.0.90

func (c SubnetResultStatus) Value() string

type SubnetResultStatusEnum

type SubnetResultStatusEnum struct {
	ACTIVE  SubnetResultStatus
	UNKNOWN SubnetResultStatus
	ERROR   SubnetResultStatus
}

func GetSubnetResultStatusEnum

func GetSubnetResultStatusEnum() SubnetResultStatusEnum

type SubnetStatus

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

func (SubnetStatus) MarshalJSON

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

func (*SubnetStatus) UnmarshalJSON

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

func (SubnetStatus) Value added in v0.0.90

func (c SubnetStatus) Value() string

type SubnetStatusEnum

type SubnetStatusEnum struct {
	ACTIVE  SubnetStatus
	UNKNOWN SubnetStatus
	ERROR   SubnetStatus
}

func GetSubnetStatusEnum

func GetSubnetStatusEnum() SubnetStatusEnum

type UpdateFlowLogReq added in v0.1.25

type UpdateFlowLogReq struct {

	// 功能说明:流日志名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

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

	// 功能说明:流日志管理 取值范围:若为true,表明开启流日志。若为false,则关闭流日志。
	AdminState *bool `json:"admin_state,omitempty"`
}

UpdateFlowLogReq

func (UpdateFlowLogReq) String added in v0.1.25

func (o UpdateFlowLogReq) String() string

type UpdateFlowLogReqBody added in v0.1.25

type UpdateFlowLogReqBody struct {
	FlowLog *UpdateFlowLogReq `json:"flow_log"`
}

UpdateFlowLogReqBody

func (UpdateFlowLogReqBody) String added in v0.1.25

func (o UpdateFlowLogReqBody) String() string

type UpdateFlowLogRequest added in v0.1.25

type UpdateFlowLogRequest struct {

	// 流日志资源唯一标识
	FlowlogId string `json:"flowlog_id"`

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

UpdateFlowLogRequest Request Object

func (UpdateFlowLogRequest) String added in v0.1.25

func (o UpdateFlowLogRequest) String() string

type UpdateFlowLogResponse added in v0.1.25

type UpdateFlowLogResponse struct {
	FlowLog        *FlowLogResp `json:"flow_log,omitempty"`
	HttpStatusCode int          `json:"-"`
}

UpdateFlowLogResponse Response Object

func (UpdateFlowLogResponse) String added in v0.1.25

func (o UpdateFlowLogResponse) String() string

type UpdatePortOption

type UpdatePortOption struct {

	// 功能说明:端口名称 取值范围:0~255个字符,支持中文、英文、字母、_(下划线)、-(中划线)
	Name *string `json:"name,omitempty"`

	// 安全组的ID列表
	SecurityGroups *[]string `json:"security_groups,omitempty"`

	// 功能说明:IP/Mac对列表 约束: - IP地址不允许为 “0.0.0.0”。 - 如果配置地址池较大(CIDR掩码小于24位),建议为该port配置一个单独的安全组。 - 为虚拟IP配置后端ECS场景,allowed_address_pairs中配置的IP地址,必须为ECS网卡已有的IP地址,否则可能会导致虚拟IP通信异常。
	AllowedAddressPairs *[]AllowedAddressPair `json:"allowed_address_pairs,omitempty"`

	// 功能说明:DHCP的扩展Option(扩展属性)
	ExtraDhcpOpts *[]ExtraDhcpOpt `json:"extra_dhcp_opts,omitempty"`
}

UpdatePortOption

func (UpdatePortOption) String

func (o UpdatePortOption) String() string

type UpdatePortRequest

type UpdatePortRequest struct {

	// 端口ID
	PortId string `json:"port_id"`

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

UpdatePortRequest Request Object

func (UpdatePortRequest) String

func (o UpdatePortRequest) String() string

type UpdatePortRequestBody

type UpdatePortRequestBody struct {
	Port *UpdatePortOption `json:"port"`
}

UpdatePortRequestBody

func (UpdatePortRequestBody) String

func (o UpdatePortRequestBody) String() string

type UpdatePortResponse

type UpdatePortResponse struct {
	Port           *Port `json:"port,omitempty"`
	HttpStatusCode int   `json:"-"`
}

UpdatePortResponse Response Object

func (UpdatePortResponse) String

func (o UpdatePortResponse) String() string

type UpdateRouteTableReq added in v0.0.55

type UpdateRouteTableReq struct {

	// 功能说明:路由表名称  取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name *string `json:"name,omitempty"`

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

	Routes *RouteTableRouteAction `json:"routes,omitempty"`
}

UpdateRouteTableReq

func (UpdateRouteTableReq) String added in v0.0.55

func (o UpdateRouteTableReq) String() string

type UpdateRouteTableRequest added in v0.0.55

type UpdateRouteTableRequest struct {

	// 路由表ID
	RoutetableId string `json:"routetable_id"`

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

UpdateRouteTableRequest Request Object

func (UpdateRouteTableRequest) String added in v0.0.55

func (o UpdateRouteTableRequest) String() string

type UpdateRouteTableResponse added in v0.0.55

type UpdateRouteTableResponse struct {
	Routetable     *RouteTableResp `json:"routetable,omitempty"`
	HttpStatusCode int             `json:"-"`
}

UpdateRouteTableResponse Response Object

func (UpdateRouteTableResponse) String added in v0.0.55

func (o UpdateRouteTableResponse) String() string

type UpdateRoutetableReqBody added in v0.0.55

type UpdateRoutetableReqBody struct {
	Routetable *UpdateRouteTableReq `json:"routetable"`
}

UpdateRoutetableReqBody

func (UpdateRoutetableReqBody) String added in v0.0.55

func (o UpdateRoutetableReqBody) String() string

type UpdateSubnetOption

type UpdateSubnetOption struct {

	// 功能说明:子网名称 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
	Name string `json:"name"`

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

	// 功能说明:是否创建ipv6子网 取值范围:true(开启),false(关闭)
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 功能说明:子网是否开启dhcp功能 取值范围:true(开启),false(关闭) 约束:不填时默认为true。当设置为false时,会导致新创建的ECS无法获取IP地址,cloudinit无法注入账号密码,请谨慎操作。
	DhcpEnable *bool `json:"dhcp_enable,omitempty"`

	// 功能说明:子网dns服务器地址1 约束:ip格式 默认值:不填时为空 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	PrimaryDns *string `json:"primary_dns,omitempty"`

	// 功能说明:子网dns服务器地址2 约束:ip格式 默认值:不填时为空 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	SecondaryDns *string `json:"secondary_dns,omitempty"`

	// 功能说明:子网dns服务器地址的集合;如果想使用两个以上dns服务器,请使用该字段。 约束:是子网dns服务器地址1跟子网dns服务器地址2的合集的父集 默认值:不填时为空,无法使用云内网DNS功能 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html)
	DnsList *[]string `json:"dnsList,omitempty"`

	// 子网配置的NTP地址或租约时间
	ExtraDhcpOpts *[]ExtraDhcpOption `json:"extra_dhcp_opts,omitempty"`
}

UpdateSubnetOption

func (UpdateSubnetOption) String

func (o UpdateSubnetOption) String() string

type UpdateSubnetRequest

type UpdateSubnetRequest struct {

	// 子网对应的vpc_id
	VpcId string `json:"vpc_id"`

	// 子网ID
	SubnetId string `json:"subnet_id"`

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

UpdateSubnetRequest Request Object

func (UpdateSubnetRequest) String

func (o UpdateSubnetRequest) String() string

type UpdateSubnetRequestBody

type UpdateSubnetRequestBody struct {
	Subnet *UpdateSubnetOption `json:"subnet"`
}

UpdateSubnetRequestBody

func (UpdateSubnetRequestBody) String

func (o UpdateSubnetRequestBody) String() string

type UpdateSubnetResponse

type UpdateSubnetResponse struct {
	Subnet         *SubnetResult `json:"subnet,omitempty"`
	HttpStatusCode int           `json:"-"`
}

UpdateSubnetResponse Response Object

func (UpdateSubnetResponse) String

func (o UpdateSubnetResponse) String() string

type UpdateVpcOption

type UpdateVpcOption struct {

	// 功能说明:虚拟私有云名称  取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)  约束:如果名称不为空,则同一个租户下的VPC不允许重名。
	Name *string `json:"name,omitempty"`

	// 功能说明:虚拟私有云的描述  取值范围:0-255个字符,不能包含“<”和“>”。
	Description *string `json:"description,omitempty"`

	// 功能说明:虚拟私有云下可用子网的范围  取值范围:  - 10.0.0.0/8 ~ 10.255.255.240/28 - 172.16.0.0/12 ~ 172.31.255.240/28 - 192.168.0.0/16 ~ 192.168.255.240/28  约束:必须是ipv4 cidr格式,例如:192.168.0.0/16
	Cidr *string `json:"cidr,omitempty"`

	// 功能说明:路由信息列表,详情参见route对象
	Routes *[]Route `json:"routes,omitempty"`
}

UpdateVpcOption

func (UpdateVpcOption) String

func (o UpdateVpcOption) String() string

type UpdateVpcPeeringOption

type UpdateVpcPeeringOption struct {

	// 功能说明:对等连接名称 取值范围:支持1~64个字符
	Name *string `json:"name,omitempty"`

	// 功能说明:对等连接描述 取值范围:0-255个字符,支持数字、字母、中文字符
	Description *string `json:"description,omitempty"`
}

UpdateVpcPeeringOption 更新peering对象

func (UpdateVpcPeeringOption) String

func (o UpdateVpcPeeringOption) String() string

type UpdateVpcPeeringRequest

type UpdateVpcPeeringRequest struct {

	// 对等连接ID
	PeeringId string `json:"peering_id"`

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

UpdateVpcPeeringRequest Request Object

func (UpdateVpcPeeringRequest) String

func (o UpdateVpcPeeringRequest) String() string

type UpdateVpcPeeringRequestBody

type UpdateVpcPeeringRequestBody struct {
	Peering *UpdateVpcPeeringOption `json:"peering"`
}

UpdateVpcPeeringRequestBody

func (UpdateVpcPeeringRequestBody) String

type UpdateVpcPeeringResponse

type UpdateVpcPeeringResponse struct {
	Peering        *VpcPeering `json:"peering,omitempty"`
	HttpStatusCode int         `json:"-"`
}

UpdateVpcPeeringResponse Response Object

func (UpdateVpcPeeringResponse) String

func (o UpdateVpcPeeringResponse) String() string

type UpdateVpcRequest

type UpdateVpcRequest struct {

	// 虚拟私有云ID
	VpcId string `json:"vpc_id"`

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

UpdateVpcRequest Request Object

func (UpdateVpcRequest) String

func (o UpdateVpcRequest) String() string

type UpdateVpcRequestBody

type UpdateVpcRequestBody struct {
	Vpc *UpdateVpcOption `json:"vpc"`
}

UpdateVpcRequestBody

func (UpdateVpcRequestBody) String

func (o UpdateVpcRequestBody) String() string

type UpdateVpcResponse

type UpdateVpcResponse struct {
	Vpc            *Vpc `json:"vpc,omitempty"`
	HttpStatusCode int  `json:"-"`
}

UpdateVpcResponse Response Object

func (UpdateVpcResponse) String

func (o UpdateVpcResponse) String() string

type VersionResult added in v0.1.48

type VersionResult struct {

	// API版本的状态:  - CURRENT(当前版本)  - STABLE(稳定版本)  - DEPRECATED(废弃版本)
	Status VersionResultStatus `json:"status"`

	// API版本
	Id string `json:"id"`

	// 链接列表
	Links []NeutronPageLink `json:"links"`
}

VersionResult

func (VersionResult) String added in v0.1.48

func (o VersionResult) String() string

type VersionResultStatus added in v0.1.48

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

func (VersionResultStatus) MarshalJSON added in v0.1.48

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

func (*VersionResultStatus) UnmarshalJSON added in v0.1.48

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

func (VersionResultStatus) Value added in v0.1.48

func (c VersionResultStatus) Value() string

type VersionResultStatusEnum added in v0.1.48

type VersionResultStatusEnum struct {
	CURRENT    VersionResultStatus
	STABLE     VersionResultStatus
	DEPRECATED VersionResultStatus
}

func GetVersionResultStatusEnum added in v0.1.48

func GetVersionResultStatusEnum() VersionResultStatusEnum

type Vpc

type Vpc struct {

	// 功能说明:虚拟私有云ID 取值范围:带\"-\"的UUID
	Id string `json:"id"`

	// 功能说明:虚拟私有云名称 取值范围:0-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) 约束:如果名称不为空,则同一个租户下的名称不能重复
	Name string `json:"name"`

	// 功能说明:虚拟私有云下可用子网的范围 取值范围: - 10.0.0.0/8~10.255.255.240/28 - 172.16.0.0/12 ~ 172.31.255.240/28 - 192.168.0.0/16 ~ 192.168.255.240/28 不指定cidr时,默认值为空 约束:必须是ipv4 cidr格式,例如:192.168.0.0/16
	Cidr string `json:"cidr"`

	// 功能说明:虚拟私有云的描述 取值范围:0-255个字符,不能包含“<”和“>”
	Description string `json:"description"`

	// 功能说明:路由信息列表,详情参见route对象
	Routes []Route `json:"routes"`

	// 功能说明:虚拟私有云的状态 取值范围: - CREATING:创建中 - OK:创建成功
	Status VpcStatus `json:"status"`

	// 功能说明:企业项目ID。 取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 项目ID
	TenantId string `json:"tenant_id"`

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

Vpc

func (Vpc) String

func (o Vpc) String() string

type VpcInfo

type VpcInfo struct {

	// 对等连接其中一端vpc ID
	VpcId string `json:"vpc_id"`

	// 对等连接其中一端vpc所属的租户ID 约束:跨租户VPC创建对等连接时必选
	TenantId *string `json:"tenant_id,omitempty"`
}

VpcInfo

func (VpcInfo) String

func (o VpcInfo) String() string

type VpcPeering

type VpcPeering struct {

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

	// 功能说明:对等连接名称 取值范围:支持1~64个字符
	Name string `json:"name"`

	// 功能说明:对等连接状态 取值范围: - PENDING_ACCEPTANCE:等待接受 - REJECTED:已拒绝。 - EXPIRED:已过期。 - DELETED:已删除。 - ACTIVE:活动的。
	Status VpcPeeringStatus `json:"status"`

	RequestVpcInfo *VpcInfo `json:"request_vpc_info"`

	AcceptVpcInfo *VpcInfo `json:"accept_vpc_info"`

	// 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 对等连接描述
	Description string `json:"description"`
}

VpcPeering peering对象

func (VpcPeering) String

func (o VpcPeering) String() string

type VpcPeeringStatus

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

func (VpcPeeringStatus) MarshalJSON

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

func (*VpcPeeringStatus) UnmarshalJSON

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

func (VpcPeeringStatus) Value added in v0.0.90

func (c VpcPeeringStatus) Value() string

type VpcPeeringStatusEnum

type VpcPeeringStatusEnum struct {
	PENDING_ACCEPTANCE VpcPeeringStatus
	REJECTED           VpcPeeringStatus
	EXPIRED            VpcPeeringStatus
	DELETED            VpcPeeringStatus
	ACTIVE             VpcPeeringStatus
}

func GetVpcPeeringStatusEnum

func GetVpcPeeringStatusEnum() VpcPeeringStatusEnum

type VpcRoute

type VpcRoute struct {

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

	// 路由目的地址CIDR,如192.168.200.0/24。
	Destination string `json:"destination"`

	// 功能说明:路由下一跳 取值范围:如果type为peering类型,则nexthop为peering的ID
	Nexthop string `json:"nexthop"`

	// 功能说明:路由类型 取值范围:peering
	Type VpcRouteType `json:"type"`

	// 请求添加路由的VPC ID
	VpcId string `json:"vpc_id"`

	// 项目ID
	TenantId string `json:"tenant_id"`
}

VpcRoute

func (VpcRoute) String

func (o VpcRoute) String() string

type VpcRouteType

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

func (VpcRouteType) MarshalJSON

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

func (*VpcRouteType) UnmarshalJSON

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

func (VpcRouteType) Value added in v0.0.90

func (c VpcRouteType) Value() string

type VpcRouteTypeEnum

type VpcRouteTypeEnum struct {
	PEERING VpcRouteType
}

func GetVpcRouteTypeEnum

func GetVpcRouteTypeEnum() VpcRouteTypeEnum

type VpcStatus

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

func (VpcStatus) MarshalJSON

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

func (*VpcStatus) UnmarshalJSON

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

func (VpcStatus) Value added in v0.0.90

func (c VpcStatus) Value() string

type VpcStatusEnum

type VpcStatusEnum struct {
	CREATING VpcStatus
	OK       VpcStatus
	ERROR    VpcStatus
}

func GetVpcStatusEnum

func GetVpcStatusEnum() VpcStatusEnum

Source Files

Jump to

Keyboard shortcuts

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