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.
-
#database_deployment_details ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseDeploymentDetails
The details of a database deployment asset.
-
#database_details ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseDetails
Details of a logical database.
-
#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.
-
#title ⇒ 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.
471 472 473 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 471 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
393 394 395 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 393 def assigned_groups @assigned_groups end |
#attributes ⇒ Hash<String,String>
Generic asset attributes.
Corresponds to the JSON property attributes
398 399 400 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 398 def attributes @attributes end |
#create_time ⇒ String
Output only. The timestamp when the asset was created.
Corresponds to the JSON property createTime
403 404 405 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 403 def create_time @create_time end |
#database_deployment_details ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseDeploymentDetails
The details of a database deployment asset.
Corresponds to the JSON property databaseDeploymentDetails
408 409 410 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 408 def database_deployment_details @database_deployment_details end |
#database_details ⇒ Google::Apis::MigrationcenterV1alpha1::DatabaseDetails
Details of a logical database.
Corresponds to the JSON property databaseDetails
413 414 415 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 413 def database_details @database_details end |
#hidden ⇒ Boolean Also known as:
Optional. Indicates if the asset is hidden.
Corresponds to the JSON property hidden
418 419 420 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 418 def hidden @hidden end |
#hide_reason ⇒ String
Optional. An optional reason for marking this asset as hidden.
Corresponds to the JSON property hideReason
424 425 426 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 424 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
429 430 431 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 429 def hide_time @hide_time end |
#insight_list ⇒ Google::Apis::MigrationcenterV1alpha1::InsightList
Message containing insights list.
Corresponds to the JSON property insightList
434 435 436 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 434 def insight_list @insight_list end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
439 440 441 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 439 def labels @labels end |
#name ⇒ String
Output only. The full name of the asset.
Corresponds to the JSON property name
444 445 446 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 444 def name @name end |
#performance_data ⇒ Google::Apis::MigrationcenterV1alpha1::AssetPerformanceData
Performance data for an asset.
Corresponds to the JSON property performanceData
449 450 451 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 449 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
454 455 456 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 454 def sources @sources end |
#title ⇒ String
Output only. Server generated human readable name of the asset.
Corresponds to the JSON property title
459 460 461 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 459 def title @title end |
#update_time ⇒ String
Output only. The timestamp when the asset was last updated.
Corresponds to the JSON property updateTime
464 465 466 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 464 def update_time @update_time end |
#virtual_machine_details ⇒ Google::Apis::MigrationcenterV1alpha1::VirtualMachineDetails
Details of a VirtualMachine.
Corresponds to the JSON property virtualMachineDetails
469 470 471 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 469 def virtual_machine_details @virtual_machine_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 476 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) @database_deployment_details = args[:database_deployment_details] if args.key?(:database_deployment_details) @database_details = args[:database_details] if args.key?(:database_details) @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) @title = args[:title] if args.key?(:title) @update_time = args[:update_time] if args.key?(:update_time) @virtual_machine_details = args[:virtual_machine_details] if args.key?(:virtual_machine_details) end |