Class: Google::Apis::MigrationcenterV1alpha1::Insight

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb

Overview

An insight about an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Insight

Returns a new instance of Insight.



2431
2432
2433
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2431

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#generic_insightGoogle::Apis::MigrationcenterV1alpha1::GenericInsight

A generic insight about an asset. Corresponds to the JSON property genericInsight



2419
2420
2421
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2419

def generic_insight
  @generic_insight
end

#migration_insightGoogle::Apis::MigrationcenterV1alpha1::MigrationInsight

An insight about potential migrations for an asset. Corresponds to the JSON property migrationInsight



2424
2425
2426
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2424

def migration_insight
  @migration_insight
end

#software_insightGoogle::Apis::MigrationcenterV1alpha1::SoftwareInsight

An insight regarding software detected on an asset. Corresponds to the JSON property softwareInsight



2429
2430
2431
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2429

def software_insight
  @software_insight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2436
2437
2438
2439
2440
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2436

def update!(**args)
  @generic_insight = args[:generic_insight] if args.key?(:generic_insight)
  @migration_insight = args[:migration_insight] if args.key?(:migration_insight)
  @software_insight = args[:software_insight] if args.key?(:software_insight)
end