Class: PaloAlto::XML::Config

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

Defined Under Namespace

Classes: Devices, MgtConfig, Panorama, Predefined, Readonly, Shared

Constant Summary

Constants included from DSL

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

Instance Attribute Summary

Attributes inherited from ConfigClass

#api_attributes, #parent_instance, #subclasses

Attributes inherited from Expression

#arguments, #expression

Instance Method Summary collapse

Methods inherited from 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



737
738
739
# File 'lib/palo_alto/config.rb', line 737

def _section
:config
end

#devicesObject



271923
271924
271925
# File 'lib/palo_alto/config.rb', line 271923

def devices
maybe_register_subclass('devices', Devices.new(parent_instance: self, client: @client, create_children: @create_children))
end

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#mgt_configObject



43234
43235
43236
# File 'lib/palo_alto/config.rb', line 43234

def mgt_config
@subclasses['mgt-config'] ||= MgtConfig.new(parent_instance: self, client: @client, create_children: @create_children)
end

#panoramaObject



10217
10218
10219
# File 'lib/palo_alto/config.rb', line 10217

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

#predefinedObject



994
995
996
# File 'lib/palo_alto/config.rb', line 994

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

#readonlyObject



271933
271934
271935
# File 'lib/palo_alto/config.rb', line 271933

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

#sharedObject



42002
42003
42004
# File 'lib/palo_alto/config.rb', line 42002

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