Class: Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy
- Inherits:
-
VAPI::Bindings::VapiEnum
- Object
- VAPI::Bindings::VapiEnum
- Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking/firewall/addr.rb
Overview
``Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy`` enumerated type Defines firewall rule policies
Constant Summary
- DENY =
FirewallRulePolicy.new('DENY')
- ALLOW =
FirewallRulePolicy.new('ALLOW')
Instance Attribute Summary (collapse)
-
- (Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy) allow
Allow packet with corresponding address.
-
- (Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy) deny
Deny packet with correpsonding address.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
-
+ (FirewallRulePolicy) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
Instance Attribute Details
- (Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy) allow
Allow packet with corresponding address.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking/firewall/addr.rb', line 251 class FirewallRulePolicy < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.techpreview.networking.firewall.addr.inbound.firewall_rule_policy', FirewallRulePolicy) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [FirewallRulePolicy] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError FirewallRulePolicy.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] deny # @return [Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy] # Deny packet with correpsonding address. DENY = FirewallRulePolicy.new('DENY') # @!attribute [rw] allow # @return [Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy] # Allow packet with corresponding address. ALLOW = FirewallRulePolicy.new('ALLOW') end |
- (Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy) deny
Deny packet with correpsonding address.
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking/firewall/addr.rb', line 251 class FirewallRulePolicy < VAPI::Bindings::VapiEnum class << self # Holds (gets or creates) the binding type metadata for this enumeration type. # @scope class # @return [VAPI::Bindings::EnumType] the binding type def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.techpreview.networking.firewall.addr.inbound.firewall_rule_policy', FirewallRulePolicy) end # Converts from a string value (perhaps off the wire) to an instance # of this enum type. # @param value [String] the actual value of the enum instance # @return [FirewallRulePolicy] the instance found for the value, otherwise # an unknown instance will be built for the value def from_string(value) begin const_get(value) rescue NameError FirewallRulePolicy.new('UNKNOWN', value) end end end private # Constructs a new instance. # @param value [String] the actual value of the enum instance # @param unknown [String] the unknown value when value is 'UKNOWN' def initialize(value, unknown=nil) super(self.class.binding_type, value, unknown) end public # @!attribute [rw] deny # @return [Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy] # Deny packet with correpsonding address. DENY = FirewallRulePolicy.new('DENY') # @!attribute [rw] allow # @return [Com::Vmware::Appliance::Techpreview::Networking::Firewall::Addr::Inbound::FirewallRulePolicy] # Allow packet with corresponding address. ALLOW = FirewallRulePolicy.new('ALLOW') end |
Class Method Details
+ (VAPI::Bindings::EnumType) binding_type
Holds (gets or creates) the binding type metadata for this enumeration type.
257 258 259 260 261 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking/firewall/addr.rb', line 257 def binding_type @binding_type ||= VAPI::Bindings::EnumType.new( 'com.vmware.appliance.techpreview.networking.firewall.addr.inbound.firewall_rule_policy', FirewallRulePolicy) end |
+ (FirewallRulePolicy) from_string(value)
Converts from a string value (perhaps off the wire) to an instance of this enum type.
268 269 270 271 272 273 274 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/appliance/techpreview/networking/firewall/addr.rb', line 268 def from_string(value) begin const_get(value) rescue NameError FirewallRulePolicy.new('UNKNOWN', value) end end |