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]



209
210
211
# File 'lib/nexpose/external.rb', line 209

def asset
  @asset
end

#asset_idObject (readonly)

Resulting asset ID of the created asset, if any.



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

def asset_id
  @asset_id
end

#error_messageObject (readonly)

Any error messages associated with the import of the asset.



211
212
213
# File 'lib/nexpose/external.rb', line 211

def error_message
  @error_message
end

#nameObject (readonly)

IP or hostname provided during import.



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

def name
  @name
end