Class: VSphereAutomation::Appliance::ApplianceNetworkingFirewallInboundPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/vsphere-automation-appliance/models/appliance_networking_firewall_inbound_policy.rb

Constant Summary collapse

IGNORE =
"IGNORE".freeze
ACCEPT =
"ACCEPT".freeze
REJECT =
"REJECT".freeze
RETURN =
"RETURN".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string



23
24
25
26
27
# File 'lib/vsphere-automation-appliance/models/appliance_networking_firewall_inbound_policy.rb', line 23

def build_from_hash(value)
  constantValues = ApplianceNetworkingFirewallInboundPolicy.constants.select { |c| ApplianceNetworkingFirewallInboundPolicy::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ApplianceNetworkingFirewallInboundPolicy" if constantValues.empty?
  value
end