Class: PaloAlto::XML::Config::Shared::PreRulebase::ApplicationOverride::Rules::Entry

Inherits:
ArrayConfigClass show all
Defined in:
lib/palo_alto/config.rb

Defined Under Namespace

Classes: Destination, From, Source, SourceUser, Tag, Target, To

Constant Summary

Constants included from DSL

DSL::AXES, DSL::LOWERCASE_LETTERS, DSL::METHODS, DSL::OPERATORS, DSL::UPPERCASE_LETTERS

Instance Attribute Summary

Attributes inherited from ArrayConfigClass

#selector

Attributes inherited from PaloAlto::XML::ConfigClass

#api_attributes, #parent_instance, #subclasses

Attributes inherited from Expression

#arguments, #expression

Instance Method Summary collapse

Methods inherited from ArrayConfigClass

#move!, #rename!, #set_xpath_from_selector!

Methods inherited from PaloAlto::XML::ConfigClass

#array_class_setter, #clear!, #complete, #create!, #delete!, #delete_child, #edit!, #enforce_type, #enforce_types, #external_set, #get, #get_all, #get_class_from_child_str, #get_primary_key, #initialize, #inspect, #maybe_register_subclass, #multimove!, #prop_get, #prop_set, #selector_subclasses, #set!, #set_array_class_attributes, #set_values, #to_xml, #values, #xml_builder

Methods inherited from Expression

#current, #initialize, #to_xpath

Methods included from DSL

#anywhere, #axis, #binary_operator, #child, #contains_word, #css, #current, #descendant, #ends_with, #function, #is, #last, #lowercase, #method, #next_sibling, #one_of, #parenthesis, #position, #previous_sibling, #qname, #relative, #root, #text, #union, #uppercase, #where, #xpath_attr

Constructor Details

This class inherits a constructor from PaloAlto::XML::ConfigClass

Instance Method Details

#_sectionObject



32607
32608
32609
# File 'lib/palo_alto/config.rb', line 32607

def _section
:entry
end

#applicationObject



32849
32850
32851
# File 'lib/palo_alto/config.rb', line 32849

def application
prop_get('application')
end

#application=(val) ⇒ Object



32852
32853
32854
# File 'lib/palo_alto/config.rb', line 32852

def application=(val)
prop_set('application', val)
end

#descriptionObject



32825
32826
32827
# File 'lib/palo_alto/config.rb', line 32825

def description
prop_get('description')
end

#description=(val) ⇒ Object



32828
32829
32830
# File 'lib/palo_alto/config.rb', line 32828

def description=(val)
prop_set('description', val)
end

#destinationObject



32781
32782
32783
# File 'lib/palo_alto/config.rb', line 32781

def destination
maybe_register_subclass('destination', Destination.new(parent_instance: self, client: @client, create_children: @create_children))
end

#disabledObject

Disable the rule



32818
32819
32820
# File 'lib/palo_alto/config.rb', line 32818

def disabled
prop_get('disabled')
end

#disabled=(val) ⇒ Object

Disable the rule



32822
32823
32824
# File 'lib/palo_alto/config.rb', line 32822

def disabled=(val)
prop_set('disabled', val)
end

#fromObject



32717
32718
32719
# File 'lib/palo_alto/config.rb', line 32717

def from
maybe_register_subclass('from', From.new(parent_instance: self, client: @client, create_children: @create_children))
end

#group_tagObject



32831
32832
32833
# File 'lib/palo_alto/config.rb', line 32831

def group_tag
prop_get('group-tag')
end

#group_tag=(val) ⇒ Object



32834
32835
32836
# File 'lib/palo_alto/config.rb', line 32834

def group_tag=(val)
prop_set('group-tag', val)
end

#has_multiple_values?Boolean

Returns:

  • (Boolean)


32606
# File 'lib/palo_alto/config.rb', line 32606

def has_multiple_values?; false; end

#nameObject

alphanumeric string [ 0-9a-zA-Z._-]



32802
32803
32804
# File 'lib/palo_alto/config.rb', line 32802

def name
prop_get('@name')
end

#negate_destinationObject



32811
32812
32813
# File 'lib/palo_alto/config.rb', line 32811

def negate_destination
prop_get('negate-destination')
end

#negate_destination=(val) ⇒ Object



32814
32815
32816
# File 'lib/palo_alto/config.rb', line 32814

def negate_destination=(val)
prop_set('negate-destination', val)
end

#negate_sourceObject



32805
32806
32807
# File 'lib/palo_alto/config.rb', line 32805

def negate_source
prop_get('negate-source')
end

#negate_source=(val) ⇒ Object



32808
32809
32810
# File 'lib/palo_alto/config.rb', line 32808

def negate_source=(val)
prop_set('negate-source', val)
end

#portObject



32843
32844
32845
# File 'lib/palo_alto/config.rb', line 32843

def port
prop_get('port')
end

#port=(val) ⇒ Object



32846
32847
32848
# File 'lib/palo_alto/config.rb', line 32846

def port=(val)
prop_set('port', val)
end

#protocolObject



32837
32838
32839
# File 'lib/palo_alto/config.rb', line 32837

def protocol
prop_get('protocol')
end

#protocol=(val) ⇒ Object



32840
32841
32842
# File 'lib/palo_alto/config.rb', line 32840

def protocol=(val)
prop_set('protocol', val)
end

#sourceObject



32749
32750
32751
# File 'lib/palo_alto/config.rb', line 32749

def source
maybe_register_subclass('source', Source.new(parent_instance: self, client: @client, create_children: @create_children))
end

#source_userObject



32765
32766
32767
# File 'lib/palo_alto/config.rb', line 32765

def source_user
maybe_register_subclass('source-user', SourceUser.new(parent_instance: self, client: @client, create_children: @create_children))
end

#tagObject



32797
32798
32799
# File 'lib/palo_alto/config.rb', line 32797

def tag
maybe_register_subclass('tag', Tag.new(parent_instance: self, client: @client, create_children: @create_children))
end

#targetObject



32701
32702
32703
# File 'lib/palo_alto/config.rb', line 32701

def target
@subclasses['target'] ||= Target.new(parent_instance: self, client: @client, create_children: @create_children)
end

#toObject



32733
32734
32735
# File 'lib/palo_alto/config.rb', line 32733

def to
maybe_register_subclass('to', To.new(parent_instance: self, client: @client, create_children: @create_children))
end