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

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

Defined Under Namespace

Classes: Application, Category, Destination, DestinationHip, From, Option, ProfileSetting, Qos, Service, Source, SourceHip, SourceImei, SourceImsi, SourceNwSlice, 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



31919
31920
31921
# File 'lib/palo_alto/config.rb', line 31919

def _section
:entry
end

#actionObject



32527
32528
32529
# File 'lib/palo_alto/config.rb', line 32527

def action
prop_get('action')
end

#action=(val) ⇒ Object



32530
32531
32532
# File 'lib/palo_alto/config.rb', line 32530

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

#applicationObject



32141
32142
32143
# File 'lib/palo_alto/config.rb', line 32141

def application
maybe_register_subclass('application', Application.new(parent_instance: self, client: @client, create_children: @create_children))
end

#categoryObject



32125
32126
32127
# File 'lib/palo_alto/config.rb', line 32125

def category
maybe_register_subclass('category', Category.new(parent_instance: self, client: @client, create_children: @create_children))
end

#descriptionObject



32515
32516
32517
# File 'lib/palo_alto/config.rb', line 32515

def description
prop_get('description')
end

#description=(val) ⇒ Object



32518
32519
32520
# File 'lib/palo_alto/config.rb', line 32518

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

#destinationObject



32093
32094
32095
# File 'lib/palo_alto/config.rb', line 32093

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

#destination_hipObject



32221
32222
32223
# File 'lib/palo_alto/config.rb', line 32221

def destination_hip
maybe_register_subclass('destination-hip', DestinationHip.new(parent_instance: self, client: @client, create_children: @create_children))
end

#disable_inspectObject



32541
32542
32543
# File 'lib/palo_alto/config.rb', line 32541

def disable_inspect
prop_get('disable-inspect')
end

#disable_inspect=(val) ⇒ Object



32544
32545
32546
# File 'lib/palo_alto/config.rb', line 32544

def disable_inspect=(val)
prop_set('disable-inspect', val)
end

#disabledObject

Disable the rule



32508
32509
32510
# File 'lib/palo_alto/config.rb', line 32508

def disabled
prop_get('disabled')
end

#disabled=(val) ⇒ Object

Disable the rule



32512
32513
32514
# File 'lib/palo_alto/config.rb', line 32512

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

#fromObject



32029
32030
32031
# File 'lib/palo_alto/config.rb', line 32029

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

#group_tagObject



32521
32522
32523
# File 'lib/palo_alto/config.rb', line 32521

def group_tag
prop_get('group-tag')
end

#group_tag=(val) ⇒ Object



32524
32525
32526
# File 'lib/palo_alto/config.rb', line 32524

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

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#icmp_unreachableObject

Send ICMP unreachable error when action is drop or reset



32534
32535
32536
# File 'lib/palo_alto/config.rb', line 32534

def icmp_unreachable
prop_get('icmp-unreachable')
end

#icmp_unreachable=(val) ⇒ Object

Send ICMP unreachable error when action is drop or reset



32538
32539
32540
# File 'lib/palo_alto/config.rb', line 32538

def icmp_unreachable=(val)
prop_set('icmp-unreachable', val)
end

#log_endObject

Log at session end (required for certain ACC tables)



32568
32569
32570
# File 'lib/palo_alto/config.rb', line 32568

def log_end
prop_get('log-end')
end

#log_end=(val) ⇒ Object

Log at session end (required for certain ACC tables)



32572
32573
32574
# File 'lib/palo_alto/config.rb', line 32572

def log_end=(val)
prop_set('log-end', val)
end

#log_settingObject



32553
32554
32555
# File 'lib/palo_alto/config.rb', line 32553

def log_setting
prop_get('log-setting')
end

#log_setting=(val) ⇒ Object



32556
32557
32558
# File 'lib/palo_alto/config.rb', line 32556

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

#log_startObject

Log at session start



32560
32561
32562
# File 'lib/palo_alto/config.rb', line 32560

def log_start
prop_get('log-start')
end

#log_start=(val) ⇒ Object

Log at session start



32564
32565
32566
# File 'lib/palo_alto/config.rb', line 32564

def log_start=(val)
prop_set('log-start', val)
end

#nameObject

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



32486
32487
32488
# File 'lib/palo_alto/config.rb', line 32486

def name
prop_get('@name')
end

#negate_destinationObject



32501
32502
32503
# File 'lib/palo_alto/config.rb', line 32501

def negate_destination
prop_get('negate-destination')
end

#negate_destination=(val) ⇒ Object



32504
32505
32506
# File 'lib/palo_alto/config.rb', line 32504

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

#negate_sourceObject



32495
32496
32497
# File 'lib/palo_alto/config.rb', line 32495

def negate_source
prop_get('negate-source')
end

#negate_source=(val) ⇒ Object



32498
32499
32500
# File 'lib/palo_alto/config.rb', line 32498

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

#optionObject



32255
32256
32257
# File 'lib/palo_alto/config.rb', line 32255

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

#profile_settingObject



32435
32436
32437
# File 'lib/palo_alto/config.rb', line 32435

def profile_setting
maybe_register_subclass('profile-setting', ProfileSetting.new(parent_instance: self, client: @client, create_children: @create_children))
end

#qosObject



32481
32482
32483
# File 'lib/palo_alto/config.rb', line 32481

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

#rule_typeObject



32547
32548
32549
# File 'lib/palo_alto/config.rb', line 32547

def rule_type
prop_get('rule-type')
end

#rule_type=(val) ⇒ Object



32550
32551
32552
# File 'lib/palo_alto/config.rb', line 32550

def rule_type=(val)
prop_set('rule-type', val)
end

#scheduleObject



32489
32490
32491
# File 'lib/palo_alto/config.rb', line 32489

def schedule
prop_get('schedule')
end

#schedule=(val) ⇒ Object



32492
32493
32494
# File 'lib/palo_alto/config.rb', line 32492

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

#serviceObject



32109
32110
32111
# File 'lib/palo_alto/config.rb', line 32109

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

#sourceObject



32061
32062
32063
# File 'lib/palo_alto/config.rb', line 32061

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

#source_hipObject



32205
32206
32207
# File 'lib/palo_alto/config.rb', line 32205

def source_hip
maybe_register_subclass('source-hip', SourceHip.new(parent_instance: self, client: @client, create_children: @create_children))
end

#source_imeiObject



32173
32174
32175
# File 'lib/palo_alto/config.rb', line 32173

def source_imei
maybe_register_subclass('source-imei', SourceImei.new(parent_instance: self, client: @client, create_children: @create_children))
end

#source_imsiObject



32157
32158
32159
# File 'lib/palo_alto/config.rb', line 32157

def source_imsi
maybe_register_subclass('source-imsi', SourceImsi.new(parent_instance: self, client: @client, create_children: @create_children))
end

#source_nw_sliceObject



32189
32190
32191
# File 'lib/palo_alto/config.rb', line 32189

def source_nw_slice
maybe_register_subclass('source-nw-slice', SourceNwSlice.new(parent_instance: self, client: @client, create_children: @create_children))
end

#source_userObject



32077
32078
32079
# File 'lib/palo_alto/config.rb', line 32077

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

#tagObject



32237
32238
32239
# File 'lib/palo_alto/config.rb', line 32237

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

#targetObject



32013
32014
32015
# File 'lib/palo_alto/config.rb', line 32013

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

#toObject



32045
32046
32047
# File 'lib/palo_alto/config.rb', line 32045

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