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

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

Defined Under Namespace

Classes: Action, Application, Category, Destination, DestinationHip, DscpTos, From, Service, Source, SourceHip, 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



33669
33670
33671
# File 'lib/palo_alto/config.rb', line 33669

def _section
:entry
end

#actionObject



34107
34108
34109
# File 'lib/palo_alto/config.rb', line 34107

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

#applicationObject



33891
33892
33893
# File 'lib/palo_alto/config.rb', line 33891

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

#categoryObject



33875
33876
33877
# File 'lib/palo_alto/config.rb', line 33875

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

#descriptionObject



34141
34142
34143
# File 'lib/palo_alto/config.rb', line 34141

def description
prop_get('description')
end

#description=(val) ⇒ Object



34144
34145
34146
# File 'lib/palo_alto/config.rb', line 34144

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

#destinationObject



33843
33844
33845
# File 'lib/palo_alto/config.rb', line 33843

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

#destination_hipObject



33923
33924
33925
# File 'lib/palo_alto/config.rb', line 33923

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

#disabledObject

Disable the rule



34134
34135
34136
# File 'lib/palo_alto/config.rb', line 34134

def disabled
prop_get('disabled')
end

#disabled=(val) ⇒ Object

Disable the rule



34138
34139
34140
# File 'lib/palo_alto/config.rb', line 34138

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

#dscp_tosObject



34089
34090
34091
# File 'lib/palo_alto/config.rb', line 34089

def dscp_tos
maybe_register_subclass('dscp-tos', DscpTos.new(parent_instance: self, client: @client, create_children: @create_children))
end

#fromObject



33779
33780
33781
# File 'lib/palo_alto/config.rb', line 33779

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

#group_tagObject



34147
34148
34149
# File 'lib/palo_alto/config.rb', line 34147

def group_tag
prop_get('group-tag')
end

#group_tag=(val) ⇒ Object



34150
34151
34152
# File 'lib/palo_alto/config.rb', line 34150

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

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#nameObject

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



34112
34113
34114
# File 'lib/palo_alto/config.rb', line 34112

def name
prop_get('@name')
end

#negate_destinationObject



34127
34128
34129
# File 'lib/palo_alto/config.rb', line 34127

def negate_destination
prop_get('negate-destination')
end

#negate_destination=(val) ⇒ Object



34130
34131
34132
# File 'lib/palo_alto/config.rb', line 34130

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

#negate_sourceObject



34121
34122
34123
# File 'lib/palo_alto/config.rb', line 34121

def negate_source
prop_get('negate-source')
end

#negate_source=(val) ⇒ Object



34124
34125
34126
# File 'lib/palo_alto/config.rb', line 34124

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

#scheduleObject



34115
34116
34117
# File 'lib/palo_alto/config.rb', line 34115

def schedule
prop_get('schedule')
end

#schedule=(val) ⇒ Object



34118
34119
34120
# File 'lib/palo_alto/config.rb', line 34118

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

#serviceObject



33859
33860
33861
# File 'lib/palo_alto/config.rb', line 33859

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

#sourceObject



33811
33812
33813
# File 'lib/palo_alto/config.rb', line 33811

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

#source_hipObject



33907
33908
33909
# File 'lib/palo_alto/config.rb', line 33907

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

#source_userObject



33827
33828
33829
# File 'lib/palo_alto/config.rb', line 33827

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

#tagObject



33939
33940
33941
# File 'lib/palo_alto/config.rb', line 33939

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

#targetObject



33763
33764
33765
# File 'lib/palo_alto/config.rb', line 33763

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

#toObject



33795
33796
33797
# File 'lib/palo_alto/config.rb', line 33795

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