Class: Google::Apis::MigrationcenterV1alpha1::Asset

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 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.



455
456
457
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 455

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>)


392
393
394
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 392

def assigned_groups
  @assigned_groups
end

#attributesHash<String,String>

Generic asset attributes. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


397
398
399
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 397

def attributes
  @attributes
end

#create_timeString

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

Returns:

  • (String)


402
403
404
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 402

def create_time
  @create_time
end

#hiddenBoolean Also known as: hidden?

Optional. Indicates if the asset is hidden. Corresponds to the JSON property hidden

Returns:

  • (Boolean)


407
408
409
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 407

def hidden
  @hidden
end

#hide_reasonString

Optional. An optional reason for marking this asset as hidden. Corresponds to the JSON property hideReason

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 413

def hide_reason
  @hide_reason
end

#hide_timeString

Output only. The timestamp when the asset was marked as hidden. Corresponds to the JSON property hideTime

Returns:

  • (String)


418
419
420
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 418

def hide_time
  @hide_time
end

#insight_listGoogle::Apis::MigrationcenterV1alpha1::InsightList

Message containing insights list. Corresponds to the JSON property insightList



423
424
425
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 423

def insight_list
  @insight_list
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


428
429
430
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 428

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


433
434
435
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 433

def name
  @name
end

#performance_dataGoogle::Apis::MigrationcenterV1alpha1::AssetPerformanceData

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



438
439
440
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 438

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>)


443
444
445
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 443

def sources
  @sources
end

#update_timeString

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

Returns:

  • (String)


448
449
450
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 448

def update_time
  @update_time
end

#virtual_machine_detailsGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineDetails

Details of a VirtualMachine. Corresponds to the JSON property virtualMachineDetails



453
454
455
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 453

def virtual_machine_details
  @virtual_machine_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 460

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)
  @hidden = args[:hidden] if args.key?(:hidden)
  @hide_reason = args[:hide_reason] if args.key?(:hide_reason)
  @hide_time = args[:hide_time] if args.key?(:hide_time)
  @insight_list = args[:insight_list] if args.key?(:insight_list)
  @labels = args[:labels] if args.key?(:labels)
  @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)
  @virtual_machine_details = args[:virtual_machine_details] if args.key?(:virtual_machine_details)
end