class Nexpose::EnginePoolSummary
A summary of an engine pool.
Attributes
id[R]
Unique identifier of the engine pool.
name[R]
Name of the engine pool.
scope[R]
Whether the engine pool has global or silo scope.
Public Class Methods
new(id, name, scope = 'silo')
click to toggle source
# File lib/nexpose/pool.rb, line 38 def initialize(id, name, scope = 'silo') @id = id.to_i @name = name @scope = scope end
Public Instance Methods
as_xml()
click to toggle source
# File lib/nexpose/pool.rb, line 55 def as_xml xml = REXML::Element.new('EnginePool') xml.add_attribute('name', @name) xml.add_attribute('scope', @scope) xml end
delete(conn)
click to toggle source
Deletes an engine pool
@param [Connection] conn Connection
to console where site exists.
# File lib/nexpose/pool.rb, line 48 def delete(conn) xml = conn.make_xml('EnginePoolDeleteRequest') xml.add_element(as_xml) result = conn.execute(xml, '1.2') result.success end