Class: Google::Apis::MigrationcenterV1alpha1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::Asset
- 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
-
#assigned_groups ⇒ Array<String>
Output only.
-
#attributes ⇒ Hash<String,String>
Generic asset attributes.
-
#create_time ⇒ String
Output only.
-
#hidden ⇒ Boolean
(also: #hidden?)
Optional.
-
#hide_reason ⇒ String
Optional.
-
#hide_time ⇒ String
Output only.
-
#insight_list ⇒ Google::Apis::MigrationcenterV1alpha1::InsightList
Message containing insights list.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#name ⇒ String
Output only.
-
#performance_data ⇒ Google::Apis::MigrationcenterV1alpha1::AssetPerformanceData
Performance data for an asset.
-
#sources ⇒ Array<String>
Output only.
-
#update_time ⇒ String
Output only.
-
#virtual_machine_details ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails
Details of a VirtualMachine.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Asset
constructor
A new instance of Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Asset
Returns a new instance of Asset.
455 456 457 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assigned_groups ⇒ Array<String>
Output only. The list of groups that the asset is assigned to.
Corresponds to the JSON property assignedGroups
392 393 394 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 392 def assigned_groups @assigned_groups end |
#attributes ⇒ Hash<String,String>
Generic asset attributes.
Corresponds to the JSON property attributes
397 398 399 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 397 def attributes @attributes end |
#create_time ⇒ String
Output only. The timestamp when the asset was created.
Corresponds to the JSON property createTime
402 403 404 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 402 def create_time @create_time end |
#hidden ⇒ Boolean Also known as:
Optional. Indicates if the asset is hidden.
Corresponds to the JSON property hidden
407 408 409 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 407 def hidden @hidden end |
#hide_reason ⇒ String
Optional. An optional reason for marking this asset as hidden.
Corresponds to the JSON property hideReason
413 414 415 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 413 def hide_reason @hide_reason end |
#hide_time ⇒ String
Output only. The timestamp when the asset was marked as hidden.
Corresponds to the JSON property hideTime
418 419 420 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 418 def hide_time @hide_time end |
#insight_list ⇒ Google::Apis::MigrationcenterV1alpha1::InsightList
Message containing insights list.
Corresponds to the JSON property insightList
423 424 425 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 423 def insight_list @insight_list end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
428 429 430 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 428 def labels @labels end |
#name ⇒ String
Output only. The full name of the asset.
Corresponds to the JSON property name
433 434 435 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 433 def name @name end |
#performance_data ⇒ Google::Apis::MigrationcenterV1alpha1::AssetPerformanceData
Performance data for an asset.
Corresponds to the JSON property performanceData
438 439 440 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 438 def performance_data @performance_data end |
#sources ⇒ Array<String>
Output only. The list of sources contributing to the asset.
Corresponds to the JSON property sources
443 444 445 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 443 def sources @sources end |
#update_time ⇒ String
Output only. The timestamp when the asset was last updated.
Corresponds to the JSON property updateTime
448 449 450 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 448 def update_time @update_time end |
#virtual_machine_details ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails
Details of a VirtualMachine.
Corresponds to the JSON property virtualMachineDetails
453 454 455 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 453 def virtual_machine_details @virtual_machine_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 460 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) @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) @update_time = args[:update_time] if args.key?(:update_time) @virtual_machine_details = args[:virtual_machine_details] if args.key?(:virtual_machine_details) end |