Class: PaloAlto::XML::Config::Shared::Threats::Vulnerability::Entry

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

Defined Under Namespace

Classes: AffectedHost, Bugtraq, Cve, DefaultAction, Reference, Signature, Vendor

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



11239
11240
11241
# File 'lib/palo_alto/config.rb', line 11239

def _section
:entry
end

#affected_hostObject



11261
11262
11263
# File 'lib/palo_alto/config.rb', line 11261

def affected_host
@subclasses['affected-host'] ||= AffectedHost.new(parent_instance: self, client: @client, create_children: @create_children)
end

#bugtraqObject



11391
11392
11393
# File 'lib/palo_alto/config.rb', line 11391

def bugtraq
maybe_register_subclass('bugtraq', Bugtraq.new(parent_instance: self, client: @client, create_children: @create_children))
end

#commentObject



11935
11936
11937
# File 'lib/palo_alto/config.rb', line 11935

def comment
prop_get('comment')
end

#comment=(val) ⇒ Object



11938
11939
11940
# File 'lib/palo_alto/config.rb', line 11938

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

#cveObject



11373
11374
11375
# File 'lib/palo_alto/config.rb', line 11373

def cve
maybe_register_subclass('cve', Cve.new(parent_instance: self, client: @client, create_children: @create_children))
end

#default_actionObject



11355
11356
11357
# File 'lib/palo_alto/config.rb', line 11355

def default_action
maybe_register_subclass('default-action', DefaultAction.new(parent_instance: self, client: @client, create_children: @create_children))
end

#directionObject



11947
11948
11949
# File 'lib/palo_alto/config.rb', line 11947

def direction
prop_get('direction')
end

#direction=(val) ⇒ Object



11950
11951
11952
# File 'lib/palo_alto/config.rb', line 11950

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

#disable_overrideObject

disable object override in child device groups



11920
11921
11922
# File 'lib/palo_alto/config.rb', line 11920

def disable_override
prop_get('disable-override')
end

#disable_override=(val) ⇒ Object

disable object override in child device groups



11924
11925
11926
# File 'lib/palo_alto/config.rb', line 11924

def disable_override=(val)
prop_set('disable-override', val)
end

#has_multiple_values?Boolean

Returns:

  • (Boolean)


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

def has_multiple_values?; false; end

#nameObject

threat id range <41000-45000> and <6800001-6900000>



11916
11917
11918
# File 'lib/palo_alto/config.rb', line 11916

def name
prop_get('@name')
end

#referenceObject



11427
11428
11429
# File 'lib/palo_alto/config.rb', line 11427

def reference
maybe_register_subclass('reference', Reference.new(parent_instance: self, client: @client, create_children: @create_children))
end

#severityObject



11941
11942
11943
# File 'lib/palo_alto/config.rb', line 11941

def severity
prop_get('severity')
end

#severity=(val) ⇒ Object



11944
11945
11946
# File 'lib/palo_alto/config.rb', line 11944

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

#signatureObject



11911
11912
11913
# File 'lib/palo_alto/config.rb', line 11911

def signature
maybe_register_subclass('signature', Signature.new(parent_instance: self, client: @client, create_children: @create_children))
end

#threatnameObject

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



11928
11929
11930
# File 'lib/palo_alto/config.rb', line 11928

def threatname
prop_get('threatname')
end

#threatname=(val) ⇒ Object

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



11932
11933
11934
# File 'lib/palo_alto/config.rb', line 11932

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

#vendorObject



11409
11410
11411
# File 'lib/palo_alto/config.rb', line 11409

def vendor
maybe_register_subclass('vendor', Vendor.new(parent_instance: self, client: @client, create_children: @create_children))
end