Class: Google::Apis::MigrationcenterV1::Asset
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::Asset
- 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
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::MigrationcenterV1::DatabaseDeploymentDetails
The details of a database deployment asset.
-
#database_details ⇒ Google::Apis::MigrationcenterV1::DatabaseDetails
Details of a logical database.
-
#insight_list ⇒ Google::Apis::MigrationcenterV1::InsightList
Message containing insights list.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#machine_details ⇒ Google::Apis::MigrationcenterV1::MachineDetails
Details of a machine.
-
#name ⇒ String
Output only.
-
#performance_data ⇒ Google::Apis::MigrationcenterV1::AssetPerformanceData
Performance data for an asset.
-
#sources ⇒ Array<String>
Output only.
-
#title ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
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.
447 448 449 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 447 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
385 386 387 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 385 def assigned_groups @assigned_groups end |
#attributes ⇒ Hash<String,String>
Generic asset attributes.
Corresponds to the JSON property attributes
390 391 392 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 390 def attributes @attributes end |
#create_time ⇒ String
Output only. The timestamp when the asset was created.
Corresponds to the JSON property createTime
395 396 397 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 395 def create_time @create_time end |
#database_deployment_details ⇒ Google::Apis::MigrationcenterV1::DatabaseDeploymentDetails
The details of a database deployment asset.
Corresponds to the JSON property databaseDeploymentDetails
400 401 402 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 400 def database_deployment_details @database_deployment_details end |
#database_details ⇒ Google::Apis::MigrationcenterV1::DatabaseDetails
Details of a logical database.
Corresponds to the JSON property databaseDetails
405 406 407 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 405 def database_details @database_details end |
#insight_list ⇒ Google::Apis::MigrationcenterV1::InsightList
Message containing insights list.
Corresponds to the JSON property insightList
410 411 412 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 410 def insight_list @insight_list end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
415 416 417 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 415 def labels @labels end |
#machine_details ⇒ Google::Apis::MigrationcenterV1::MachineDetails
Details of a machine.
Corresponds to the JSON property machineDetails
420 421 422 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 420 def machine_details @machine_details end |
#name ⇒ String
Output only. The full name of the asset.
Corresponds to the JSON property name
425 426 427 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 425 def name @name end |
#performance_data ⇒ Google::Apis::MigrationcenterV1::AssetPerformanceData
Performance data for an asset.
Corresponds to the JSON property performanceData
430 431 432 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 430 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
435 436 437 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 435 def sources @sources end |
#title ⇒ String
Output only. Server generated human readable name of the asset.
Corresponds to the JSON property title
440 441 442 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 440 def title @title end |
#update_time ⇒ String
Output only. The timestamp when the asset was last updated.
Corresponds to the JSON property updateTime
445 446 447 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 445 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 452 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) @insight_list = args[:insight_list] if args.key?(:insight_list) @labels = args[:labels] if args.key?(:labels) @machine_details = args[:machine_details] if args.key?(:machine_details) @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) end |