Class: Nexpose::MobilePowershellDiscoveryConnection
- Inherits:
-
DiscoveryConnection
- Object
- APIObject
- DiscoveryConnection
- Nexpose::MobilePowershellDiscoveryConnection
- Defined in:
- lib/nexpose/discovery.rb
Instance Attribute Summary
Attributes inherited from DiscoveryConnection
#address, #collection_method, #engine_id, #event_source, #exchange_hostname, #exchange_password, #exchange_username, #id, #name, #password, #port, #protocol, #status, #type, #user
Instance Method Summary collapse
-
#initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password) ⇒ MobilePowershellDiscoveryConnection
constructor
Create a new Mobile Powershell discovery connection.
Methods inherited from DiscoveryConnection
#==, #as_xml, #connect, #create, #delete, #discover, #eql?, parse, #save, #to_h, #to_json, #to_xml, #update
Methods included from XMLUtils
#make_xml, #parse_xml, success?
Methods inherited from APIObject
Constructor Details
#initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password) ⇒ MobilePowershellDiscoveryConnection
Create a new Mobile Powershell discovery connection.
351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/nexpose/discovery.rb', line 351 def initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password) @name = name @address = address @user = user @password = password @protocol = Protocol::HTTPS @exchange_hostname = exchange_hostname @exchange_username = exchange_username @exchange_password = exchange_password @type = Type::ACTIVESYNC_POWERSHELL @id = -1 @port = 443 # Port not used for mobile connection end |