Documentation ¶
Index ¶
- func AddValueSpecs(body map[string]interface{}) map[string]interface{}
- func BuildRequest(opts interface{}, parent string) (map[string]interface{}, error)
- func MapResourceProp(d *schema.ResourceData, prop string) map[string]interface{}
- func MapValueSpecs(d *schema.ResourceData) map[string]string
- func ResourceNetworkingPortV2() *schema.Resource
- type FirewallGroup
- type FirewallGroupCreateOpts
- type FirewallGroupUpdateOpts
- type FloatingIPCreateOpts
- type NetworkCreateOpts
- type PolicyCreateOpts
- type PortCreateOpts
- type RouterCreateOpts
- type RuleCreateOpts
- type SubnetCreateOpts
- type VpnEndpointGroupCreateOpts
- type VpnIKEPolicyCreateOpts
- type VpnIKEPolicyLifetimeCreateOpts
- type VpnIPSecPolicyCreateOpts
- type VpnServiceCreateOpts
- type VpnSiteConnectionCreateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddValueSpecs ¶
AddValueSpecs expands the 'value_specs' object and removes 'value_specs' from the reqeust body.
func BuildRequest ¶
BuildRequest takes an opts struct and builds a request body for golangsdk to execute
func MapResourceProp ¶
func MapResourceProp(d *schema.ResourceData, prop string) map[string]interface{}
MapResourceProp converts ResourceData property into a map
func MapValueSpecs ¶
func MapValueSpecs(d *schema.ResourceData) map[string]string
MapValueSpecs converts ResourceData into a map
Types ¶
type FirewallGroup ¶
type FirewallGroup struct { firewall_groups.FirewallGroup routerinsertion.FirewallGroupExt }
FirewallGroup is an HuaweiCloud firewall group.
type FirewallGroupCreateOpts ¶
type FirewallGroupCreateOpts struct { firewall_groups.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
FirewallGroupCreateOpts represents the attributes used when creating a new firewall.
func (FirewallGroupCreateOpts) ToFirewallCreateMap ¶
func (opts FirewallGroupCreateOpts) ToFirewallCreateMap() (map[string]interface{}, error)
ToFirewallCreateMap casts a FirewallGroupCreateOpts struct to a map. It overrides firewalls.ToFirewallCreateMap to add the ValueSpecs field.
type FirewallGroupUpdateOpts ¶
type FirewallGroupUpdateOpts struct {
firewall_groups.UpdateOptsBuilder
}
FirewallGroupUpdateOpts represents the attributes used when updating a firewall
func (FirewallGroupUpdateOpts) ToFirewallUpdateMap ¶
func (opts FirewallGroupUpdateOpts) ToFirewallUpdateMap() (map[string]interface{}, error)
ToFirewallUpdateMap casts a FirewallGroupUpdateOpts struct to a map.
type FloatingIPCreateOpts ¶
type FloatingIPCreateOpts struct { floatingips.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
FloatingIPCreateOpts represents the attributes used when creating a new floating ip.
func (FloatingIPCreateOpts) ToFloatingIPCreateMap ¶
func (opts FloatingIPCreateOpts) ToFloatingIPCreateMap() (map[string]interface{}, error)
ToFloatingIPCreateMap casts a CreateOpts struct to a map. It overrides floatingips.ToFloatingIPCreateMap to add the ValueSpecs field.
type NetworkCreateOpts ¶
type NetworkCreateOpts struct { networks.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
NetworkCreateOpts represents the attributes used when creating a new network.
func (NetworkCreateOpts) ToNetworkCreateMap ¶
func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)
ToNetworkCreateMap casts a CreateOpts struct to a map. It overrides networks.ToNetworkCreateMap to add the ValueSpecs field.
type PolicyCreateOpts ¶
type PolicyCreateOpts struct { policies.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
PolicyCreateOpts represents the attributes used when creating a new firewall policy.
func (PolicyCreateOpts) ToFirewallPolicyCreateMap ¶
func (opts PolicyCreateOpts) ToFirewallPolicyCreateMap() (map[string]interface{}, error)
ToFirewallPolicyCreateMap casts a PolicyCreateOpts struct to a map. It overrides policies.ToFirewallPolicyCreateMap to add the ValueSpecs field.
type PortCreateOpts ¶
type PortCreateOpts struct { ports.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
PortCreateOpts represents the attributes used when creating a new port.
func (PortCreateOpts) ToPortCreateMap ¶
func (opts PortCreateOpts) ToPortCreateMap() (map[string]interface{}, error)
ToPortCreateMap casts a CreateOpts struct to a map. It overrides ports.ToPortCreateMap to add the ValueSpecs field.
type RouterCreateOpts ¶
type RouterCreateOpts struct { routers.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
RouterCreateOpts represents the attributes used when creating a new router.
func (RouterCreateOpts) ToRouterCreateMap ¶
func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error)
ToRouterCreateMap casts a CreateOpts struct to a map. It overrides routers.ToRouterCreateMap to add the ValueSpecs field.
type RuleCreateOpts ¶
type RuleCreateOpts struct { rules.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
RuleCreateOpts represents the attributes used when creating a new firewall rule.
func (RuleCreateOpts) ToRuleCreateMap ¶
func (opts RuleCreateOpts) ToRuleCreateMap() (map[string]interface{}, error)
ToRuleCreateMap casts a CreateOpts struct to a map. It overrides rules.ToRuleCreateMap to add the ValueSpecs field.
type SubnetCreateOpts ¶
type SubnetCreateOpts struct { subnets.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
SubnetCreateOpts represents the attributes used when creating a new subnet.
func (SubnetCreateOpts) ToSubnetCreateMap ¶
func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error)
ToSubnetCreateMap casts a CreateOpts struct to a map. It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field.
type VpnEndpointGroupCreateOpts ¶
type VpnEndpointGroupCreateOpts struct { endpointgroups.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnEndpointGroupCreateOpts represents the attributes used when creating a new endpoint group.
type VpnIKEPolicyCreateOpts ¶
type VpnIKEPolicyCreateOpts struct { ikepolicies.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnIKEPolicyCreateOpts represents the attributes used when creating a new IKE policy.
type VpnIKEPolicyLifetimeCreateOpts ¶
type VpnIKEPolicyLifetimeCreateOpts struct { ikepolicies.LifetimeCreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnIKEPolicyLifetimeCreateOpts represents the attributes used when creating a new lifetime for an IKE policy.
type VpnIPSecPolicyCreateOpts ¶
type VpnIPSecPolicyCreateOpts struct { ipsecpolicies.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnIPSecPolicyCreateOpts represents the attributes used when creating a new IPSec policy.
type VpnServiceCreateOpts ¶
type VpnServiceCreateOpts struct { services.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnServiceCreateOpts represents the attributes used when creating a new VPN service.
type VpnSiteConnectionCreateOpts ¶
type VpnSiteConnectionCreateOpts struct { siteconnections.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
VpnSiteConnectionCreateOpts represents the attributes used when creating a new IPSec site connection.