Class: Google::Apis::MigrationcenterV1::Asset

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

Overview

An asset represents a resource in your environment. Asset types include virtual machines and databases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset.



432
433
434
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 432

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

Instance Attribute Details

#assigned_groupsArray<String>

Output only. The list of groups that the asset is assigned to. Corresponds to the JSON property assignedGroups

Returns:

  • (Array<String>)


385
386
387
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 385

def assigned_groups
  @assigned_groups
end

#attributesHash<String,String>

Generic asset attributes. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


390
391
392
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 390

def attributes
  @attributes
end

#create_timeString

Output only. The timestamp when the asset was created. Corresponds to the JSON property createTime

Returns:

  • (String)


395
396
397
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 395

def create_time
  @create_time
end

#insight_listGoogle::Apis::MigrationcenterV1::InsightList

Message containing insights list. Corresponds to the JSON property insightList



400
401
402
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 400

def insight_list
  @insight_list
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


405
406
407
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 405

def labels
  @labels
end

#machine_detailsGoogle::Apis::MigrationcenterV1::MachineDetails

Details of a machine. Corresponds to the JSON property machineDetails



410
411
412
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 410

def machine_details
  @machine_details
end

#nameString

Output only. The full name of the asset. Corresponds to the JSON property name

Returns:

  • (String)


415
416
417
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 415

def name
  @name
end

#performance_dataGoogle::Apis::MigrationcenterV1::AssetPerformanceData

Performance data for an asset. Corresponds to the JSON property performanceData



420
421
422
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 420

def performance_data
  @performance_data
end

#sourcesArray<String>

Output only. The list of sources contributing to the asset. Corresponds to the JSON property sources

Returns:

  • (Array<String>)


425
426
427
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 425

def sources
  @sources
end

#update_timeString

Output only. The timestamp when the asset was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


430
431
432
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 430

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



437
438
439
440
441
442
443
444
445
446
447
448
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 437

def update!(**args)
  @assigned_groups = args[:assigned_groups] if args.key?(:assigned_groups)
  @attributes = args[:attributes] if args.key?(:attributes)
  @create_time = args[:create_time] if args.key?(:create_time)
  @insight_list = args[:insight_list] if args.key?(:insight_list)
  @labels = args[:labels] if args.key?(:labels)
  @machine_details = args[:machine_details] if args.key?(:machine_details)
  @name = args[:name] if args.key?(:name)
  @performance_data = args[:performance_data] if args.key?(:performance_data)
  @sources = args[:sources] if args.key?(:sources)
  @update_time = args[:update_time] if args.key?(:update_time)
end