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.



471
472
473
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 471

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


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

def assigned_groups
  @assigned_groups
end

#attributesHash<String,String>

Generic asset attributes. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


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

def attributes
  @attributes
end

#create_timeString

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

Returns:

  • (String)


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

def create_time
  @create_time
end

#database_deployment_detailsGoogle::Apis::MigrationcenterV1alpha1::DatabaseDeploymentDetails

The details of a database deployment asset. Corresponds to the JSON property databaseDeploymentDetails



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

def database_deployment_details
  @database_deployment_details
end

#database_detailsGoogle::Apis::MigrationcenterV1alpha1::DatabaseDetails

Details of a logical database. Corresponds to the JSON property databaseDetails



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

def database_details
  @database_details
end

#hiddenBoolean Also known as: hidden?

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

Returns:

  • (Boolean)


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

def hidden
  @hidden
end

#hide_reasonString

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

Returns:

  • (String)


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

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)


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

def hide_time
  @hide_time
end

#insight_listGoogle::Apis::MigrationcenterV1alpha1::InsightList

Message containing insights list. Corresponds to the JSON property insightList



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

def insight_list
  @insight_list
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


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

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

#performance_dataGoogle::Apis::MigrationcenterV1alpha1::AssetPerformanceData

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



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

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


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

def sources
  @sources
end

#titleString

Output only. Server generated human readable name of the asset. Corresponds to the JSON property title

Returns:

  • (String)


459
460
461
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 459

def title
  @title
end

#update_timeString

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

Returns:

  • (String)


464
465
466
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 464

def update_time
  @update_time
end

#virtual_machine_detailsGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineDetails

Details of a VirtualMachine. Corresponds to the JSON property virtualMachineDetails



469
470
471
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 469

def virtual_machine_details
  @virtual_machine_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 476

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)
  @database_deployment_details = args[:database_deployment_details] if args.key?(:database_deployment_details)
  @database_details = args[:database_details] if args.key?(:database_details)
  @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)
  @title = args[:title] if args.key?(:title)
  @update_time = args[:update_time] if args.key?(:update_time)
  @virtual_machine_details = args[:virtual_machine_details] if args.key?(:virtual_machine_details)
end