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.
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.
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.
[[["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-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class Inventory (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.Inventory)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.Inventory)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.Inventory)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.Inventory)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.Inventory)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.Inventory) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class 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\nYou can use this API resource to determine the inventory data of your VM.\nFor more information, see [Information provided by OS inventory\nmanagement](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).\n\nGenerated from protobuf message `google.cloud.osconfig.v1.Inventory`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The `Inventory` API resource name.\n\nFormat:\n`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`\n\n### setName\n\nOutput only. The `Inventory` API resource name.\n\nFormat:\n`projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`\n\n### getOsInfo\n\nBase level operating system information for the VM.\n\n### hasOsInfo\n\n### clearOsInfo\n\n### setOsInfo\n\nBase level operating system information for the VM.\n\n### getItems\n\nInventory items related to the VM keyed by an opaque unique identifier for\neach inventory item. The identifier is unique to each distinct and\naddressable inventory item and will change, when there is a new package\nversion.\n\n### setItems\n\nInventory items related to the VM keyed by an opaque unique identifier for\neach inventory item. The identifier is unique to each distinct and\naddressable inventory item and will change, when there is a new package\nversion.\n\n### getUpdateTime\n\nOutput only. Timestamp of the last reported inventory for the VM.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. Timestamp of the last reported inventory for the VM."]]