Class: Nexpose::External::ImportResult

Inherits:
APIObject
  • Object
show all
Defined in:
lib/nexpose/external.rb

Overview

Result object returned from an import_assets call, used to correlate the supplied scannable identifier with the resulting asset ID or any error messages from a problematic import.

Instance Attribute Summary collapse

Method Summary

Methods inherited from APIObject

#object_from_hash

Instance Attribute Details

#assetObject (readonly)

The asset created by the import. [Lazy]



204
205
206
# File 'lib/nexpose/external.rb', line 204

def asset
  @asset
end

#asset_idObject (readonly)

Resulting asset ID of the created asset, if any.



202
203
204
# File 'lib/nexpose/external.rb', line 202

def asset_id
  @asset_id
end

#error_messageObject (readonly)

Any error messages associated with the import of the asset.



206
207
208
# File 'lib/nexpose/external.rb', line 206

def error_message
  @error_message
end

#nameObject (readonly)

IP or hostname provided during import.



200
201
202
# File 'lib/nexpose/external.rb', line 200

def name
  @name
end