(::Google::Protobuf::Map{::String => ::Google::Cloud::OsConfig::V1::Inventory::Item}) — 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.
value (::Google::Protobuf::Map{::String => ::Google::Cloud::OsConfig::V1::Inventory::Item}) — 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.
Returns
(::Google::Protobuf::Map{::String => ::Google::Cloud::OsConfig::V1::Inventory::Item}) — 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.
#name
defname()->::String
Returns
(::String) — Output only. The Inventory API resource name.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::OsConfig::V1::Inventory (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-OsConfig-V1-Inventory)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-OsConfig-V1-Inventory)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-OsConfig-V1-Inventory)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-OsConfig-V1-Inventory)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-OsConfig-V1-Inventory)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-OsConfig-V1-Inventory)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-OsConfig-V1-Inventory)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-OsConfig-V1-Inventory)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-OsConfig-V1-Inventory)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-OsConfig-V1-Inventory)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-OsConfig-V1-Inventory)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-OsConfig-V1-Inventory) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::OsConfig::V1::Inventory.\n\nThis API resource represents the available inventory data for a\nCompute Engine virtual machine (VM) instance at a given point in time.\n\n\nYou can use this API resource to determine the inventory data of your VM.\n\n\u003cbr /\u003e\n\nFor more information, see [Information provided by OS inventory\nmanagement](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #items\n\n def items() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item}) --- 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.\n\n### #items=\n\n def items=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item}) --- 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. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item}) --- 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.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The `Inventory` API resource name.\n\n\n Format:\n `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`\n\n### #os_info\n\n def os_info() -\u003e ::Google::Cloud::OsConfig::V1::Inventory::OsInfo\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](./Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM.\n\n### #os_info=\n\n def os_info=(value) -\u003e ::Google::Cloud::OsConfig::V1::Inventory::OsInfo\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](./Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](./Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. Timestamp of the last reported inventory for the VM."]]