Class: Google::Apis::MigrationcenterV1::AssetFrame
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::AssetFrame
- 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
-
#attributes ⇒ Hash<String,String>
Generic asset attributes.
-
#collection_type ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#machine_details ⇒ Google::Apis::MigrationcenterV1::MachineDetails
Details of a machine.
-
#performance_samples ⇒ Array<Google::Apis::MigrationcenterV1::PerformanceSample>
Asset performance data samples.
-
#report_time ⇒ String
The time the data was reported.
-
#trace_token ⇒ String
Optional.
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.
493 494 495 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 493 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,String>
Generic asset attributes.
Corresponds to the JSON property attributes
458 459 460 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 458 def attributes @attributes end |
#collection_type ⇒ String
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
464 465 466 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 464 def collection_type @collection_type end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
469 470 471 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 469 def labels @labels end |
#machine_details ⇒ Google::Apis::MigrationcenterV1::MachineDetails
Details of a machine.
Corresponds to the JSON property machineDetails
474 475 476 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 474 def machine_details @machine_details end |
#performance_samples ⇒ Array<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
480 481 482 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 480 def performance_samples @performance_samples end |
#report_time ⇒ String
The time the data was reported.
Corresponds to the JSON property reportTime
485 486 487 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 485 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
491 492 493 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 491 def trace_token @trace_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
498 499 500 501 502 503 504 505 506 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 498 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @collection_type = args[:collection_type] if args.key?(:collection_type) @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 |