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

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

Defined Under Namespace

Classes: Action, Destination, From, Protection, Service, 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



35525
35526
35527
# File 'lib/palo_alto/config.rb', line 35525

def _section
:entry
end

#actionObject



35887
35888
35889
# File 'lib/palo_alto/config.rb', line 35887

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

#descriptionObject



35921
35922
35923
# File 'lib/palo_alto/config.rb', line 35921

def description
prop_get('description')
end

#description=(val) ⇒ Object



35924
35925
35926
# File 'lib/palo_alto/config.rb', line 35924

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

#destinationObject



35751
35752
35753
# File 'lib/palo_alto/config.rb', line 35751

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

#disabledObject

Disable the rule



35914
35915
35916
# File 'lib/palo_alto/config.rb', line 35914

def disabled
prop_get('disabled')
end

#disabled=(val) ⇒ Object

Disable the rule



35918
35919
35920
# File 'lib/palo_alto/config.rb', line 35918

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

#fromObject



35661
35662
35663
# File 'lib/palo_alto/config.rb', line 35661

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

#group_tagObject



35927
35928
35929
# File 'lib/palo_alto/config.rb', line 35927

def group_tag
prop_get('group-tag')
end

#group_tag=(val) ⇒ Object



35930
35931
35932
# File 'lib/palo_alto/config.rb', line 35930

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

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#log_settingObject



35933
35934
35935
# File 'lib/palo_alto/config.rb', line 35933

def log_setting
prop_get('log-setting')
end

#log_setting=(val) ⇒ Object



35936
35937
35938
# File 'lib/palo_alto/config.rb', line 35936

def log_setting=(val)
prop_set('log-setting', val)
end

#nameObject

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



35892
35893
35894
# File 'lib/palo_alto/config.rb', line 35892

def name
prop_get('@name')
end

#negate_destinationObject



35907
35908
35909
# File 'lib/palo_alto/config.rb', line 35907

def negate_destination
prop_get('negate-destination')
end

#negate_destination=(val) ⇒ Object



35910
35911
35912
# File 'lib/palo_alto/config.rb', line 35910

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

#negate_sourceObject



35901
35902
35903
# File 'lib/palo_alto/config.rb', line 35901

def negate_source
prop_get('negate-source')
end

#negate_source=(val) ⇒ Object



35904
35905
35906
# File 'lib/palo_alto/config.rb', line 35904

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

#protectionObject



35847
35848
35849
# File 'lib/palo_alto/config.rb', line 35847

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

#scheduleObject



35895
35896
35897
# File 'lib/palo_alto/config.rb', line 35895

def schedule
prop_get('schedule')
end

#schedule=(val) ⇒ Object



35898
35899
35900
# File 'lib/palo_alto/config.rb', line 35898

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

#serviceObject



35767
35768
35769
# File 'lib/palo_alto/config.rb', line 35767

def service
maybe_register_subclass('service', Service.new(parent_instance: self, client: @client, create_children: @create_children))
end

#sourceObject



35719
35720
35721
# File 'lib/palo_alto/config.rb', line 35719

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

#source_userObject



35735
35736
35737
# File 'lib/palo_alto/config.rb', line 35735

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

#tagObject



35783
35784
35785
# File 'lib/palo_alto/config.rb', line 35783

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

#targetObject



35619
35620
35621
# File 'lib/palo_alto/config.rb', line 35619

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

#toObject



35703
35704
35705
# File 'lib/palo_alto/config.rb', line 35703

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