Documentation ¶
Index ¶
- type AcceptVpcPeeringRequest
- type AcceptVpcPeeringResponse
- type AcceptVpcPeeringResponseStatus
- type AcceptVpcPeeringResponseStatusEnum
- type AllowedAddressPair
- type CreatePortOption
- type CreatePortRequest
- type CreatePortRequestBody
- type CreatePortResponse
- type CreatePrivateipOption
- type CreatePrivateipRequest
- type CreatePrivateipRequestBody
- type CreatePrivateipResponse
- type CreateSecurityGroupOption
- type CreateSecurityGroupRequest
- type CreateSecurityGroupRequestBody
- type CreateSecurityGroupResponse
- type CreateSecurityGroupRuleOption
- type CreateSecurityGroupRuleRequest
- type CreateSecurityGroupRuleRequestBody
- type CreateSecurityGroupRuleResponse
- type CreateSubnetOption
- type CreateSubnetRequest
- type CreateSubnetRequestBody
- type CreateSubnetResponse
- type CreateVpcOption
- type CreateVpcPeeringOption
- type CreateVpcPeeringRequest
- type CreateVpcPeeringRequestBody
- type CreateVpcPeeringResponse
- type CreateVpcRequest
- type CreateVpcRequestBody
- type CreateVpcResponse
- type CreateVpcRouteOption
- type CreateVpcRouteOptionType
- type CreateVpcRouteOptionTypeEnum
- type CreateVpcRouteRequest
- type CreateVpcRouteRequestBody
- type CreateVpcRouteResponse
- type DeletePortRequest
- type DeletePortResponse
- type DeletePrivateipRequest
- type DeletePrivateipResponse
- type DeleteSecurityGroupRequest
- type DeleteSecurityGroupResponse
- type DeleteSecurityGroupRuleRequest
- type DeleteSecurityGroupRuleResponse
- type DeleteSubnetRequest
- type DeleteSubnetResponse
- type DeleteVpcPeeringRequest
- type DeleteVpcPeeringResponse
- type DeleteVpcRequest
- type DeleteVpcResponse
- type DeleteVpcRouteRequest
- type DeleteVpcRouteResponse
- type DnsAssignMent
- type ExtraDhcpOpt
- type ExtraDhcpOption
- type ExtraDhcpOptionOptName
- type ExtraDhcpOptionOptNameEnum
- type FixedIp
- type ListPortsRequest
- type ListPortsRequestDeviceOwner
- type ListPortsRequestDeviceOwnerEnum
- type ListPortsRequestStatus
- type ListPortsRequestStatusEnum
- type ListPortsResponse
- type ListPrivateipsRequest
- type ListPrivateipsResponse
- type ListSecurityGroupRulesRequest
- type ListSecurityGroupRulesResponse
- type ListSecurityGroupsRequest
- type ListSecurityGroupsResponse
- type ListSubnetsRequest
- type ListSubnetsResponse
- type ListVpcPeeringsRequest
- type ListVpcPeeringsRequestStatus
- type ListVpcPeeringsRequestStatusEnum
- type ListVpcPeeringsResponse
- type ListVpcRoutesRequest
- type ListVpcRoutesRequestType
- type ListVpcRoutesRequestTypeEnum
- type ListVpcRoutesResponse
- type ListVpcsRequest
- type ListVpcsResponse
- type NetworkIpAvailability
- type NeutronPageLink
- type Port
- type PortDeviceOwner
- type PortDeviceOwnerEnum
- type PortStatus
- type PortStatusEnum
- type Privateip
- type PrivateipDeviceOwner
- type PrivateipDeviceOwnerEnum
- type PrivateipStatus
- type PrivateipStatusEnum
- type Quota
- type RejectVpcPeeringRequest
- type RejectVpcPeeringResponse
- type RejectVpcPeeringResponseStatus
- type RejectVpcPeeringResponseStatusEnum
- type ResourceResult
- type ResourceResultType
- type ResourceResultTypeEnum
- type Route
- type SecurityGroup
- type SecurityGroupRule
- type ShowNetworkIpAvailabilitiesRequest
- type ShowNetworkIpAvailabilitiesResponse
- type ShowPortRequest
- type ShowPortResponse
- type ShowPrivateipRequest
- type ShowPrivateipResponse
- type ShowQuotaRequest
- type ShowQuotaRequestType
- type ShowQuotaRequestTypeEnum
- type ShowQuotaResponse
- type ShowSecurityGroupRequest
- type ShowSecurityGroupResponse
- type ShowSecurityGroupRuleRequest
- type ShowSecurityGroupRuleResponse
- type ShowSubnetRequest
- type ShowSubnetResponse
- type ShowVpcPeeringRequest
- type ShowVpcPeeringResponse
- type ShowVpcRequest
- type ShowVpcResponse
- type ShowVpcRouteRequest
- type ShowVpcRouteResponse
- type Subnet
- type SubnetIpAvailability
- type SubnetResult
- type SubnetResultStatus
- type SubnetResultStatusEnum
- type SubnetStatus
- type SubnetStatusEnum
- type UpdatePortOption
- type UpdatePortRequest
- type UpdatePortRequestBody
- type UpdatePortResponse
- type UpdateSubnetOption
- type UpdateSubnetRequest
- type UpdateSubnetRequestBody
- type UpdateSubnetResponse
- type UpdateVpcOption
- type UpdateVpcPeeringOption
- type UpdateVpcPeeringRequest
- type UpdateVpcPeeringRequestBody
- type UpdateVpcPeeringResponse
- type UpdateVpcRequest
- type UpdateVpcRequestBody
- type UpdateVpcResponse
- type Vpc
- type VpcInfo
- type VpcPeering
- type VpcPeeringStatus
- type VpcPeeringStatusEnum
- type VpcRoute
- type VpcRouteType
- type VpcRouteTypeEnum
- type VpcStatus
- type VpcStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptVpcPeeringRequest ¶
type AcceptVpcPeeringRequest struct {
PeeringId string `json:"peering_id"`
}
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 *string `json:"created_at,omitempty"` // 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss UpdatedAt *string `json:"updated_at,omitempty"` // 对等连接描述 Description *string `json:"description,omitempty"` }
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
type AcceptVpcPeeringResponseStatusEnum ¶
type AcceptVpcPeeringResponseStatusEnum struct { PENDING_ACCEPTANCE AcceptVpcPeeringResponseStatus REJECTED AcceptVpcPeeringResponseStatus EXPIRED AcceptVpcPeeringResponseStatus DELETED AcceptVpcPeeringResponseStatus ACTIVE AcceptVpcPeeringResponseStatus }
func GetAcceptVpcPeeringResponseStatusEnum ¶
func GetAcceptVpcPeeringResponseStatusEnum() AcceptVpcPeeringResponseStatusEnum
type AllowedAddressPair ¶
type AllowedAddressPair struct { // 功能说明:IP地址 取值范围:可以是IP地址或CIDR 约束:不支持0.0.0.0/0如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。 IpAddress *string `json:"ip_address,omitempty"` // mac地址 MacAddress *string `json:"mac_address,omitempty"` }
func (AllowedAddressPair) String ¶
func (o AllowedAddressPair) 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"` }
func (CreatePortOption) String ¶
func (o CreatePortOption) String() string
type CreatePortRequest ¶
type CreatePortRequest struct {
Body *CreatePortRequestBody `json:"body,omitempty"`
}
Request Object
func (CreatePortRequest) String ¶
func (o CreatePortRequest) String() string
type CreatePortRequestBody ¶
type CreatePortRequestBody struct {
Port *CreatePortOption `json:"port"`
}
func (CreatePortRequestBody) String ¶
func (o CreatePortRequestBody) String() string
type CreatePortResponse ¶
type CreatePortResponse struct {
Port *Port `json:"port,omitempty"`
}
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"` }
func (CreatePrivateipOption) String ¶
func (o CreatePrivateipOption) String() string
type CreatePrivateipRequest ¶
type CreatePrivateipRequest struct {
Body *CreatePrivateipRequestBody `json:"body,omitempty"`
}
Request Object
func (CreatePrivateipRequest) String ¶
func (o CreatePrivateipRequest) String() string
type CreatePrivateipRequestBody ¶
type CreatePrivateipRequestBody struct { // 私有IP列表对象 Privateips []CreatePrivateipOption `json:"privateips"` }
func (CreatePrivateipRequestBody) String ¶
func (o CreatePrivateipRequestBody) String() string
type CreatePrivateipResponse ¶
type CreatePrivateipResponse struct { // 私有IP列表对象 Privateips []Privateip `json:"privateips,omitempty"` }
Response Object
func (CreatePrivateipResponse) String ¶
func (o CreatePrivateipResponse) 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"` }
func (CreateSecurityGroupOption) String ¶
func (o CreateSecurityGroupOption) String() string
type CreateSecurityGroupRequest ¶
type CreateSecurityGroupRequest struct {
Body *CreateSecurityGroupRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateSecurityGroupRequest) String ¶
func (o CreateSecurityGroupRequest) String() string
type CreateSecurityGroupRequestBody ¶
type CreateSecurityGroupRequestBody struct {
SecurityGroup *CreateSecurityGroupOption `json:"security_group"`
}
func (CreateSecurityGroupRequestBody) String ¶
func (o CreateSecurityGroupRequestBody) String() string
type CreateSecurityGroupResponse ¶
type CreateSecurityGroupResponse struct {
SecurityGroup *SecurityGroup `json:"security_group,omitempty"`
}
Response Object
func (CreateSecurityGroupResponse) String ¶
func (o CreateSecurityGroupResponse) String() 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互斥 RemoteIpPrefix *string `json:"remote_ip_prefix,omitempty"` // 功能说明:对端安全组ID 约束:和remote_ip_prefix互斥 RemoteGroupId *string `json:"remote_group_id,omitempty"` }
func (CreateSecurityGroupRuleOption) String ¶
func (o CreateSecurityGroupRuleOption) String() string
type CreateSecurityGroupRuleRequest ¶
type CreateSecurityGroupRuleRequest struct {
Body *CreateSecurityGroupRuleRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateSecurityGroupRuleRequest) String ¶
func (o CreateSecurityGroupRuleRequest) String() string
type CreateSecurityGroupRuleRequestBody ¶
type CreateSecurityGroupRuleRequestBody struct {
SecurityGroupRule *CreateSecurityGroupRuleOption `json:"security_group_rule"`
}
func (CreateSecurityGroupRuleRequestBody) String ¶
func (o CreateSecurityGroupRuleRequestBody) String() string
type CreateSecurityGroupRuleResponse ¶
type CreateSecurityGroupRuleResponse struct {
SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
}
Response Object
func (CreateSecurityGroupRuleResponse) String ¶
func (o CreateSecurityGroupRuleResponse) String() 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地址 PrimaryDns *string `json:"primary_dns,omitempty"` // 功能说明:子网dns服务器地址2 约束:ip格式,不支持IPv6地址 SecondaryDns *string `json:"secondary_dns,omitempty"` // 功能说明:子网dns服务器地址的集合;如果想使用两个以上dns服务器,请使用该字段 约束:是子网dns服务器地址1跟子网dns服务器地址2的合集的父集,不支持IPv6地址。 DnsList []string `json:"dnsList,omitempty"` // 功能说明:子网所在的可用分区标识 约束:系统存在的可用分区标识 AvailabilityZone *string `json:"availability_zone,omitempty"` // 子网配置的NTP地址 ExtraDhcpOpts []ExtraDhcpOption `json:"extra_dhcp_opts,omitempty"` }
func (CreateSubnetOption) String ¶
func (o CreateSubnetOption) String() string
type CreateSubnetRequest ¶
type CreateSubnetRequest struct {
Body *CreateSubnetRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateSubnetRequest) String ¶
func (o CreateSubnetRequest) String() string
type CreateSubnetRequestBody ¶
type CreateSubnetRequestBody struct {
Subnet *CreateSubnetOption `json:"subnet"`
}
创建子网对象
func (CreateSubnetRequestBody) String ¶
func (o CreateSubnetRequestBody) String() string
type CreateSubnetResponse ¶
type CreateSubnetResponse struct {
Subnet *Subnet `json:"subnet,omitempty"`
}
Response Object
func (CreateSubnetResponse) String ¶
func (o CreateSubnetResponse) 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对象
func (CreateVpcOption) String ¶
func (o CreateVpcOption) String() string
type CreateVpcPeeringOption ¶
type CreateVpcPeeringOption struct { // 功能说明:对等连接名称 取值范围:支持1~64个字符 Name string `json:"name"` RequestVpcInfo *VpcInfo `json:"request_vpc_info"` AcceptVpcInfo *VpcInfo `json:"accept_vpc_info"` }
peering对象
func (CreateVpcPeeringOption) String ¶
func (o CreateVpcPeeringOption) String() string
type CreateVpcPeeringRequest ¶
type CreateVpcPeeringRequest struct {
Body *CreateVpcPeeringRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVpcPeeringRequest) String ¶
func (o CreateVpcPeeringRequest) String() string
type CreateVpcPeeringRequestBody ¶
type CreateVpcPeeringRequestBody struct {
Peering *CreateVpcPeeringOption `json:"peering"`
}
func (CreateVpcPeeringRequestBody) String ¶
func (o CreateVpcPeeringRequestBody) String() string
type CreateVpcPeeringResponse ¶
type CreateVpcPeeringResponse struct {
Peering *VpcPeering `json:"peering,omitempty"`
}
Response Object
func (CreateVpcPeeringResponse) String ¶
func (o CreateVpcPeeringResponse) String() string
type CreateVpcRequest ¶
type CreateVpcRequest struct {
Body *CreateVpcRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVpcRequest) String ¶
func (o CreateVpcRequest) String() string
type CreateVpcRequestBody ¶
type CreateVpcRequestBody struct {
Vpc *CreateVpcOption `json:"vpc"`
}
func (CreateVpcRequestBody) String ¶
func (o CreateVpcRequestBody) String() string
type CreateVpcResponse ¶
type CreateVpcResponse struct {
Vpc *Vpc `json:"vpc,omitempty"`
}
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"` }
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
type CreateVpcRouteOptionTypeEnum ¶
type CreateVpcRouteOptionTypeEnum struct {
PEERING CreateVpcRouteOptionType
}
func GetCreateVpcRouteOptionTypeEnum ¶
func GetCreateVpcRouteOptionTypeEnum() CreateVpcRouteOptionTypeEnum
type CreateVpcRouteRequest ¶
type CreateVpcRouteRequest struct {
Body *CreateVpcRouteRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateVpcRouteRequest) String ¶
func (o CreateVpcRouteRequest) String() string
type CreateVpcRouteRequestBody ¶
type CreateVpcRouteRequestBody struct {
Route *CreateVpcRouteOption `json:"route"`
}
func (CreateVpcRouteRequestBody) String ¶
func (o CreateVpcRouteRequestBody) String() string
type CreateVpcRouteResponse ¶
type CreateVpcRouteResponse struct {
Route *VpcRoute `json:"route,omitempty"`
}
Response Object
func (CreateVpcRouteResponse) String ¶
func (o CreateVpcRouteResponse) String() string
type DeletePortRequest ¶
type DeletePortRequest struct {
PortId string `json:"port_id"`
}
Request Object
func (DeletePortRequest) String ¶
func (o DeletePortRequest) String() string
type DeletePortResponse ¶
type DeletePortResponse struct { }
Response Object
func (DeletePortResponse) String ¶
func (o DeletePortResponse) String() string
type DeletePrivateipRequest ¶
type DeletePrivateipRequest struct {
PrivateipId string `json:"privateip_id"`
}
Request Object
func (DeletePrivateipRequest) String ¶
func (o DeletePrivateipRequest) String() string
type DeletePrivateipResponse ¶
type DeletePrivateipResponse struct { }
Response Object
func (DeletePrivateipResponse) String ¶
func (o DeletePrivateipResponse) String() string
type DeleteSecurityGroupRequest ¶
type DeleteSecurityGroupRequest struct {
SecurityGroupId string `json:"security_group_id"`
}
Request Object
func (DeleteSecurityGroupRequest) String ¶
func (o DeleteSecurityGroupRequest) String() string
type DeleteSecurityGroupResponse ¶
type DeleteSecurityGroupResponse struct { }
Response Object
func (DeleteSecurityGroupResponse) String ¶
func (o DeleteSecurityGroupResponse) String() string
type DeleteSecurityGroupRuleRequest ¶
type DeleteSecurityGroupRuleRequest struct {
SecurityGroupRuleId string `json:"security_group_rule_id"`
}
Request Object
func (DeleteSecurityGroupRuleRequest) String ¶
func (o DeleteSecurityGroupRuleRequest) String() string
type DeleteSecurityGroupRuleResponse ¶
type DeleteSecurityGroupRuleResponse struct { }
Response Object
func (DeleteSecurityGroupRuleResponse) String ¶
func (o DeleteSecurityGroupRuleResponse) String() string
type DeleteSubnetRequest ¶
Request Object
func (DeleteSubnetRequest) String ¶
func (o DeleteSubnetRequest) String() string
type DeleteSubnetResponse ¶
type DeleteSubnetResponse struct { }
Response Object
func (DeleteSubnetResponse) String ¶
func (o DeleteSubnetResponse) String() string
type DeleteVpcPeeringRequest ¶
type DeleteVpcPeeringRequest struct {
PeeringId string `json:"peering_id"`
}
Request Object
func (DeleteVpcPeeringRequest) String ¶
func (o DeleteVpcPeeringRequest) String() string
type DeleteVpcPeeringResponse ¶
type DeleteVpcPeeringResponse struct { }
Response Object
func (DeleteVpcPeeringResponse) String ¶
func (o DeleteVpcPeeringResponse) String() string
type DeleteVpcRequest ¶
type DeleteVpcRequest struct {
VpcId string `json:"vpc_id"`
}
Request Object
func (DeleteVpcRequest) String ¶
func (o DeleteVpcRequest) String() string
type DeleteVpcResponse ¶
type DeleteVpcResponse struct { }
Response Object
func (DeleteVpcResponse) String ¶
func (o DeleteVpcResponse) String() string
type DeleteVpcRouteRequest ¶
type DeleteVpcRouteRequest struct {
RouteId string `json:"route_id"`
}
Request Object
func (DeleteVpcRouteRequest) String ¶
func (o DeleteVpcRouteRequest) String() string
type DeleteVpcRouteResponse ¶
type DeleteVpcRouteResponse struct { }
Response Object
func (DeleteVpcRouteResponse) String ¶
func (o DeleteVpcRouteResponse) String() string
type DnsAssignMent ¶
type DnsAssignMent struct { // 端口hostname Hostname *string `json:"hostname,omitempty"` // 端口IP地址 IpAddress *string `json:"ip_address,omitempty"` // 端口内网fqdn Fqdn *string `json:"fqdn,omitempty"` }
func (DnsAssignMent) String ¶
func (o DnsAssignMent) String() string
type ExtraDhcpOpt ¶
type ExtraDhcpOpt struct { // Option名称 OptName *string `json:"opt_name,omitempty"` // Option值 OptValue *string `json:"opt_value,omitempty"` }
func (ExtraDhcpOpt) String ¶
func (o ExtraDhcpOpt) String() string
type ExtraDhcpOption ¶
type ExtraDhcpOption struct { // 功能说明:子网配置的NTP地址名称 约束:目前只支持字段“ntp” OptName ExtraDhcpOptionOptName `json:"opt_name"` // 功能说明:子网配置的NTP地址 约束:目前只支持IPv4地址,每个IP地址以逗号隔开,IP地址个数不能超过4个,不能存在相同地址。该字段为null表示取消该子网NTP的设置,不能为””(空字符串)。 OptValue *string `json:"opt_value,omitempty"` }
子网配置的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
type ExtraDhcpOptionOptNameEnum ¶
type ExtraDhcpOptionOptNameEnum struct {
NTP 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"` }
type ListPortsRequest ¶
type ListPortsRequest struct { Name *string `json:"name,omitempty"` Id *string `json:"id,omitempty"` Limit *int32 `json:"limit,omitempty"` AdminStateUp *bool `json:"admin_state_up,omitempty"` NetworkId *string `json:"network_id,omitempty"` MacAddress *string `json:"mac_address,omitempty"` DeviceId *string `json:"device_id,omitempty"` DeviceOwner *ListPortsRequestDeviceOwner `json:"device_owner,omitempty"` Status *ListPortsRequestStatus `json:"status,omitempty"` Marker *string `json:"marker,omitempty"` FixedIps *string `json:"fixed_ips,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
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
type ListPortsRequestDeviceOwnerEnum ¶
type ListPortsRequestDeviceOwnerEnum struct { NETWORKDHCP ListPortsRequestDeviceOwner NETWORKVIP_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
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"` }
Response Object
func (ListPortsResponse) String ¶
func (o ListPortsResponse) String() string
type ListPrivateipsRequest ¶
type ListPrivateipsRequest struct { SubnetId string `json:"subnet_id"` Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` }
Request Object
func (ListPrivateipsRequest) String ¶
func (o ListPrivateipsRequest) String() string
type ListPrivateipsResponse ¶
type ListPrivateipsResponse struct { // 私有IP列表对象 Privateips []Privateip `json:"privateips,omitempty"` }
Response Object
func (ListPrivateipsResponse) String ¶
func (o ListPrivateipsResponse) String() string
type ListSecurityGroupRulesRequest ¶
type ListSecurityGroupRulesRequest struct { Marker *string `json:"marker,omitempty"` Limit *int32 `json:"limit,omitempty"` SecurityGroupId *string `json:"security_group_id,omitempty"` }
Request Object
func (ListSecurityGroupRulesRequest) String ¶
func (o ListSecurityGroupRulesRequest) String() string
type ListSecurityGroupRulesResponse ¶
type ListSecurityGroupRulesResponse struct { // 安全组规则对象列表 SecurityGroupRules []SecurityGroupRule `json:"security_group_rules,omitempty"` }
Response Object
func (ListSecurityGroupRulesResponse) String ¶
func (o ListSecurityGroupRulesResponse) String() string
type ListSecurityGroupsRequest ¶
type ListSecurityGroupsRequest struct { Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` VpcId *string `json:"vpc_id,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
Request Object
func (ListSecurityGroupsRequest) String ¶
func (o ListSecurityGroupsRequest) String() string
type ListSecurityGroupsResponse ¶
type ListSecurityGroupsResponse struct { // 安全组列表对象 SecurityGroups []SecurityGroup `json:"security_groups,omitempty"` }
Response Object
func (ListSecurityGroupsResponse) String ¶
func (o ListSecurityGroupsResponse) String() string
type ListSubnetsRequest ¶
type ListSubnetsRequest struct { Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` VpcId *string `json:"vpc_id,omitempty"` }
Request Object
func (ListSubnetsRequest) String ¶
func (o ListSubnetsRequest) String() string
type ListSubnetsResponse ¶
type ListSubnetsResponse struct { // subnet对象列表 Subnets []Subnet `json:"subnets,omitempty"` }
Response Object
func (ListSubnetsResponse) String ¶
func (o ListSubnetsResponse) String() string
type ListVpcPeeringsRequest ¶
type ListVpcPeeringsRequest struct { Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Status *ListVpcPeeringsRequestStatus `json:"status,omitempty"` TenantId *string `json:"tenant_id,omitempty"` VpcId *string `json:"vpc_id,omitempty"` }
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
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"` }
Response Object
func (ListVpcPeeringsResponse) String ¶
func (o ListVpcPeeringsResponse) String() string
type ListVpcRoutesRequest ¶
type ListVpcRoutesRequest struct { Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` Id *string `json:"id,omitempty"` Type *ListVpcRoutesRequestType `json:"type,omitempty"` VpcId *string `json:"vpc_id,omitempty"` Destination *string `json:"destination,omitempty"` TenantId *string `json:"tenant_id,omitempty"` }
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
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"` }
Response Object
func (ListVpcRoutesResponse) String ¶
func (o ListVpcRoutesResponse) String() string
type ListVpcsRequest ¶
type ListVpcsRequest struct { Limit *int32 `json:"limit,omitempty"` Marker *string `json:"marker,omitempty"` Id *string `json:"id,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
Request Object
func (ListVpcsRequest) String ¶
func (o ListVpcsRequest) String() string
type ListVpcsResponse ¶
type ListVpcsResponse struct { // vpc对象列表 Vpcs []Vpc `json:"vpcs,omitempty"` }
Response Object
func (ListVpcsResponse) String ¶
func (o ListVpcsResponse) 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"` }
func (NetworkIpAvailability) String ¶
func (o NetworkIpAvailability) String() string
type NeutronPageLink ¶
type NeutronPageLink struct { // API链接 Href string `json:"href"` // API链接与该API版本的关系 Rel string `json:"rel"` }
func (NeutronPageLink) String ¶
func (o NeutronPageLink) String() string
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、network: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"` // 功能说明:vif的详细信息, \"ovs_hybrid_plug\": 是否为ovs/bridge混合模式 约束:管理员权限,普通租户不可指定 BindingvifDetails *interface{} `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"` }
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
type PortDeviceOwnerEnum ¶
type PortDeviceOwnerEnum struct { NETWORKDHCP PortDeviceOwner NETWORKVIP_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
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"` }
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
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
type PrivateipStatusEnum ¶
type PrivateipStatusEnum struct { ACTIVE PrivateipStatus DOWN PrivateipStatus }
func GetPrivateipStatusEnum ¶
func GetPrivateipStatusEnum() PrivateipStatusEnum
type Quota ¶
type Quota struct { // 资源列表对象 Resources []ResourceResult `json:"resources"` }
type RejectVpcPeeringRequest ¶
type RejectVpcPeeringRequest struct {
PeeringId string `json:"peering_id"`
}
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 *string `json:"created_at,omitempty"` // 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss UpdatedAt *string `json:"updated_at,omitempty"` // 对等连接描述 Description *string `json:"description,omitempty"` }
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
type RejectVpcPeeringResponseStatusEnum ¶
type RejectVpcPeeringResponseStatusEnum struct { PENDING_ACCEPTANCE RejectVpcPeeringResponseStatus REJECTED RejectVpcPeeringResponseStatus EXPIRED RejectVpcPeeringResponseStatus DELETED RejectVpcPeeringResponseStatus ACTIVE RejectVpcPeeringResponseStatus }
func GetRejectVpcPeeringResponseStatusEnum ¶
func GetRejectVpcPeeringResponseStatusEnum() RejectVpcPeeringResponseStatusEnum
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"` }
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
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 Route ¶
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"` }
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互斥 RemoteIpPrefix string `json:"remote_ip_prefix"` // 功能说明:对端安全组ID 约束:和remote_ip_prefix互斥 RemoteGroupId string `json:"remote_group_id"` // 安全组所属项目ID TenantId string `json:"tenant_id"` }
func (SecurityGroupRule) String ¶
func (o SecurityGroupRule) String() string
type ShowNetworkIpAvailabilitiesRequest ¶
type ShowNetworkIpAvailabilitiesRequest struct {
NetworkId string `json:"network_id"`
}
Request Object
func (ShowNetworkIpAvailabilitiesRequest) String ¶
func (o ShowNetworkIpAvailabilitiesRequest) String() string
type ShowNetworkIpAvailabilitiesResponse ¶
type ShowNetworkIpAvailabilitiesResponse struct {
NetworkIpAvailability *NetworkIpAvailability `json:"network_ip_availability,omitempty"`
}
Response Object
func (ShowNetworkIpAvailabilitiesResponse) String ¶
func (o ShowNetworkIpAvailabilitiesResponse) String() string
type ShowPortRequest ¶
type ShowPortRequest struct {
PortId string `json:"port_id"`
}
Request Object
func (ShowPortRequest) String ¶
func (o ShowPortRequest) String() string
type ShowPortResponse ¶
type ShowPortResponse struct {
Port *Port `json:"port,omitempty"`
}
Response Object
func (ShowPortResponse) String ¶
func (o ShowPortResponse) String() string
type ShowPrivateipRequest ¶
type ShowPrivateipRequest struct {
PrivateipId string `json:"privateip_id"`
}
Request Object
func (ShowPrivateipRequest) String ¶
func (o ShowPrivateipRequest) String() string
type ShowPrivateipResponse ¶
type ShowPrivateipResponse struct {
Privateip *Privateip `json:"privateip,omitempty"`
}
Response Object
func (ShowPrivateipResponse) String ¶
func (o ShowPrivateipResponse) String() string
type ShowQuotaRequest ¶
type ShowQuotaRequest struct {
Type *ShowQuotaRequestType `json:"type,omitempty"`
}
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
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"`
}
Response Object
func (ShowQuotaResponse) String ¶
func (o ShowQuotaResponse) String() string
type ShowSecurityGroupRequest ¶
type ShowSecurityGroupRequest struct {
SecurityGroupId string `json:"security_group_id"`
}
Request Object
func (ShowSecurityGroupRequest) String ¶
func (o ShowSecurityGroupRequest) String() string
type ShowSecurityGroupResponse ¶
type ShowSecurityGroupResponse struct {
SecurityGroup *SecurityGroup `json:"security_group,omitempty"`
}
Response Object
func (ShowSecurityGroupResponse) String ¶
func (o ShowSecurityGroupResponse) String() string
type ShowSecurityGroupRuleRequest ¶
type ShowSecurityGroupRuleRequest struct {
SecurityGroupRuleId string `json:"security_group_rule_id"`
}
Request Object
func (ShowSecurityGroupRuleRequest) String ¶
func (o ShowSecurityGroupRuleRequest) String() string
type ShowSecurityGroupRuleResponse ¶
type ShowSecurityGroupRuleResponse struct {
SecurityGroupRule *SecurityGroupRule `json:"security_group_rule,omitempty"`
}
Response Object
func (ShowSecurityGroupRuleResponse) String ¶
func (o ShowSecurityGroupRuleResponse) String() string
type ShowSubnetRequest ¶
type ShowSubnetRequest struct {
SubnetId string `json:"subnet_id"`
}
Request Object
func (ShowSubnetRequest) String ¶
func (o ShowSubnetRequest) String() string
type ShowSubnetResponse ¶
type ShowSubnetResponse struct {
Subnet *Subnet `json:"subnet,omitempty"`
}
Response Object
func (ShowSubnetResponse) String ¶
func (o ShowSubnetResponse) String() string
type ShowVpcPeeringRequest ¶
type ShowVpcPeeringRequest struct {
PeeringId string `json:"peering_id"`
}
Request Object
func (ShowVpcPeeringRequest) String ¶
func (o ShowVpcPeeringRequest) String() string
type ShowVpcPeeringResponse ¶
type ShowVpcPeeringResponse struct {
Peering *VpcPeering `json:"peering,omitempty"`
}
Response Object
func (ShowVpcPeeringResponse) String ¶
func (o ShowVpcPeeringResponse) String() string
type ShowVpcRequest ¶
type ShowVpcRequest struct {
VpcId string `json:"vpc_id"`
}
Request Object
func (ShowVpcRequest) String ¶
func (o ShowVpcRequest) String() string
type ShowVpcResponse ¶
type ShowVpcResponse struct {
Vpc *Vpc `json:"vpc,omitempty"`
}
Response Object
func (ShowVpcResponse) String ¶
func (o ShowVpcResponse) String() string
type ShowVpcRouteRequest ¶
type ShowVpcRouteRequest struct {
RouteId string `json:"route_id"`
}
Request Object
func (ShowVpcRouteRequest) String ¶
func (o ShowVpcRouteRequest) String() string
type ShowVpcRouteResponse ¶
type ShowVpcRouteResponse struct {
Route *VpcRoute `json:"route,omitempty"`
}
Response Object
func (ShowVpcRouteResponse) String ¶
func (o ShowVpcRouteResponse) 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地址 ExtraDhcpOpts []ExtraDhcpOption `json:"extra_dhcp_opts"` }
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"` }
func (SubnetIpAvailability) String ¶
func (o SubnetIpAvailability) String() string
type SubnetResult ¶
type SubnetResult struct { // uuid形式的一个资源标识。 Id string `json:"id"` // 功能说明:子网的状态。 取值范围:ACTIVE,UNKNOWN,ERROR ACTIVE表示子网已挂载到ROUTER上 UNKNOWN表示子网还未挂载到ROUTER上 ERROR表示子网状态故障 Status SubnetResultStatus `json:"status"` }
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
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
type SubnetStatusEnum ¶
type SubnetStatusEnum struct { ACTIVE SubnetStatus UNKNOWN SubnetStatus ERROR SubnetStatus }
func GetSubnetStatusEnum ¶
func GetSubnetStatusEnum() SubnetStatusEnum
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"` }
func (UpdatePortOption) String ¶
func (o UpdatePortOption) String() string
type UpdatePortRequest ¶
type UpdatePortRequest struct { PortId string `json:"port_id"` Body *UpdatePortRequestBody `json:"body,omitempty"` }
Request Object
func (UpdatePortRequest) String ¶
func (o UpdatePortRequest) String() string
type UpdatePortRequestBody ¶
type UpdatePortRequestBody struct {
Port *UpdatePortOption `json:"port"`
}
func (UpdatePortRequestBody) String ¶
func (o UpdatePortRequestBody) String() string
type UpdatePortResponse ¶
type UpdatePortResponse struct {
Port *Port `json:"port,omitempty"`
}
Response Object
func (UpdatePortResponse) String ¶
func (o UpdatePortResponse) 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格式 PrimaryDns *string `json:"primary_dns,omitempty"` // 功能说明:子网dns服务器地址2 约束:ip格式 SecondaryDns *string `json:"secondary_dns,omitempty"` // 功能说明:子网dns服务器地址的集合;如果想使用两个以上dns服务器,请使用该字段。 约束:是子网dns服务器地址1跟子网dns服务器地址2的合集的父集 DnsList []string `json:"dnsList,omitempty"` // 子网配置的NTP地址 ExtraDhcpOpts []ExtraDhcpOption `json:"extra_dhcp_opts,omitempty"` }
func (UpdateSubnetOption) String ¶
func (o UpdateSubnetOption) String() string
type UpdateSubnetRequest ¶
type UpdateSubnetRequest struct { VpcId string `json:"vpc_id"` SubnetId string `json:"subnet_id"` Body *UpdateSubnetRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateSubnetRequest) String ¶
func (o UpdateSubnetRequest) String() string
type UpdateSubnetRequestBody ¶
type UpdateSubnetRequestBody struct {
Subnet *UpdateSubnetOption `json:"subnet"`
}
func (UpdateSubnetRequestBody) String ¶
func (o UpdateSubnetRequestBody) String() string
type UpdateSubnetResponse ¶
type UpdateSubnetResponse struct {
Subnet *SubnetResult `json:"subnet,omitempty"`
}
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"` }
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"` }
更新peering对象
func (UpdateVpcPeeringOption) String ¶
func (o UpdateVpcPeeringOption) String() string
type UpdateVpcPeeringRequest ¶
type UpdateVpcPeeringRequest struct { PeeringId string `json:"peering_id"` Body *UpdateVpcPeeringRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateVpcPeeringRequest) String ¶
func (o UpdateVpcPeeringRequest) String() string
type UpdateVpcPeeringRequestBody ¶
type UpdateVpcPeeringRequestBody struct {
Peering *UpdateVpcPeeringOption `json:"peering"`
}
func (UpdateVpcPeeringRequestBody) String ¶
func (o UpdateVpcPeeringRequestBody) String() string
type UpdateVpcPeeringResponse ¶
type UpdateVpcPeeringResponse struct {
Peering *VpcPeering `json:"peering,omitempty"`
}
Response Object
func (UpdateVpcPeeringResponse) String ¶
func (o UpdateVpcPeeringResponse) String() string
type UpdateVpcRequest ¶
type UpdateVpcRequest struct { VpcId string `json:"vpc_id"` Body *UpdateVpcRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateVpcRequest) String ¶
func (o UpdateVpcRequest) String() string
type UpdateVpcRequestBody ¶
type UpdateVpcRequestBody struct {
Vpc *UpdateVpcOption `json:"vpc"`
}
func (UpdateVpcRequestBody) String ¶
func (o UpdateVpcRequestBody) String() string
type UpdateVpcResponse ¶
type UpdateVpcResponse struct {
Vpc *Vpc `json:"vpc,omitempty"`
}
Response Object
func (UpdateVpcResponse) String ¶
func (o UpdateVpcResponse) String() string
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"` }
type VpcInfo ¶
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 string `json:"created_at"` // 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss UpdatedAt string `json:"updated_at"` // 对等连接描述 Description string `json:"description"` }
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
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"` }
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
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 (*VpcStatus) UnmarshalJSON ¶
type VpcStatusEnum ¶
func GetVpcStatusEnum ¶
func GetVpcStatusEnum() VpcStatusEnum
Source Files ¶
- model_accept_vpc_peering_request.go
- model_accept_vpc_peering_response.go
- model_allowed_address_pair.go
- model_create_port_option.go
- model_create_port_request.go
- model_create_port_request_body.go
- model_create_port_response.go
- model_create_privateip_option.go
- model_create_privateip_request.go
- model_create_privateip_request_body.go
- model_create_privateip_response.go
- model_create_security_group_option.go
- model_create_security_group_request.go
- model_create_security_group_request_body.go
- model_create_security_group_response.go
- model_create_security_group_rule_option.go
- model_create_security_group_rule_request.go
- model_create_security_group_rule_request_body.go
- model_create_security_group_rule_response.go
- model_create_subnet_option.go
- model_create_subnet_request.go
- model_create_subnet_request_body.go
- model_create_subnet_response.go
- model_create_vpc_option.go
- model_create_vpc_peering_option.go
- model_create_vpc_peering_request.go
- model_create_vpc_peering_request_body.go
- model_create_vpc_peering_response.go
- model_create_vpc_request.go
- model_create_vpc_request_body.go
- model_create_vpc_response.go
- model_create_vpc_route_option.go
- model_create_vpc_route_request.go
- model_create_vpc_route_request_body.go
- model_create_vpc_route_response.go
- model_delete_port_request.go
- model_delete_port_response.go
- model_delete_privateip_request.go
- model_delete_privateip_response.go
- model_delete_security_group_request.go
- model_delete_security_group_response.go
- model_delete_security_group_rule_request.go
- model_delete_security_group_rule_response.go
- model_delete_subnet_request.go
- model_delete_subnet_response.go
- model_delete_vpc_peering_request.go
- model_delete_vpc_peering_response.go
- model_delete_vpc_request.go
- model_delete_vpc_response.go
- model_delete_vpc_route_request.go
- model_delete_vpc_route_response.go
- model_dns_assign_ment.go
- model_extra_dhcp_opt.go
- model_extra_dhcp_option.go
- model_fixed_ip.go
- model_list_ports_request.go
- model_list_ports_response.go
- model_list_privateips_request.go
- model_list_privateips_response.go
- model_list_security_group_rules_request.go
- model_list_security_group_rules_response.go
- model_list_security_groups_request.go
- model_list_security_groups_response.go
- model_list_subnets_request.go
- model_list_subnets_response.go
- model_list_vpc_peerings_request.go
- model_list_vpc_peerings_response.go
- model_list_vpc_routes_request.go
- model_list_vpc_routes_response.go
- model_list_vpcs_request.go
- model_list_vpcs_response.go
- model_network_ip_availability.go
- model_neutron_page_link.go
- model_port.go
- model_privateip.go
- model_quota.go
- model_reject_vpc_peering_request.go
- model_reject_vpc_peering_response.go
- model_resource_result.go
- model_route.go
- model_security_group.go
- model_security_group_rule.go
- model_show_network_ip_availabilities_request.go
- model_show_network_ip_availabilities_response.go
- model_show_port_request.go
- model_show_port_response.go
- model_show_privateip_request.go
- model_show_privateip_response.go
- model_show_quota_request.go
- model_show_quota_response.go
- model_show_security_group_request.go
- model_show_security_group_response.go
- model_show_security_group_rule_request.go
- model_show_security_group_rule_response.go
- model_show_subnet_request.go
- model_show_subnet_response.go
- model_show_vpc_peering_request.go
- model_show_vpc_peering_response.go
- model_show_vpc_request.go
- model_show_vpc_response.go
- model_show_vpc_route_request.go
- model_show_vpc_route_response.go
- model_subnet.go
- model_subnet_ip_availability.go
- model_subnet_result.go
- model_update_port_option.go
- model_update_port_request.go
- model_update_port_request_body.go
- model_update_port_response.go
- model_update_subnet_option.go
- model_update_subnet_request.go
- model_update_subnet_request_body.go
- model_update_subnet_response.go
- model_update_vpc_option.go
- model_update_vpc_peering_option.go
- model_update_vpc_peering_request.go
- model_update_vpc_peering_request_body.go
- model_update_vpc_peering_response.go
- model_update_vpc_request.go
- model_update_vpc_request_body.go
- model_update_vpc_response.go
- model_vpc.go
- model_vpc_info.go
- model_vpc_peering.go
- model_vpc_route.go