Class: Virtuozzo::SOAP::Types::Firewallm::RuleType

Inherits:
Object
  • Object
show all
Defined in:
lib/virtuozzo/soap/types/firewallm.rb

Overview

http://www.swsoft.com/webservices/vzl/4.0.0/firewallmruleType

name - SOAP::SOAPString
protocol - Virtuozzo::SOAP::Types::Firewallm::Transport_type
chain - Virtuozzo::SOAP::Types::Firewallm::ChainType
policy - Virtuozzo::SOAP::Types::Firewallm::PolicyType
allowed - SOAP::SOAPBoolean
src_addr - Virtuozzo::SOAP::Types::Firewallm::Net_addressType
dst_addr - Virtuozzo::SOAP::Types::Firewallm::Net_addressType
src_ports - Virtuozzo::SOAP::Types::Firewallm::Port_rangeType
dst_ports - Virtuozzo::SOAP::Types::Firewallm::Port_rangeType
input_iface - SOAP::SOAPString
output_iface - SOAP::SOAPString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, protocol = nil, chain = nil, policy = nil, allowed = nil, src_addr = nil, dst_addr = nil, src_ports = nil, dst_ports = nil, input_iface = nil, output_iface = nil) ⇒ RuleType

Returns a new instance of RuleType.



46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 46

def initialize(name = nil, protocol = nil, chain = nil, policy = nil, allowed = nil, src_addr = nil, dst_addr = nil, src_ports = nil, dst_ports = nil, input_iface = nil, output_iface = nil)
  @name = name
  @protocol = protocol
  @chain = chain
  @policy = policy
  @allowed = allowed
  @src_addr = src_addr
  @dst_addr = dst_addr
  @src_ports = src_ports
  @dst_ports = dst_ports
  @input_iface = input_iface
  @output_iface = output_iface
end

Instance Attribute Details

#allowedObject

Returns the value of attribute allowed.



38
39
40
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 38

def allowed
  @allowed
end

#chainObject

Returns the value of attribute chain.



36
37
38
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 36

def chain
  @chain
end

#dst_addrObject

Returns the value of attribute dst_addr.



40
41
42
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 40

def dst_addr
  @dst_addr
end

#dst_portsObject

Returns the value of attribute dst_ports.



42
43
44
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 42

def dst_ports
  @dst_ports
end

#input_ifaceObject

Returns the value of attribute input_iface.



43
44
45
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 43

def input_iface
  @input_iface
end

#nameObject

Returns the value of attribute name.



34
35
36
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 34

def name
  @name
end

#output_ifaceObject

Returns the value of attribute output_iface.



44
45
46
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 44

def output_iface
  @output_iface
end

#policyObject

Returns the value of attribute policy.



37
38
39
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 37

def policy
  @policy
end

#protocolObject

Returns the value of attribute protocol.



35
36
37
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 35

def protocol
  @protocol
end

#src_addrObject

Returns the value of attribute src_addr.



39
40
41
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 39

def src_addr
  @src_addr
end

#src_portsObject

Returns the value of attribute src_ports.



41
42
43
# File 'lib/virtuozzo/soap/types/firewallm.rb', line 41

def src_ports
  @src_ports
end