class Google::Apis::OsconfigV1::Inventory
This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time. You can use this API resource to determine the inventory data of your VM. For more information, see [Information provided by OS inventory management](cloud.google.com/ compute/docs/instances/os-inventory-management#data-collected).
Attributes
Inventory
items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version. Corresponds to the JSON property `items` @return [Hash<String,Google::Apis::OsconfigV1::InventoryItem>]
Output only. The `Inventory` API resource name. Format: `projects/` project_number`/locations/`location`/instances/`instance_id`/inventory` Corresponds to the JSON property `name` @return [String]
Operating system information for the VM. Corresponds to the JSON property `osInfo` @return [Google::Apis::OsconfigV1::InventoryOsInfo]
Output only. Timestamp of the last reported inventory for the VM. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/osconfig_v1/classes.rb, line 412 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/osconfig_v1/classes.rb, line 417 def update!(**args) @items = args[:items] if args.key?(:items) @name = args[:name] if args.key?(:name) @os_info = args[:os_info] if args.key?(:os_info) @update_time = args[:update_time] if args.key?(:update_time) end