Class: Google::Apis::MigrationcenterV1alpha1::AssetFrame
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::AssetFrame
- 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
-
#attributes ⇒ Hash<String,String>
Generic asset attributes.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#performance_samples ⇒ Array<Google::Apis::MigrationcenterV1alpha1::PerformanceSample>
Asset performance data samples.
-
#report_time ⇒ String
The time the data was reported.
-
#trace_token ⇒ String
Optional.
-
#virtual_machine_details ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails
Details of a VirtualMachine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssetFrame
constructor
A new instance of AssetFrame.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AssetFrame
Returns a new instance of AssetFrame.
485 486 487 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 485 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,String>
Generic asset attributes.
Corresponds to the JSON property attributes
457 458 459 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 457 def attributes @attributes end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
462 463 464 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 462 def labels @labels end |
#performance_samples ⇒ Array<Google::Apis::MigrationcenterV1alpha1::PerformanceSample>
Asset performance data samples.
Corresponds to the JSON property performanceSamples
467 468 469 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 467 def performance_samples @performance_samples end |
#report_time ⇒ String
The time the data was reported.
Corresponds to the JSON property reportTime
472 473 474 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 472 def report_time @report_time end |
#trace_token ⇒ String
Optional. Trace token is optionally provided to assist with debugging and
traceability.
Corresponds to the JSON property traceToken
478 479 480 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 478 def trace_token @trace_token end |
#virtual_machine_details ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails
Details of a VirtualMachine.
Corresponds to the JSON property virtualMachineDetails
483 484 485 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 483 def virtual_machine_details @virtual_machine_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
490 491 492 493 494 495 496 497 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 490 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 |