def import_assets(site_id, assets)
      json = JSON.generate(Array(assets).map(&:to_h))
      import_assets_from_json(site_id, json)
    end
def import_assets(site_id, assets)
      json = JSON.generate(Array(assets).map(&:to_h))
      import_assets_from_json(site_id, json)
    end
Import external assets into a Nexpose console.

 This method will synchronously import a collection of assets into the
 console. Each call to this method will be treated as a single event.

 This method should only be used against "static" sites, i.e., those not
 tied to a dynamic population service like vSphere, AWS, etc.

 If a paused scan exists on the site at the time of import, the newly
 imported assets will not be included in the scan when it resumes.

 @param [Fixnum] site_id Existing site to import assets into.
 @param [Array[External::Asset]] assets External assets to import.
 @return [Array[ImportResult]] collection of import results.