Documentation ¶
Index ¶
- type AcceptVpcPeeringRequest
- type AcceptVpcPeeringResponse
- type AcceptVpcPeeringResponseStatus
- type AcceptVpcPeeringResponseStatusEnum
- type AllowedAddressPair
- type AsscoiateReq
- type AssociateRouteTableAndSubnetReq
- type AssociateRouteTableRequest
- type AssociateRouteTableResponse
- type BatchCreateSubnetTagsRequest
- type BatchCreateSubnetTagsRequestBody
- type BatchCreateSubnetTagsRequestBodyAction
- type BatchCreateSubnetTagsRequestBodyActionEnum
- type BatchCreateSubnetTagsResponse
- type BatchCreateVpcTagsRequest
- type BatchCreateVpcTagsRequestBody
- type BatchCreateVpcTagsRequestBodyAction
- type BatchCreateVpcTagsRequestBodyActionEnum
- type BatchCreateVpcTagsResponse
- type BatchDeleteSubnetTagsRequest
- type BatchDeleteSubnetTagsRequestBody
- type BatchDeleteSubnetTagsRequestBodyAction
- type BatchDeleteSubnetTagsRequestBodyActionEnum
- type BatchDeleteSubnetTagsResponse
- type BatchDeleteVpcTagsRequest
- type BatchDeleteVpcTagsRequestBody
- type BatchDeleteVpcTagsRequestBodyAction
- type BatchDeleteVpcTagsRequestBodyActionEnum
- type BatchDeleteVpcTagsResponse
- type BindingVifDetails
- type CreatePortOption
- type CreatePortRequest
- type CreatePortRequestBody
- type CreatePortResponse
- type CreatePrivateipOption
- type CreatePrivateipRequest
- type CreatePrivateipRequestBody
- type CreatePrivateipResponse
- type CreateRouteTableReq
- type CreateRouteTableRequest
- type CreateRouteTableResponse
- type CreateRoutetableReqBody
- 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 CreateSubnetTagRequest
- type CreateSubnetTagRequestBody
- type CreateSubnetTagResponse
- type CreateVpcOption
- type CreateVpcPeeringOption
- type CreateVpcPeeringRequest
- type CreateVpcPeeringRequestBody
- type CreateVpcPeeringResponse
- type CreateVpcRequest
- type CreateVpcRequestBody
- type CreateVpcResourceTagRequest
- type CreateVpcResourceTagRequestBody
- type CreateVpcResourceTagResponse
- type CreateVpcResponse
- type CreateVpcRouteOption
- type CreateVpcRouteOptionType
- type CreateVpcRouteOptionTypeEnum
- type CreateVpcRouteRequest
- type CreateVpcRouteRequestBody
- type CreateVpcRouteResponse
- type DeletePortRequest
- type DeletePortResponse
- type DeletePrivateipRequest
- type DeletePrivateipResponse
- type DeleteRouteTableRequest
- type DeleteRouteTableResponse
- type DeleteSecurityGroupRequest
- type DeleteSecurityGroupResponse
- type DeleteSecurityGroupRuleRequest
- type DeleteSecurityGroupRuleResponse
- type DeleteSubnetRequest
- type DeleteSubnetResponse
- type DeleteSubnetTagRequest
- type DeleteSubnetTagResponse
- type DeleteVpcPeeringRequest
- type DeleteVpcPeeringResponse
- type DeleteVpcRequest
- type DeleteVpcResponse
- type DeleteVpcRouteRequest
- type DeleteVpcRouteResponse
- type DeleteVpcTagRequest
- type DeleteVpcTagResponse
- type DisassociateRouteTableRequest
- type DisassociateRouteTableResponse
- 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 ListResourceResp
- type ListRouteTablesRequest
- type ListRouteTablesResponse
- type ListSecurityGroupRulesRequest
- type ListSecurityGroupRulesResponse
- type ListSecurityGroupsRequest
- type ListSecurityGroupsResponse
- type ListSubnetTagsRequest
- type ListSubnetTagsResponse
- type ListSubnetsByTagsRequest
- type ListSubnetsByTagsRequestBody
- type ListSubnetsByTagsRequestBodyAction
- type ListSubnetsByTagsRequestBodyActionEnum
- type ListSubnetsByTagsResponse
- type ListSubnetsRequest
- type ListSubnetsResponse
- type ListTag
- type ListVpcPeeringsRequest
- type ListVpcPeeringsRequestStatus
- type ListVpcPeeringsRequestStatusEnum
- type ListVpcPeeringsResponse
- type ListVpcRoutesRequest
- type ListVpcRoutesRequestType
- type ListVpcRoutesRequestTypeEnum
- type ListVpcRoutesResponse
- type ListVpcTagsRequest
- type ListVpcTagsResponse
- type ListVpcsByTagsRequest
- type ListVpcsByTagsRequestBody
- type ListVpcsByTagsRequestBodyAction
- type ListVpcsByTagsRequestBodyActionEnum
- type ListVpcsByTagsResponse
- type ListVpcsRequest
- type ListVpcsResponse
- type Match
- type NetworkIpAvailability
- type NeutronAddFirewallRuleRequest
- type NeutronAddFirewallRuleResponse
- type NeutronCreateFirewallGroupOption
- type NeutronCreateFirewallGroupRequest
- type NeutronCreateFirewallGroupRequestBody
- type NeutronCreateFirewallGroupResponse
- type NeutronCreateFirewallPolicyOption
- type NeutronCreateFirewallPolicyRequest
- type NeutronCreateFirewallPolicyRequestBody
- type NeutronCreateFirewallPolicyResponse
- type NeutronCreateFirewallRuleOption
- type NeutronCreateFirewallRuleOptionAction
- type NeutronCreateFirewallRuleOptionActionEnum
- type NeutronCreateFirewallRuleRequest
- type NeutronCreateFirewallRuleRequestBody
- type NeutronCreateFirewallRuleResponse
- type NeutronCreateSecurityGroupOption
- type NeutronCreateSecurityGroupRequest
- type NeutronCreateSecurityGroupRequestBody
- type NeutronCreateSecurityGroupResponse
- type NeutronCreateSecurityGroupRuleOption
- type NeutronCreateSecurityGroupRuleOptionDirection
- type NeutronCreateSecurityGroupRuleOptionDirectionEnum
- type NeutronCreateSecurityGroupRuleOptionEthertype
- type NeutronCreateSecurityGroupRuleOptionEthertypeEnum
- type NeutronCreateSecurityGroupRuleRequest
- type NeutronCreateSecurityGroupRuleRequestBody
- type NeutronCreateSecurityGroupRuleResponse
- type NeutronDeleteFirewallGroupRequest
- type NeutronDeleteFirewallGroupResponse
- type NeutronDeleteFirewallPolicyRequest
- type NeutronDeleteFirewallPolicyResponse
- type NeutronDeleteFirewallRuleRequest
- type NeutronDeleteFirewallRuleResponse
- type NeutronDeleteSecurityGroupRequest
- type NeutronDeleteSecurityGroupResponse
- type NeutronDeleteSecurityGroupRuleRequest
- type NeutronDeleteSecurityGroupRuleResponse
- type NeutronFirewallGroup
- type NeutronFirewallPolicy
- type NeutronFirewallRule
- type NeutronFirewallRuleAction
- type NeutronFirewallRuleActionEnum
- type NeutronInsertFirewallRuleRequestBody
- type NeutronListFirewallGroupsRequest
- type NeutronListFirewallGroupsResponse
- type NeutronListFirewallPoliciesRequest
- type NeutronListFirewallPoliciesResponse
- type NeutronListFirewallRulesRequest
- type NeutronListFirewallRulesResponse
- type NeutronListSecurityGroupRulesRequest
- type NeutronListSecurityGroupRulesResponse
- type NeutronListSecurityGroupsRequest
- type NeutronListSecurityGroupsResponse
- type NeutronPageLink
- type NeutronRemoveFirewallRuleRequest
- type NeutronRemoveFirewallRuleRequestBody
- type NeutronRemoveFirewallRuleResponse
- type NeutronSecurityGroup
- type NeutronSecurityGroupRule
- type NeutronSecurityGroupRuleDirection
- type NeutronSecurityGroupRuleDirectionEnum
- type NeutronShowFirewallGroupRequest
- type NeutronShowFirewallGroupResponse
- type NeutronShowFirewallPolicyRequest
- type NeutronShowFirewallPolicyResponse
- type NeutronShowFirewallRuleRequest
- type NeutronShowFirewallRuleResponse
- type NeutronShowSecurityGroupRequest
- type NeutronShowSecurityGroupResponse
- type NeutronShowSecurityGroupRuleRequest
- type NeutronShowSecurityGroupRuleResponse
- type NeutronUpdateFirewallGroupOption
- type NeutronUpdateFirewallGroupRequest
- type NeutronUpdateFirewallGroupRequestBody
- type NeutronUpdateFirewallGroupResponse
- type NeutronUpdateFirewallPolicyOption
- type NeutronUpdateFirewallPolicyRequest
- type NeutronUpdateFirewallPolicyRequestBody
- type NeutronUpdateFirewallPolicyResponse
- type NeutronUpdateFirewallRuleOption
- type NeutronUpdateFirewallRuleOptionAction
- type NeutronUpdateFirewallRuleOptionActionEnum
- type NeutronUpdateFirewallRuleRequest
- type NeutronUpdateFirewallRuleRequestBody
- type NeutronUpdateFirewallRuleResponse
- type NeutronUpdateSecurityGroupOption
- type NeutronUpdateSecurityGroupRequest
- type NeutronUpdateSecurityGroupRequestBody
- type NeutronUpdateSecurityGroupResponse
- 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 ResourceTag
- type Route
- type RouteTableListResp
- type RouteTableResp
- type RouteTableRoute
- type RoutetableAssociateReqbody
- 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 ShowRouteTableRequest
- type ShowRouteTableResponse
- type ShowSecurityGroupRequest
- type ShowSecurityGroupResponse
- type ShowSecurityGroupRuleRequest
- type ShowSecurityGroupRuleResponse
- type ShowSubnetRequest
- type ShowSubnetResponse
- type ShowSubnetTagsRequest
- type ShowSubnetTagsResponse
- type ShowVpcPeeringRequest
- type ShowVpcPeeringResponse
- type ShowVpcRequest
- type ShowVpcResponse
- type ShowVpcRouteRequest
- type ShowVpcRouteResponse
- type ShowVpcTagsRequest
- type ShowVpcTagsResponse
- type Subnet
- type SubnetIpAvailability
- type SubnetList
- type SubnetResult
- type SubnetResultStatus
- type SubnetResultStatusEnum
- type SubnetStatus
- type SubnetStatusEnum
- type UpdatePortOption
- type UpdatePortRequest
- type UpdatePortRequestBody
- type UpdatePortResponse
- type UpdateRouteTableReq
- type UpdateRouteTableRequest
- type UpdateRouteTableResponse
- type UpdateRoutetableReqBody
- 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 { // 对等连接ID 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 *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:"-"` }
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
func (c AcceptVpcPeeringResponseStatus) Value() string
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配置一个单独的安全组。 如果填写allowed_address_pairs参数,则ip_address是必选参数。 IpAddress string `json:"ip_address"` // mac地址 MacAddress *string `json:"mac_address,omitempty"` }
func (AllowedAddressPair) String ¶
func (o AllowedAddressPair) String() string
type AsscoiateReq ¶ added in v0.0.55
type AsscoiateReq struct {
Subnets *AssociateRouteTableAndSubnetReq `json:"subnets"`
}
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"` }
func (AssociateRouteTableAndSubnetReq) String ¶ added in v0.0.55
func (o AssociateRouteTableAndSubnetReq) String() string
type AssociateRouteTableRequest ¶ added in v0.0.55
type AssociateRouteTableRequest struct { // 路由表ID RoutetableId string `json:"routetable_id"` Body *RoutetableAssociateReqbody `json:"body,omitempty"` }
Request Object
func (AssociateRouteTableRequest) String ¶ added in v0.0.55
func (o AssociateRouteTableRequest) String() string
type AssociateRouteTableResponse ¶ added in v0.0.55
type AssociateRouteTableResponse struct { Routetable *RouteTableResp `json:"routetable,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AssociateRouteTableResponse) String ¶ added in v0.0.55
func (o AssociateRouteTableResponse) String() string
type BatchCreateSubnetTagsRequest ¶
type BatchCreateSubnetTagsRequest struct { // 子网ID SubnetId string `json:"subnet_id"` Body *BatchCreateSubnetTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchCreateSubnetTagsRequest) String ¶
func (o BatchCreateSubnetTagsRequest) String() string
type BatchCreateSubnetTagsRequestBody ¶
type BatchCreateSubnetTagsRequestBody struct { // 操作标识 Action BatchCreateSubnetTagsRequestBodyAction `json:"action"` // 标签列表 Tags []ResourceTag `json:"tags"` }
This is a auto create Body Object
func (BatchCreateSubnetTagsRequestBody) String ¶
func (o BatchCreateSubnetTagsRequestBody) String() 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
func (c BatchCreateSubnetTagsRequestBodyAction) Value() string
type BatchCreateSubnetTagsRequestBodyActionEnum ¶
type BatchCreateSubnetTagsRequestBodyActionEnum struct {
CREATE BatchCreateSubnetTagsRequestBodyAction
}
func GetBatchCreateSubnetTagsRequestBodyActionEnum ¶
func GetBatchCreateSubnetTagsRequestBodyActionEnum() BatchCreateSubnetTagsRequestBodyActionEnum
type BatchCreateSubnetTagsResponse ¶
type BatchCreateSubnetTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchCreateSubnetTagsResponse) String ¶
func (o BatchCreateSubnetTagsResponse) String() string
type BatchCreateVpcTagsRequest ¶
type BatchCreateVpcTagsRequest struct { // 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在 VpcId string `json:"vpc_id"` Body *BatchCreateVpcTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchCreateVpcTagsRequest) String ¶
func (o BatchCreateVpcTagsRequest) String() string
type BatchCreateVpcTagsRequestBody ¶
type BatchCreateVpcTagsRequestBody struct { // 功能说明:操作标识 取值范围:create Action BatchCreateVpcTagsRequestBodyAction `json:"action"` // 功能说明:标签列表 Tags []ResourceTag `json:"tags"` }
This is a auto create Body Object
func (BatchCreateVpcTagsRequestBody) String ¶
func (o BatchCreateVpcTagsRequestBody) String() 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
func (c BatchCreateVpcTagsRequestBodyAction) Value() string
type BatchCreateVpcTagsRequestBodyActionEnum ¶
type BatchCreateVpcTagsRequestBodyActionEnum struct {
CREATE BatchCreateVpcTagsRequestBodyAction
}
func GetBatchCreateVpcTagsRequestBodyActionEnum ¶
func GetBatchCreateVpcTagsRequestBodyActionEnum() BatchCreateVpcTagsRequestBodyActionEnum
type BatchCreateVpcTagsResponse ¶
type BatchCreateVpcTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchCreateVpcTagsResponse) String ¶
func (o BatchCreateVpcTagsResponse) String() string
type BatchDeleteSubnetTagsRequest ¶
type BatchDeleteSubnetTagsRequest struct { // 子网ID SubnetId string `json:"subnet_id"` Body *BatchDeleteSubnetTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchDeleteSubnetTagsRequest) String ¶
func (o BatchDeleteSubnetTagsRequest) String() string
type BatchDeleteSubnetTagsRequestBody ¶
type BatchDeleteSubnetTagsRequestBody struct { // 功能说明:操作标识 取值范围:delete Action BatchDeleteSubnetTagsRequestBodyAction `json:"action"` // 标签列表 Tags []ResourceTag `json:"tags"` }
This is a auto create Body Object
func (BatchDeleteSubnetTagsRequestBody) String ¶
func (o BatchDeleteSubnetTagsRequestBody) String() 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
func (c BatchDeleteSubnetTagsRequestBodyAction) Value() string
type BatchDeleteSubnetTagsRequestBodyActionEnum ¶
type BatchDeleteSubnetTagsRequestBodyActionEnum struct {
DELETE BatchDeleteSubnetTagsRequestBodyAction
}
func GetBatchDeleteSubnetTagsRequestBodyActionEnum ¶
func GetBatchDeleteSubnetTagsRequestBodyActionEnum() BatchDeleteSubnetTagsRequestBodyActionEnum
type BatchDeleteSubnetTagsResponse ¶
type BatchDeleteSubnetTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchDeleteSubnetTagsResponse) String ¶
func (o BatchDeleteSubnetTagsResponse) String() string
type BatchDeleteVpcTagsRequest ¶
type BatchDeleteVpcTagsRequest struct { // 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在 VpcId string `json:"vpc_id"` Body *BatchDeleteVpcTagsRequestBody `json:"body,omitempty"` }
Request Object
func (BatchDeleteVpcTagsRequest) String ¶
func (o BatchDeleteVpcTagsRequest) String() string
type BatchDeleteVpcTagsRequestBody ¶
type BatchDeleteVpcTagsRequestBody struct { // 操作标识 Action BatchDeleteVpcTagsRequestBodyAction `json:"action"` // 标签列表 Tags []ResourceTag `json:"tags"` }
This is a auto create Body Object
func (BatchDeleteVpcTagsRequestBody) String ¶
func (o BatchDeleteVpcTagsRequestBody) String() 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
func (c BatchDeleteVpcTagsRequestBodyAction) Value() string
type BatchDeleteVpcTagsRequestBodyActionEnum ¶
type BatchDeleteVpcTagsRequestBodyActionEnum struct {
DELETE BatchDeleteVpcTagsRequestBodyAction
}
func GetBatchDeleteVpcTagsRequestBodyActionEnum ¶
func GetBatchDeleteVpcTagsRequestBodyActionEnum() BatchDeleteVpcTagsRequestBodyActionEnum
type BatchDeleteVpcTagsResponse ¶
type BatchDeleteVpcTagsResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (BatchDeleteVpcTagsResponse) String ¶
func (o BatchDeleteVpcTagsResponse) String() string
type BindingVifDetails ¶ added in v0.0.55
type BindingVifDetails struct { // 功能说明:取值为true,表示是虚拟机的主网卡。 PrimaryInterface *bool `json:"primary_interface,omitempty"` }
func (BindingVifDetails) String ¶ added in v0.0.55
func (o BindingVifDetails) 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 ¶
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"` HttpStatusCode int `json:"-"` }
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"` }
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"`
}
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:"-"` }
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"`
}
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"` }
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"` HttpStatusCode int `json:"-"` }
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"` HttpStatusCode int `json:"-"` }
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地址 默认值:不填时为空 [内网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"` }
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"` HttpStatusCode int `json:"-"` }
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"` }
Request Object
func (CreateSubnetTagRequest) String ¶
func (o CreateSubnetTagRequest) String() string
type CreateSubnetTagRequestBody ¶
type CreateSubnetTagRequestBody struct {
Tag *ResourceTag `json:"tag"`
}
This is a auto create Body Object
func (CreateSubnetTagRequestBody) String ¶
func (o CreateSubnetTagRequestBody) String() string
type CreateSubnetTagResponse ¶
type CreateSubnetTagResponse struct {
HttpStatusCode int `json:"-"`
}
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对象
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"` HttpStatusCode int `json:"-"` }
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 CreateVpcResourceTagRequest ¶
type CreateVpcResourceTagRequest struct { // 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在 VpcId string `json:"vpc_id"` Body *CreateVpcResourceTagRequestBody `json:"body,omitempty"` }
Request Object
func (CreateVpcResourceTagRequest) String ¶
func (o CreateVpcResourceTagRequest) String() string
type CreateVpcResourceTagRequestBody ¶
type CreateVpcResourceTagRequestBody struct {
Tag *ResourceTag `json:"tag"`
}
This is a auto create Body Object
func (CreateVpcResourceTagRequestBody) String ¶
func (o CreateVpcResourceTagRequestBody) String() string
type CreateVpcResourceTagResponse ¶
type CreateVpcResourceTagResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (CreateVpcResourceTagResponse) String ¶
func (o CreateVpcResourceTagResponse) String() string
type 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"` }
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"`
}
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"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateVpcRouteResponse) String ¶
func (o CreateVpcRouteResponse) String() string
type DeletePortRequest ¶
type DeletePortRequest struct { // 端口ID PortId string `json:"port_id"` }
Request Object
func (DeletePortRequest) String ¶
func (o DeletePortRequest) String() string
type DeletePortResponse ¶
type DeletePortResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeletePortResponse) String ¶
func (o DeletePortResponse) String() string
type DeletePrivateipRequest ¶
type DeletePrivateipRequest struct { // 私有IP ID PrivateipId string `json:"privateip_id"` }
Request Object
func (DeletePrivateipRequest) String ¶
func (o DeletePrivateipRequest) String() string
type DeletePrivateipResponse ¶
type DeletePrivateipResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
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:"-"`
}
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"` }
Request Object
func (DeleteSecurityGroupRequest) String ¶
func (o DeleteSecurityGroupRequest) String() string
type DeleteSecurityGroupResponse ¶
type DeleteSecurityGroupResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteSecurityGroupResponse) String ¶
func (o DeleteSecurityGroupResponse) String() string
type DeleteSecurityGroupRuleRequest ¶
type DeleteSecurityGroupRuleRequest struct { // 安全组规则ID SecurityGroupRuleId string `json:"security_group_rule_id"` }
Request Object
func (DeleteSecurityGroupRuleRequest) String ¶
func (o DeleteSecurityGroupRuleRequest) String() string
type DeleteSecurityGroupRuleResponse ¶
type DeleteSecurityGroupRuleResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteSecurityGroupRuleResponse) String ¶
func (o DeleteSecurityGroupRuleResponse) String() string
type DeleteSubnetRequest ¶
type DeleteSubnetRequest struct { // 子网对应的vpc_id VpcId string `json:"vpc_id"` // 子网ID SubnetId string `json:"subnet_id"` }
Request Object
func (DeleteSubnetRequest) String ¶
func (o DeleteSubnetRequest) String() string
type DeleteSubnetResponse ¶
type DeleteSubnetResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
Request Object
func (DeleteSubnetTagRequest) String ¶
func (o DeleteSubnetTagRequest) String() string
type DeleteSubnetTagResponse ¶
type DeleteSubnetTagResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteSubnetTagResponse) String ¶
func (o DeleteSubnetTagResponse) String() string
type DeleteVpcPeeringRequest ¶
type DeleteVpcPeeringRequest struct { // 对等连接ID PeeringId string `json:"peering_id"` }
Request Object
func (DeleteVpcPeeringRequest) String ¶
func (o DeleteVpcPeeringRequest) String() string
type DeleteVpcPeeringResponse ¶
type DeleteVpcPeeringResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteVpcPeeringResponse) String ¶
func (o DeleteVpcPeeringResponse) String() string
type DeleteVpcRequest ¶
type DeleteVpcRequest struct { // 虚拟私有云ID VpcId string `json:"vpc_id"` }
Request Object
func (DeleteVpcRequest) String ¶
func (o DeleteVpcRequest) String() string
type DeleteVpcResponse ¶
type DeleteVpcResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteVpcResponse) String ¶
func (o DeleteVpcResponse) String() string
type DeleteVpcRouteRequest ¶
type DeleteVpcRouteRequest struct { // 路由ID RouteId string `json:"route_id"` }
Request Object
func (DeleteVpcRouteRequest) String ¶
func (o DeleteVpcRouteRequest) String() string
type DeleteVpcRouteResponse ¶
type DeleteVpcRouteResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
Request Object
func (DeleteVpcTagRequest) String ¶
func (o DeleteVpcTagRequest) String() string
type DeleteVpcTagResponse ¶
type DeleteVpcTagResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
Request Object
func (DisassociateRouteTableRequest) String ¶ added in v0.0.55
func (o DisassociateRouteTableRequest) String() string
type DisassociateRouteTableResponse ¶ added in v0.0.55
type DisassociateRouteTableResponse struct { Routetable *RouteTableResp `json:"routetable,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DisassociateRouteTableResponse) String ¶ added in v0.0.55
func (o DisassociateRouteTableResponse) 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
func (ExtraDhcpOptionOptName) Value ¶ added in v0.0.90
func (c ExtraDhcpOptionOptName) Value() string
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过滤查询 取值范围:最大长度不超过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,为空时查询第一页 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"` }
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
func (c ListPortsRequestDeviceOwner) Value() string
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:"-"` }
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"` }
Request Object
func (ListPrivateipsRequest) String ¶
func (o ListPrivateipsRequest) String() string
type ListPrivateipsResponse ¶
type ListPrivateipsResponse struct { // 私有IP列表对象 Privateips *[]Privateip `json:"privateips,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListPrivateipsResponse) String ¶
func (o ListPrivateipsResponse) String() string
type ListResourceResp ¶
type ListResourceResp struct { // 资源详情。 资源对象,用于扩展。默认为空 ResouceDetail *interface{} `json:"resouce_detail"` // 资源ID ResourceId string `json:"resource_id"` // 资源名称,没有默认为空字符串 ResourceName string `json:"resource_name"` // 标签列表,没有标签默认为空数组 Tags *[]ResourceTag `json:"tags,omitempty"` }
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"` }
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:"-"` }
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"` }
Request Object
func (ListSecurityGroupRulesRequest) String ¶
func (o ListSecurityGroupRulesRequest) String() string
type ListSecurityGroupRulesResponse ¶
type ListSecurityGroupRulesResponse struct { // 安全组规则对象列表 SecurityGroupRules *[]SecurityGroupRule `json:"security_group_rules,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListSecurityGroupRulesResponse) String ¶
func (o ListSecurityGroupRulesResponse) String() 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"` }
Request Object
func (ListSecurityGroupsRequest) String ¶
func (o ListSecurityGroupsRequest) String() string
type ListSecurityGroupsResponse ¶
type ListSecurityGroupsResponse struct { // 安全组列表对象 SecurityGroups *[]SecurityGroup `json:"security_groups,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListSecurityGroupsResponse) String ¶
func (o ListSecurityGroupsResponse) String() string
type ListSubnetTagsRequest ¶
type ListSubnetTagsRequest struct { }
Request Object
func (ListSubnetTagsRequest) String ¶
func (o ListSubnetTagsRequest) String() string
type ListSubnetTagsResponse ¶
type ListSubnetTagsResponse struct { // tag对象列表 Tags *[]ListTag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListSubnetTagsResponse) String ¶
func (o ListSubnetTagsResponse) String() string
type ListSubnetsByTagsRequest ¶
type ListSubnetsByTagsRequest struct {
Body *ListSubnetsByTagsRequestBody `json:"body,omitempty"`
}
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"` }
This is a auto create Body Object
func (ListSubnetsByTagsRequestBody) String ¶
func (o ListSubnetsByTagsRequestBody) String() 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
func (c ListSubnetsByTagsRequestBodyAction) Value() string
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:"-"` }
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"` }
Request Object
func (ListSubnetsRequest) String ¶
func (o ListSubnetsRequest) String() string
type ListSubnetsResponse ¶
type ListSubnetsResponse struct { // subnet对象列表 Subnets *[]Subnet `json:"subnets,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListSubnetsResponse) String ¶
func (o ListSubnetsResponse) String() string
type ListTag ¶
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"` }
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
func (c ListVpcPeeringsRequestStatus) Value() string
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:"-"` }
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"` }
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:"-"` }
Response Object
func (ListVpcRoutesResponse) String ¶
func (o ListVpcRoutesResponse) String() string
type ListVpcTagsRequest ¶
type ListVpcTagsRequest struct { }
Request Object
func (ListVpcTagsRequest) String ¶
func (o ListVpcTagsRequest) String() string
type ListVpcTagsResponse ¶
type ListVpcTagsResponse struct { // tag对象列表 Tags *[]ListTag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVpcTagsResponse) String ¶
func (o ListVpcTagsResponse) String() string
type ListVpcsByTagsRequest ¶
type ListVpcsByTagsRequest struct {
Body *ListVpcsByTagsRequestBody `json:"body,omitempty"`
}
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"` }
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
func (c ListVpcsByTagsRequestBodyAction) Value() string
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:"-"` }
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"` }
Request Object
func (ListVpcsRequest) String ¶
func (o ListVpcsRequest) String() string
type ListVpcsResponse ¶
type ListVpcsResponse struct { // vpc对象列表 Vpcs *[]Vpc `json:"vpcs,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListVpcsResponse) String ¶
func (o ListVpcsResponse) String() string
type Match ¶
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 NeutronAddFirewallRuleRequest ¶
type NeutronAddFirewallRuleRequest struct { // 网络ACL防火墙策略ID FirewallPolicyId string `json:"firewall_policy_id"` Body *NeutronInsertFirewallRuleRequestBody `json:"body,omitempty"` }
Request Object
func (NeutronAddFirewallRuleRequest) String ¶
func (o NeutronAddFirewallRuleRequest) String() 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:"-"` }
Response Object
func (NeutronAddFirewallRuleResponse) String ¶
func (o NeutronAddFirewallRuleResponse) String() string
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"` }
func (NeutronCreateFirewallGroupOption) String ¶
func (o NeutronCreateFirewallGroupOption) String() string
type NeutronCreateFirewallGroupRequest ¶
type NeutronCreateFirewallGroupRequest struct {
Body *NeutronCreateFirewallGroupRequestBody `json:"body,omitempty"`
}
Request Object
func (NeutronCreateFirewallGroupRequest) String ¶
func (o NeutronCreateFirewallGroupRequest) String() string
type NeutronCreateFirewallGroupRequestBody ¶
type NeutronCreateFirewallGroupRequestBody struct {
FirewallGroup *NeutronCreateFirewallGroupOption `json:"firewall_group"`
}
func (NeutronCreateFirewallGroupRequestBody) String ¶
func (o NeutronCreateFirewallGroupRequestBody) String() string
type NeutronCreateFirewallGroupResponse ¶
type NeutronCreateFirewallGroupResponse struct { FirewallGroup *NeutronFirewallGroup `json:"firewall_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronCreateFirewallGroupResponse) String ¶
func (o NeutronCreateFirewallGroupResponse) String() 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"` }
func (NeutronCreateFirewallPolicyOption) String ¶
func (o NeutronCreateFirewallPolicyOption) String() string
type NeutronCreateFirewallPolicyRequest ¶
type NeutronCreateFirewallPolicyRequest struct {
Body *NeutronCreateFirewallPolicyRequestBody `json:"body,omitempty"`
}
Request Object
func (NeutronCreateFirewallPolicyRequest) String ¶
func (o NeutronCreateFirewallPolicyRequest) String() string
type NeutronCreateFirewallPolicyRequestBody ¶
type NeutronCreateFirewallPolicyRequestBody struct {
FirewallPolicy *NeutronCreateFirewallPolicyOption `json:"firewall_policy"`
}
func (NeutronCreateFirewallPolicyRequestBody) String ¶
func (o NeutronCreateFirewallPolicyRequestBody) String() string
type NeutronCreateFirewallPolicyResponse ¶
type NeutronCreateFirewallPolicyResponse struct { FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronCreateFirewallPolicyResponse) String ¶
func (o NeutronCreateFirewallPolicyResponse) String() 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"` }
func (NeutronCreateFirewallRuleOption) String ¶
func (o NeutronCreateFirewallRuleOption) String() 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
func (c NeutronCreateFirewallRuleOptionAction) Value() string
type NeutronCreateFirewallRuleOptionActionEnum ¶
type NeutronCreateFirewallRuleOptionActionEnum struct { DENY NeutronCreateFirewallRuleOptionAction ALLOW NeutronCreateFirewallRuleOptionAction }
func GetNeutronCreateFirewallRuleOptionActionEnum ¶
func GetNeutronCreateFirewallRuleOptionActionEnum() NeutronCreateFirewallRuleOptionActionEnum
type NeutronCreateFirewallRuleRequest ¶
type NeutronCreateFirewallRuleRequest struct {
Body *NeutronCreateFirewallRuleRequestBody `json:"body,omitempty"`
}
Request Object
func (NeutronCreateFirewallRuleRequest) String ¶
func (o NeutronCreateFirewallRuleRequest) String() string
type NeutronCreateFirewallRuleRequestBody ¶
type NeutronCreateFirewallRuleRequestBody struct {
FirewallRule *NeutronCreateFirewallRuleOption `json:"firewall_rule"`
}
func (NeutronCreateFirewallRuleRequestBody) String ¶
func (o NeutronCreateFirewallRuleRequestBody) String() string
type NeutronCreateFirewallRuleResponse ¶
type NeutronCreateFirewallRuleResponse struct { FirewallRule *NeutronFirewallRule `json:"firewall_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronCreateFirewallRuleResponse) String ¶
func (o NeutronCreateFirewallRuleResponse) String() string
type NeutronCreateSecurityGroupOption ¶
type NeutronCreateSecurityGroupOption struct { // 功能说明:安全组描述 取值范围:0-255个字符 Description *string `json:"description,omitempty"` // 功能说明:安全组名称 取值范围:0-255个字符 约束:不允许为“default” Name *string `json:"name,omitempty"` }
func (NeutronCreateSecurityGroupOption) String ¶
func (o NeutronCreateSecurityGroupOption) String() string
type NeutronCreateSecurityGroupRequest ¶
type NeutronCreateSecurityGroupRequest struct {
Body *NeutronCreateSecurityGroupRequestBody `json:"body,omitempty"`
}
Request Object
func (NeutronCreateSecurityGroupRequest) String ¶
func (o NeutronCreateSecurityGroupRequest) String() string
type NeutronCreateSecurityGroupRequestBody ¶
type NeutronCreateSecurityGroupRequestBody struct {
SecurityGroup *NeutronCreateSecurityGroupOption `json:"security_group"`
}
func (NeutronCreateSecurityGroupRequestBody) String ¶
func (o NeutronCreateSecurityGroupRequestBody) String() string
type NeutronCreateSecurityGroupResponse ¶
type NeutronCreateSecurityGroupResponse struct { SecurityGroup *NeutronSecurityGroup `json:"security_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronCreateSecurityGroupResponse) String ¶
func (o NeutronCreateSecurityGroupResponse) String() 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 SecurityGroupId string `json:"security_group_id"` }
func (NeutronCreateSecurityGroupRuleOption) String ¶
func (o NeutronCreateSecurityGroupRuleOption) String() string
type NeutronCreateSecurityGroupRuleOptionDirection ¶
type NeutronCreateSecurityGroupRuleOptionDirection struct {
// contains filtered or unexported fields
}
func (NeutronCreateSecurityGroupRuleOptionDirection) MarshalJSON ¶
func (c NeutronCreateSecurityGroupRuleOptionDirection) MarshalJSON() ([]byte, error)
func (*NeutronCreateSecurityGroupRuleOptionDirection) UnmarshalJSON ¶
func (c *NeutronCreateSecurityGroupRuleOptionDirection) UnmarshalJSON(b []byte) error
func (NeutronCreateSecurityGroupRuleOptionDirection) Value ¶ added in v0.0.90
func (c NeutronCreateSecurityGroupRuleOptionDirection) Value() string
type NeutronCreateSecurityGroupRuleOptionDirectionEnum ¶
type NeutronCreateSecurityGroupRuleOptionDirectionEnum struct { INGRESS NeutronCreateSecurityGroupRuleOptionDirection EGRESS NeutronCreateSecurityGroupRuleOptionDirection }
func GetNeutronCreateSecurityGroupRuleOptionDirectionEnum ¶
func GetNeutronCreateSecurityGroupRuleOptionDirectionEnum() NeutronCreateSecurityGroupRuleOptionDirectionEnum
type NeutronCreateSecurityGroupRuleOptionEthertype ¶
type NeutronCreateSecurityGroupRuleOptionEthertype struct {
// contains filtered or unexported fields
}
func (NeutronCreateSecurityGroupRuleOptionEthertype) MarshalJSON ¶
func (c NeutronCreateSecurityGroupRuleOptionEthertype) MarshalJSON() ([]byte, error)
func (*NeutronCreateSecurityGroupRuleOptionEthertype) UnmarshalJSON ¶
func (c *NeutronCreateSecurityGroupRuleOptionEthertype) UnmarshalJSON(b []byte) error
func (NeutronCreateSecurityGroupRuleOptionEthertype) Value ¶ added in v0.0.90
func (c NeutronCreateSecurityGroupRuleOptionEthertype) Value() string
type NeutronCreateSecurityGroupRuleOptionEthertypeEnum ¶
type NeutronCreateSecurityGroupRuleOptionEthertypeEnum struct { I_PV4 NeutronCreateSecurityGroupRuleOptionEthertype I_PV6 NeutronCreateSecurityGroupRuleOptionEthertype }
func GetNeutronCreateSecurityGroupRuleOptionEthertypeEnum ¶
func GetNeutronCreateSecurityGroupRuleOptionEthertypeEnum() NeutronCreateSecurityGroupRuleOptionEthertypeEnum
type NeutronCreateSecurityGroupRuleRequest ¶
type NeutronCreateSecurityGroupRuleRequest struct {
Body *NeutronCreateSecurityGroupRuleRequestBody `json:"body,omitempty"`
}
Request Object
func (NeutronCreateSecurityGroupRuleRequest) String ¶
func (o NeutronCreateSecurityGroupRuleRequest) String() string
type NeutronCreateSecurityGroupRuleRequestBody ¶
type NeutronCreateSecurityGroupRuleRequestBody struct {
SecurityGroupRule *NeutronCreateSecurityGroupRuleOption `json:"security_group_rule"`
}
func (NeutronCreateSecurityGroupRuleRequestBody) String ¶
func (o NeutronCreateSecurityGroupRuleRequestBody) String() string
type NeutronCreateSecurityGroupRuleResponse ¶
type NeutronCreateSecurityGroupRuleResponse struct { SecurityGroupRule *NeutronSecurityGroupRule `json:"security_group_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronCreateSecurityGroupRuleResponse) String ¶
func (o NeutronCreateSecurityGroupRuleResponse) String() string
type NeutronDeleteFirewallGroupRequest ¶
type NeutronDeleteFirewallGroupRequest struct { // 网络ACL防火墙组ID FirewallGroupId string `json:"firewall_group_id"` }
Request Object
func (NeutronDeleteFirewallGroupRequest) String ¶
func (o NeutronDeleteFirewallGroupRequest) String() string
type NeutronDeleteFirewallGroupResponse ¶
type NeutronDeleteFirewallGroupResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (NeutronDeleteFirewallGroupResponse) String ¶
func (o NeutronDeleteFirewallGroupResponse) String() string
type NeutronDeleteFirewallPolicyRequest ¶
type NeutronDeleteFirewallPolicyRequest struct { // 网络ACL防火墙策略ID FirewallPolicyId string `json:"firewall_policy_id"` }
Request Object
func (NeutronDeleteFirewallPolicyRequest) String ¶
func (o NeutronDeleteFirewallPolicyRequest) String() string
type NeutronDeleteFirewallPolicyResponse ¶
type NeutronDeleteFirewallPolicyResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (NeutronDeleteFirewallPolicyResponse) String ¶
func (o NeutronDeleteFirewallPolicyResponse) String() string
type NeutronDeleteFirewallRuleRequest ¶
type NeutronDeleteFirewallRuleRequest struct { // 网络ACL防火墙规则ID FirewallRuleId string `json:"firewall_rule_id"` }
Request Object
func (NeutronDeleteFirewallRuleRequest) String ¶
func (o NeutronDeleteFirewallRuleRequest) String() string
type NeutronDeleteFirewallRuleResponse ¶
type NeutronDeleteFirewallRuleResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (NeutronDeleteFirewallRuleResponse) String ¶
func (o NeutronDeleteFirewallRuleResponse) String() string
type NeutronDeleteSecurityGroupRequest ¶
type NeutronDeleteSecurityGroupRequest struct { // 安全组ID SecurityGroupId string `json:"security_group_id"` }
Request Object
func (NeutronDeleteSecurityGroupRequest) String ¶
func (o NeutronDeleteSecurityGroupRequest) String() string
type NeutronDeleteSecurityGroupResponse ¶
type NeutronDeleteSecurityGroupResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (NeutronDeleteSecurityGroupResponse) String ¶
func (o NeutronDeleteSecurityGroupResponse) String() string
type NeutronDeleteSecurityGroupRuleRequest ¶
type NeutronDeleteSecurityGroupRuleRequest struct { // 安全组规则ID SecurityGroupRuleId string `json:"security_group_rule_id"` }
Request Object
func (NeutronDeleteSecurityGroupRuleRequest) String ¶
func (o NeutronDeleteSecurityGroupRuleRequest) String() string
type NeutronDeleteSecurityGroupRuleResponse ¶
type NeutronDeleteSecurityGroupRuleResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (NeutronDeleteSecurityGroupRuleResponse) String ¶
func (o NeutronDeleteSecurityGroupRuleResponse) String() string
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"` }
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"` }
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"` }
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
func (c NeutronFirewallRuleAction) Value() string
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"` }
func (NeutronInsertFirewallRuleRequestBody) String ¶
func (o NeutronInsertFirewallRuleRequestBody) String() 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"` }
Request Object
func (NeutronListFirewallGroupsRequest) String ¶
func (o NeutronListFirewallGroupsRequest) String() string
type NeutronListFirewallGroupsResponse ¶
type NeutronListFirewallGroupsResponse struct { // firewall_group对象列表 FirewallGroups *[]NeutronFirewallGroup `json:"firewall_groups,omitempty"` // 分页信息 FirewallGroupsLinks *[]NeutronPageLink `json:"firewall_groups_links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronListFirewallGroupsResponse) String ¶
func (o NeutronListFirewallGroupsResponse) String() 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"` }
Request Object
func (NeutronListFirewallPoliciesRequest) String ¶
func (o NeutronListFirewallPoliciesRequest) String() string
type NeutronListFirewallPoliciesResponse ¶
type NeutronListFirewallPoliciesResponse struct { // firewall_policy对象列表 FirewallPolicies *[]NeutronFirewallPolicy `json:"firewall_policies,omitempty"` // 分页信息 FirewallPoliciesLinks *[]NeutronPageLink `json:"firewall_policies_links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronListFirewallPoliciesResponse) String ¶
func (o NeutronListFirewallPoliciesResponse) String() 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"` }
Request Object
func (NeutronListFirewallRulesRequest) String ¶
func (o NeutronListFirewallRulesRequest) String() string
type NeutronListFirewallRulesResponse ¶
type NeutronListFirewallRulesResponse struct { // firewall_rule对象列表 FirewallRules *[]NeutronFirewallRule `json:"firewall_rules,omitempty"` // 分页信息 FirewallRulesLinks *[]NeutronPageLink `json:"firewall_rules_links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronListFirewallRulesResponse) String ¶
func (o NeutronListFirewallRulesResponse) String() string
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"` }
Request Object
func (NeutronListSecurityGroupRulesRequest) String ¶
func (o NeutronListSecurityGroupRulesRequest) String() string
type NeutronListSecurityGroupRulesResponse ¶
type NeutronListSecurityGroupRulesResponse struct { // 安全组规则对象列表 SecurityGroupRules *[]NeutronSecurityGroupRule `json:"security_group_rules,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronListSecurityGroupRulesResponse) String ¶
func (o NeutronListSecurityGroupRulesResponse) String() 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"` }
Request Object
func (NeutronListSecurityGroupsRequest) String ¶
func (o NeutronListSecurityGroupsRequest) String() string
type NeutronListSecurityGroupsResponse ¶
type NeutronListSecurityGroupsResponse struct { // 安全组对象列表 SecurityGroups *[]NeutronSecurityGroup `json:"security_groups,omitempty"` // 分页信息 SecurityGroupsLinks *[]NeutronPageLink `json:"security_groups_links,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronListSecurityGroupsResponse) String ¶
func (o NeutronListSecurityGroupsResponse) 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 NeutronRemoveFirewallRuleRequest ¶
type NeutronRemoveFirewallRuleRequest struct { // 网络ACL防火墙策略ID FirewallPolicyId string `json:"firewall_policy_id"` Body *NeutronRemoveFirewallRuleRequestBody `json:"body,omitempty"` }
Request Object
func (NeutronRemoveFirewallRuleRequest) String ¶
func (o NeutronRemoveFirewallRuleRequest) String() string
type NeutronRemoveFirewallRuleRequestBody ¶
type NeutronRemoveFirewallRuleRequestBody struct { // 功能说明:待移除的ACL规则ID FirewallRuleId string `json:"firewall_rule_id"` }
func (NeutronRemoveFirewallRuleRequestBody) String ¶
func (o NeutronRemoveFirewallRuleRequestBody) String() 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:"-"` }
Response Object
func (NeutronRemoveFirewallRuleResponse) String ¶
func (o NeutronRemoveFirewallRuleResponse) 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"` }
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"` // 所属安全组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"` }
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
func (c NeutronSecurityGroupRuleDirection) Value() string
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"` }
Request Object
func (NeutronShowFirewallGroupRequest) String ¶
func (o NeutronShowFirewallGroupRequest) String() string
type NeutronShowFirewallGroupResponse ¶
type NeutronShowFirewallGroupResponse struct { FirewallGroup *NeutronFirewallGroup `json:"firewall_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronShowFirewallGroupResponse) String ¶
func (o NeutronShowFirewallGroupResponse) String() string
type NeutronShowFirewallPolicyRequest ¶
type NeutronShowFirewallPolicyRequest struct { // 网络ACL防火墙策略ID FirewallPolicyId string `json:"firewall_policy_id"` }
Request Object
func (NeutronShowFirewallPolicyRequest) String ¶
func (o NeutronShowFirewallPolicyRequest) String() string
type NeutronShowFirewallPolicyResponse ¶
type NeutronShowFirewallPolicyResponse struct { FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronShowFirewallPolicyResponse) String ¶
func (o NeutronShowFirewallPolicyResponse) String() string
type NeutronShowFirewallRuleRequest ¶
type NeutronShowFirewallRuleRequest struct { // 网络ACL规则ID FirewallRuleId string `json:"firewall_rule_id"` }
Request Object
func (NeutronShowFirewallRuleRequest) String ¶
func (o NeutronShowFirewallRuleRequest) String() string
type NeutronShowFirewallRuleResponse ¶
type NeutronShowFirewallRuleResponse struct { FirewallRule *NeutronFirewallRule `json:"firewall_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronShowFirewallRuleResponse) String ¶
func (o NeutronShowFirewallRuleResponse) String() string
type NeutronShowSecurityGroupRequest ¶
type NeutronShowSecurityGroupRequest struct { // 安全组ID SecurityGroupId string `json:"security_group_id"` }
Request Object
func (NeutronShowSecurityGroupRequest) String ¶
func (o NeutronShowSecurityGroupRequest) String() string
type NeutronShowSecurityGroupResponse ¶
type NeutronShowSecurityGroupResponse struct { SecurityGroup *NeutronSecurityGroup `json:"security_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronShowSecurityGroupResponse) String ¶
func (o NeutronShowSecurityGroupResponse) String() string
type NeutronShowSecurityGroupRuleRequest ¶
type NeutronShowSecurityGroupRuleRequest struct { // 安全组规则ID SecurityGroupRuleId string `json:"security_group_rule_id"` }
Request Object
func (NeutronShowSecurityGroupRuleRequest) String ¶
func (o NeutronShowSecurityGroupRuleRequest) String() string
type NeutronShowSecurityGroupRuleResponse ¶
type NeutronShowSecurityGroupRuleResponse struct { SecurityGroupRule *NeutronSecurityGroupRule `json:"security_group_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronShowSecurityGroupRuleResponse) String ¶
func (o NeutronShowSecurityGroupRuleResponse) 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"` }
func (NeutronUpdateFirewallGroupOption) String ¶
func (o NeutronUpdateFirewallGroupOption) String() string
type NeutronUpdateFirewallGroupRequest ¶
type NeutronUpdateFirewallGroupRequest struct { // 网络ACL防火墙组ID FirewallGroupId string `json:"firewall_group_id"` Body *NeutronUpdateFirewallGroupRequestBody `json:"body,omitempty"` }
Request Object
func (NeutronUpdateFirewallGroupRequest) String ¶
func (o NeutronUpdateFirewallGroupRequest) String() string
type NeutronUpdateFirewallGroupRequestBody ¶
type NeutronUpdateFirewallGroupRequestBody struct {
FirewallGroup *NeutronUpdateFirewallGroupOption `json:"firewall_group"`
}
func (NeutronUpdateFirewallGroupRequestBody) String ¶
func (o NeutronUpdateFirewallGroupRequestBody) String() string
type NeutronUpdateFirewallGroupResponse ¶
type NeutronUpdateFirewallGroupResponse struct { FirewallGroup *NeutronFirewallGroup `json:"firewall_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronUpdateFirewallGroupResponse) String ¶
func (o NeutronUpdateFirewallGroupResponse) String() 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"` }
func (NeutronUpdateFirewallPolicyOption) String ¶
func (o NeutronUpdateFirewallPolicyOption) String() string
type NeutronUpdateFirewallPolicyRequest ¶
type NeutronUpdateFirewallPolicyRequest struct { // 网络ACL防火墙策略ID FirewallPolicyId string `json:"firewall_policy_id"` Body *NeutronUpdateFirewallPolicyRequestBody `json:"body,omitempty"` }
Request Object
func (NeutronUpdateFirewallPolicyRequest) String ¶
func (o NeutronUpdateFirewallPolicyRequest) String() string
type NeutronUpdateFirewallPolicyRequestBody ¶
type NeutronUpdateFirewallPolicyRequestBody struct {
FirewallPolicy *NeutronUpdateFirewallPolicyOption `json:"firewall_policy"`
}
func (NeutronUpdateFirewallPolicyRequestBody) String ¶
func (o NeutronUpdateFirewallPolicyRequestBody) String() string
type NeutronUpdateFirewallPolicyResponse ¶
type NeutronUpdateFirewallPolicyResponse struct { FirewallPolicy *NeutronFirewallPolicy `json:"firewall_policy,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronUpdateFirewallPolicyResponse) String ¶
func (o NeutronUpdateFirewallPolicyResponse) String() 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"` }
func (NeutronUpdateFirewallRuleOption) String ¶
func (o NeutronUpdateFirewallRuleOption) String() 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
func (c NeutronUpdateFirewallRuleOptionAction) Value() string
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"` }
Request Object
func (NeutronUpdateFirewallRuleRequest) String ¶
func (o NeutronUpdateFirewallRuleRequest) String() string
type NeutronUpdateFirewallRuleRequestBody ¶
type NeutronUpdateFirewallRuleRequestBody struct {
FirewallRule *NeutronUpdateFirewallRuleOption `json:"firewall_rule"`
}
func (NeutronUpdateFirewallRuleRequestBody) String ¶
func (o NeutronUpdateFirewallRuleRequestBody) String() string
type NeutronUpdateFirewallRuleResponse ¶
type NeutronUpdateFirewallRuleResponse struct { FirewallRule *NeutronFirewallRule `json:"firewall_rule,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronUpdateFirewallRuleResponse) String ¶
func (o NeutronUpdateFirewallRuleResponse) String() string
type NeutronUpdateSecurityGroupOption ¶
type NeutronUpdateSecurityGroupOption struct { // 功能说明:安全组描述 取值范围:0-255个字符 Description *string `json:"description,omitempty"` // 功能说明:安全组名称 取值范围:0-255个字符 约束:不允许为“default” Name *string `json:"name,omitempty"` }
func (NeutronUpdateSecurityGroupOption) String ¶
func (o NeutronUpdateSecurityGroupOption) String() string
type NeutronUpdateSecurityGroupRequest ¶
type NeutronUpdateSecurityGroupRequest struct { // 安全组ID SecurityGroupId string `json:"security_group_id"` Body *NeutronUpdateSecurityGroupRequestBody `json:"body,omitempty"` }
Request Object
func (NeutronUpdateSecurityGroupRequest) String ¶
func (o NeutronUpdateSecurityGroupRequest) String() string
type NeutronUpdateSecurityGroupRequestBody ¶
type NeutronUpdateSecurityGroupRequestBody struct {
SecurityGroup *NeutronUpdateSecurityGroupOption `json:"security_group"`
}
func (NeutronUpdateSecurityGroupRequestBody) String ¶
func (o NeutronUpdateSecurityGroupRequestBody) String() string
type NeutronUpdateSecurityGroupResponse ¶
type NeutronUpdateSecurityGroupResponse struct { SecurityGroup *NeutronSecurityGroup `json:"security_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (NeutronUpdateSecurityGroupResponse) String ¶
func (o NeutronUpdateSecurityGroupResponse) 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、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"` }
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"` }
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"` }
type RejectVpcPeeringRequest ¶
type RejectVpcPeeringRequest struct { // 对等连接ID 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 *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:"-"` }
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
func (c RejectVpcPeeringResponseStatus) Value() string
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
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"` }
func (ResourceTag) String ¶
func (o ResourceTag) String() string
type Route ¶
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"` }
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"` }
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"` }
func (RouteTableRoute) String ¶ added in v0.0.57
func (o RouteTableRoute) String() string
type RoutetableAssociateReqbody ¶ added in v0.0.55
type RoutetableAssociateReqbody struct {
Routetable *AsscoiateReq `json:"routetable"`
}
func (RoutetableAssociateReqbody) String ¶ added in v0.0.55
func (o RoutetableAssociateReqbody) String() string
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 { // 网络ID 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowNetworkIpAvailabilitiesResponse) String ¶
func (o ShowNetworkIpAvailabilitiesResponse) String() string
type ShowPortRequest ¶
type ShowPortRequest struct { // 端口ID PortId string `json:"port_id"` }
Request Object
func (ShowPortRequest) String ¶
func (o ShowPortRequest) String() string
type ShowPortResponse ¶
Response Object
func (ShowPortResponse) String ¶
func (o ShowPortResponse) String() string
type ShowPrivateipRequest ¶
type ShowPrivateipRequest struct { // 私有IP ID 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"` HttpStatusCode int `json:"-"` }
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"` }
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:"-"` }
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"` }
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:"-"` }
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"` }
Request Object
func (ShowSecurityGroupRequest) String ¶
func (o ShowSecurityGroupRequest) String() string
type ShowSecurityGroupResponse ¶
type ShowSecurityGroupResponse struct { SecurityGroup *SecurityGroup `json:"security_group,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSecurityGroupResponse) String ¶
func (o ShowSecurityGroupResponse) String() string
type ShowSecurityGroupRuleRequest ¶
type ShowSecurityGroupRuleRequest struct { // 安全组规则ID 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSecurityGroupRuleResponse) String ¶
func (o ShowSecurityGroupRuleResponse) String() string
type ShowSubnetRequest ¶
type ShowSubnetRequest struct { // 子网ID 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSubnetResponse) String ¶
func (o ShowSubnetResponse) String() string
type ShowSubnetTagsRequest ¶
type ShowSubnetTagsRequest struct { // 子网ID SubnetId string `json:"subnet_id"` }
Request Object
func (ShowSubnetTagsRequest) String ¶
func (o ShowSubnetTagsRequest) String() string
type ShowSubnetTagsResponse ¶
type ShowSubnetTagsResponse struct { // tag对象列表 Tags *[]ResourceTag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowSubnetTagsResponse) String ¶
func (o ShowSubnetTagsResponse) String() string
type ShowVpcPeeringRequest ¶
type ShowVpcPeeringRequest struct { // 对等连接ID 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVpcPeeringResponse) String ¶
func (o ShowVpcPeeringResponse) String() string
type ShowVpcRequest ¶
type ShowVpcRequest struct { // 虚拟私有云ID VpcId string `json:"vpc_id"` }
Request Object
func (ShowVpcRequest) String ¶
func (o ShowVpcRequest) String() string
type ShowVpcResponse ¶
Response Object
func (ShowVpcResponse) String ¶
func (o ShowVpcResponse) String() string
type ShowVpcRouteRequest ¶
type ShowVpcRouteRequest struct { // 路由ID 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowVpcRouteResponse) String ¶
func (o ShowVpcRouteResponse) String() string
type ShowVpcTagsRequest ¶
type ShowVpcTagsRequest struct { // 功能说明:虚拟私有云唯一标识 取值范围:合法UUID 约束:ID对应的VPC必须存在 VpcId string `json:"vpc_id"` }
Request Object
func (ShowVpcTagsRequest) String ¶
func (o ShowVpcTagsRequest) String() string
type ShowVpcTagsResponse ¶
type ShowVpcTagsResponse struct { // tag对象列表 Tags *[]ResourceTag `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
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地址 ExtraDhcpOpts []ExtraDhcpOption `json:"extra_dhcp_opts"` // 功能说明:子网作用域 取值范围:center-表示作用域为中心;{azId}表示作用域为具体的AZ Scope *string `json:"scope,omitempty"` }
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 SubnetList ¶ added in v0.0.55
type SubnetList struct { // 路由表关联的子网ID Id string `json:"id"` }
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"` }
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 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 { // 端口ID 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 ¶
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"` // 功能说明:路由对象 取值范围:参见route字段说明。更新存在三种动作: 1)add:新增路由条目,type,destination,nexthop必选。 2)mod:修改路由信息,type,destination,nexthop必选。 3)del:删除路由条目,destination必选 约束: 每个路由表最大关联200条路由。 不支持直接修改destination,如需修改,只能使用del先删除对应路由,然后使用add新增路由。 Routes map[string][]RouteTableRoute `json:"routes,omitempty"` }
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"` }
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:"-"` }
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"`
}
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"` }
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"` }
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"` HttpStatusCode int `json:"-"` }
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 { // 对等连接ID 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"` HttpStatusCode int `json:"-"` }
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"` }
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 ¶
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 *sdktime.SdkTime `json:"created_at"` // 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss UpdatedAt *sdktime.SdkTime `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
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"` }
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 (*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_asscoiate_req.go
- model_associate_route_table_and_subnet_req.go
- model_associate_route_table_request.go
- model_associate_route_table_response.go
- model_batch_create_subnet_tags_request.go
- model_batch_create_subnet_tags_request_body.go
- model_batch_create_subnet_tags_response.go
- model_batch_create_vpc_tags_request.go
- model_batch_create_vpc_tags_request_body.go
- model_batch_create_vpc_tags_response.go
- model_batch_delete_subnet_tags_request.go
- model_batch_delete_subnet_tags_request_body.go
- model_batch_delete_subnet_tags_response.go
- model_batch_delete_vpc_tags_request.go
- model_batch_delete_vpc_tags_request_body.go
- model_batch_delete_vpc_tags_response.go
- model_binding_vif_details.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_route_table_req.go
- model_create_route_table_request.go
- model_create_route_table_response.go
- model_create_routetable_req_body.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_subnet_tag_request.go
- model_create_subnet_tag_request_body.go
- model_create_subnet_tag_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_resource_tag_request.go
- model_create_vpc_resource_tag_request_body.go
- model_create_vpc_resource_tag_response.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_route_table_request.go
- model_delete_route_table_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_subnet_tag_request.go
- model_delete_subnet_tag_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_delete_vpc_tag_request.go
- model_delete_vpc_tag_response.go
- model_disassociate_route_table_request.go
- model_disassociate_route_table_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_resource_resp.go
- model_list_route_tables_request.go
- model_list_route_tables_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_subnet_tags_request.go
- model_list_subnet_tags_response.go
- model_list_subnets_by_tags_request.go
- model_list_subnets_by_tags_request_body.go
- model_list_subnets_by_tags_response.go
- model_list_subnets_request.go
- model_list_subnets_response.go
- model_list_tag.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_vpc_tags_request.go
- model_list_vpc_tags_response.go
- model_list_vpcs_by_tags_request.go
- model_list_vpcs_by_tags_request_body.go
- model_list_vpcs_by_tags_response.go
- model_list_vpcs_request.go
- model_list_vpcs_response.go
- model_match.go
- model_network_ip_availability.go
- model_neutron_add_firewall_rule_request.go
- model_neutron_add_firewall_rule_response.go
- model_neutron_create_firewall_group_option.go
- model_neutron_create_firewall_group_request.go
- model_neutron_create_firewall_group_request_body.go
- model_neutron_create_firewall_group_response.go
- model_neutron_create_firewall_policy_option.go
- model_neutron_create_firewall_policy_request.go
- model_neutron_create_firewall_policy_request_body.go
- model_neutron_create_firewall_policy_response.go
- model_neutron_create_firewall_rule_option.go
- model_neutron_create_firewall_rule_request.go
- model_neutron_create_firewall_rule_request_body.go
- model_neutron_create_firewall_rule_response.go
- model_neutron_create_security_group_option.go
- model_neutron_create_security_group_request.go
- model_neutron_create_security_group_request_body.go
- model_neutron_create_security_group_response.go
- model_neutron_create_security_group_rule_option.go
- model_neutron_create_security_group_rule_request.go
- model_neutron_create_security_group_rule_request_body.go
- model_neutron_create_security_group_rule_response.go
- model_neutron_delete_firewall_group_request.go
- model_neutron_delete_firewall_group_response.go
- model_neutron_delete_firewall_policy_request.go
- model_neutron_delete_firewall_policy_response.go
- model_neutron_delete_firewall_rule_request.go
- model_neutron_delete_firewall_rule_response.go
- model_neutron_delete_security_group_request.go
- model_neutron_delete_security_group_response.go
- model_neutron_delete_security_group_rule_request.go
- model_neutron_delete_security_group_rule_response.go
- model_neutron_firewall_group.go
- model_neutron_firewall_policy.go
- model_neutron_firewall_rule.go
- model_neutron_insert_firewall_rule_request_body.go
- model_neutron_list_firewall_groups_request.go
- model_neutron_list_firewall_groups_response.go
- model_neutron_list_firewall_policies_request.go
- model_neutron_list_firewall_policies_response.go
- model_neutron_list_firewall_rules_request.go
- model_neutron_list_firewall_rules_response.go
- model_neutron_list_security_group_rules_request.go
- model_neutron_list_security_group_rules_response.go
- model_neutron_list_security_groups_request.go
- model_neutron_list_security_groups_response.go
- model_neutron_page_link.go
- model_neutron_remove_firewall_rule_request.go
- model_neutron_remove_firewall_rule_request_body.go
- model_neutron_remove_firewall_rule_response.go
- model_neutron_security_group.go
- model_neutron_security_group_rule.go
- model_neutron_show_firewall_group_request.go
- model_neutron_show_firewall_group_response.go
- model_neutron_show_firewall_policy_request.go
- model_neutron_show_firewall_policy_response.go
- model_neutron_show_firewall_rule_request.go
- model_neutron_show_firewall_rule_response.go
- model_neutron_show_security_group_request.go
- model_neutron_show_security_group_response.go
- model_neutron_show_security_group_rule_request.go
- model_neutron_show_security_group_rule_response.go
- model_neutron_update_firewall_group_option.go
- model_neutron_update_firewall_group_request.go
- model_neutron_update_firewall_group_request_body.go
- model_neutron_update_firewall_group_response.go
- model_neutron_update_firewall_policy_option.go
- model_neutron_update_firewall_policy_request.go
- model_neutron_update_firewall_policy_request_body.go
- model_neutron_update_firewall_policy_response.go
- model_neutron_update_firewall_rule_option.go
- model_neutron_update_firewall_rule_request.go
- model_neutron_update_firewall_rule_request_body.go
- model_neutron_update_firewall_rule_response.go
- model_neutron_update_security_group_option.go
- model_neutron_update_security_group_request.go
- model_neutron_update_security_group_request_body.go
- model_neutron_update_security_group_response.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_resource_tag.go
- model_route.go
- model_route_table_list_resp.go
- model_route_table_resp.go
- model_route_table_route.go
- model_routetable_associate_reqbody.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_route_table_request.go
- model_show_route_table_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_subnet_tags_request.go
- model_show_subnet_tags_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_show_vpc_tags_request.go
- model_show_vpc_tags_response.go
- model_subnet.go
- model_subnet_ip_availability.go
- model_subnet_list.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_route_table_req.go
- model_update_route_table_request.go
- model_update_route_table_response.go
- model_update_routetable_req_body.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