Class: PaloAlto::XML::Config::Shared::PostRulebase::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



40713
40714
40715
# File 'lib/palo_alto/config.rb', line 40713

def _section
:entry
end

#actionObject



41075
41076
41077
# File 'lib/palo_alto/config.rb', line 41075

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

#descriptionObject



41109
41110
41111
# File 'lib/palo_alto/config.rb', line 41109

def description
prop_get('description')
end

#description=(val) ⇒ Object



41112
41113
41114
# File 'lib/palo_alto/config.rb', line 41112

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

#destinationObject



40939
40940
40941
# File 'lib/palo_alto/config.rb', line 40939

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

#disabledObject

Disable the rule



41102
41103
41104
# File 'lib/palo_alto/config.rb', line 41102

def disabled
prop_get('disabled')
end

#disabled=(val) ⇒ Object

Disable the rule



41106
41107
41108
# File 'lib/palo_alto/config.rb', line 41106

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

#fromObject



40849
40850
40851
# File 'lib/palo_alto/config.rb', line 40849

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

#group_tagObject



41115
41116
41117
# File 'lib/palo_alto/config.rb', line 41115

def group_tag
prop_get('group-tag')
end

#group_tag=(val) ⇒ Object



41118
41119
41120
# File 'lib/palo_alto/config.rb', line 41118

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

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#log_settingObject



41121
41122
41123
# File 'lib/palo_alto/config.rb', line 41121

def log_setting
prop_get('log-setting')
end

#log_setting=(val) ⇒ Object



41124
41125
41126
# File 'lib/palo_alto/config.rb', line 41124

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

#nameObject

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



41080
41081
41082
# File 'lib/palo_alto/config.rb', line 41080

def name
prop_get('@name')
end

#negate_destinationObject



41095
41096
41097
# File 'lib/palo_alto/config.rb', line 41095

def negate_destination
prop_get('negate-destination')
end

#negate_destination=(val) ⇒ Object



41098
41099
41100
# File 'lib/palo_alto/config.rb', line 41098

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

#negate_sourceObject



41089
41090
41091
# File 'lib/palo_alto/config.rb', line 41089

def negate_source
prop_get('negate-source')
end

#negate_source=(val) ⇒ Object



41092
41093
41094
# File 'lib/palo_alto/config.rb', line 41092

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

#protectionObject



41035
41036
41037
# File 'lib/palo_alto/config.rb', line 41035

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

#scheduleObject



41083
41084
41085
# File 'lib/palo_alto/config.rb', line 41083

def schedule
prop_get('schedule')
end

#schedule=(val) ⇒ Object



41086
41087
41088
# File 'lib/palo_alto/config.rb', line 41086

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

#serviceObject



40955
40956
40957
# File 'lib/palo_alto/config.rb', line 40955

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

#sourceObject



40907
40908
40909
# File 'lib/palo_alto/config.rb', line 40907

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

#source_userObject



40923
40924
40925
# File 'lib/palo_alto/config.rb', line 40923

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

#tagObject



40971
40972
40973
# File 'lib/palo_alto/config.rb', line 40971

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

#targetObject



40807
40808
40809
# File 'lib/palo_alto/config.rb', line 40807

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

#toObject



40891
40892
40893
# File 'lib/palo_alto/config.rb', line 40891

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