Class: Google::Apis::OsconfigV1alpha::InventoryItem
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::InventoryItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/representations.rb
Overview
A single piece of inventory on a VM.
Instance Attribute Summary collapse
-
#available_package ⇒ Google::Apis::OsconfigV1alpha::InventorySoftwarePackage
Software package information of the operating system.
-
#create_time ⇒ String
When this inventory item was first detected.
-
#id ⇒ String
Identifier for this item, unique across items for this VM.
-
#installed_package ⇒ Google::Apis::OsconfigV1alpha::InventorySoftwarePackage
Software package information of the operating system.
-
#origin_type ⇒ String
The origin of this inventory item.
-
#type ⇒ String
The specific type of inventory, correlating to its specific details.
-
#update_time ⇒ String
When this inventory item was last modified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InventoryItem
constructor
A new instance of InventoryItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InventoryItem
Returns a new instance of InventoryItem.
377 378 379 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 377 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_package ⇒ Google::Apis::OsconfigV1alpha::InventorySoftwarePackage
Software package information of the operating system.
Corresponds to the JSON property availablePackage
345 346 347 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 345 def available_package @available_package end |
#create_time ⇒ String
When this inventory item was first detected.
Corresponds to the JSON property createTime
350 351 352 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 350 def create_time @create_time end |
#id ⇒ String
Identifier for this item, unique across items for this VM.
Corresponds to the JSON property id
355 356 357 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 355 def id @id end |
#installed_package ⇒ Google::Apis::OsconfigV1alpha::InventorySoftwarePackage
Software package information of the operating system.
Corresponds to the JSON property installedPackage
360 361 362 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 360 def installed_package @installed_package end |
#origin_type ⇒ String
The origin of this inventory item.
Corresponds to the JSON property originType
365 366 367 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 365 def origin_type @origin_type end |
#type ⇒ String
The specific type of inventory, correlating to its specific details.
Corresponds to the JSON property type
370 371 372 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 370 def type @type end |
#update_time ⇒ String
When this inventory item was last modified.
Corresponds to the JSON property updateTime
375 376 377 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 375 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
382 383 384 385 386 387 388 389 390 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 382 def update!(**args) @available_package = args[:available_package] if args.key?(:available_package) @create_time = args[:create_time] if args.key?(:create_time) @id = args[:id] if args.key?(:id) @installed_package = args[:installed_package] if args.key?(:installed_package) @origin_type = args[:origin_type] if args.key?(:origin_type) @type = args[:type] if args.key?(:type) @update_time = args[:update_time] if args.key?(:update_time) end |