Class: Google::Apis::MigrationcenterV1::AssetFrame

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

Contains data reported from an inventory source on an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssetFrame

Returns a new instance of AssetFrame.



521
522
523
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 521

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

Instance Attribute Details

#attributesHash<String,String>

Generic asset attributes. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


476
477
478
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 476

def attributes
  @attributes
end

#collection_typeString

Optional. Frame collection type, if not specified the collection type will be based on the source type of the source the frame was reported on. Corresponds to the JSON property collectionType

Returns:

  • (String)


482
483
484
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 482

def collection_type
  @collection_type
end

#database_deployment_detailsGoogle::Apis::MigrationcenterV1::DatabaseDeploymentDetails

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



487
488
489
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 487

def database_deployment_details
  @database_deployment_details
end

#database_detailsGoogle::Apis::MigrationcenterV1::DatabaseDetails

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



492
493
494
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 492

def database_details
  @database_details
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


497
498
499
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 497

def labels
  @labels
end

#machine_detailsGoogle::Apis::MigrationcenterV1::MachineDetails

Details of a machine. Corresponds to the JSON property machineDetails



502
503
504
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 502

def machine_details
  @machine_details
end

#performance_samplesArray<Google::Apis::MigrationcenterV1::PerformanceSample>

Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored. Corresponds to the JSON property performanceSamples



508
509
510
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 508

def performance_samples
  @performance_samples
end

#report_timeString

The time the data was reported. Corresponds to the JSON property reportTime

Returns:

  • (String)


513
514
515
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 513

def report_time
  @report_time
end

#trace_tokenString

Optional. Trace token is optionally provided to assist with debugging and traceability. Corresponds to the JSON property traceToken

Returns:

  • (String)


519
520
521
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 519

def trace_token
  @trace_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



526
527
528
529
530
531
532
533
534
535
536
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 526

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @collection_type = args[:collection_type] if args.key?(:collection_type)
  @database_deployment_details = args[:database_deployment_details] if args.key?(:database_deployment_details)
  @database_details = args[:database_details] if args.key?(:database_details)
  @labels = args[:labels] if args.key?(:labels)
  @machine_details = args[:machine_details] if args.key?(:machine_details)
  @performance_samples = args[:performance_samples] if args.key?(:performance_samples)
  @report_time = args[:report_time] if args.key?(:report_time)
  @trace_token = args[:trace_token] if args.key?(:trace_token)
end