Class: Google::Apis::MigrationcenterV1alpha1::AssetFrame

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

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.



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

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


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

def attributes
  @attributes
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


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

def labels
  @labels
end

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

Asset performance data samples. Corresponds to the JSON property performanceSamples



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

def performance_samples
  @performance_samples
end

#report_timeString

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

Returns:

  • (String)


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

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)


416
417
418
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 416

def trace_token
  @trace_token
end

#virtual_machine_detailsGoogle::Apis::MigrationcenterV1alpha1::VirtualMachineDetails

Details of a VirtualMachine. Corresponds to the JSON property virtualMachineDetails



421
422
423
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 421

def virtual_machine_details
  @virtual_machine_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
432
433
434
435
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 428

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @labels = args[:labels] if args.key?(:labels)
  @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)
  @virtual_machine_details = args[:virtual_machine_details] if args.key?(:virtual_machine_details)
end