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 <https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected>__.
Attributes
Name
Description
name
str
Output only. The Inventory API resource name.
Format:
projects/{project_number}/locations/{location}/instances/{instance_id}/inventory
MutableMapping[str, google.cloud.osconfig_v1.types.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.
update_time
google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp of the last reported
inventory for the VM.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
Software package information of the operating system.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
Details related to a Windows Update package. Field data and names
are taken from Windows Update API IUpdate Interface:
https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive
fields like title, and description are localized based on the locale
of the VM being updated.
[[["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-08-11 UTC."],[],[],null,["# Class Inventory (1.21.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.21.0 (latest)](/python/docs/reference/osconfig/latest/google.cloud.osconfig_v1.types.Inventory)\n- [1.20.2](/python/docs/reference/osconfig/1.20.2/google.cloud.osconfig_v1.types.Inventory)\n- [1.19.0](/python/docs/reference/osconfig/1.19.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.18.1](/python/docs/reference/osconfig/1.18.1/google.cloud.osconfig_v1.types.Inventory)\n- [1.17.5](/python/docs/reference/osconfig/1.17.5/google.cloud.osconfig_v1.types.Inventory)\n- [1.16.0](/python/docs/reference/osconfig/1.16.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.15.3](/python/docs/reference/osconfig/1.15.3/google.cloud.osconfig_v1.types.Inventory)\n- [1.14.1](/python/docs/reference/osconfig/1.14.1/google.cloud.osconfig_v1.types.Inventory)\n- [1.13.0](/python/docs/reference/osconfig/1.13.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.12.4](/python/docs/reference/osconfig/1.12.4/google.cloud.osconfig_v1.types.Inventory)\n- [1.11.2](/python/docs/reference/osconfig/1.11.2/google.cloud.osconfig_v1.types.Inventory)\n- [1.10.0](/python/docs/reference/osconfig/1.10.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.9.0](/python/docs/reference/osconfig/1.9.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.8.0](/python/docs/reference/osconfig/1.8.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.7.1](/python/docs/reference/osconfig/1.7.1/google.cloud.osconfig_v1.types.Inventory)\n- [1.6.0](/python/docs/reference/osconfig/1.6.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.5.2](/python/docs/reference/osconfig/1.5.2/google.cloud.osconfig_v1.types.Inventory)\n- [1.4.0](/python/docs/reference/osconfig/1.4.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.3.2](/python/docs/reference/osconfig/1.3.2/google.cloud.osconfig_v1.types.Inventory)\n- [1.2.0](/python/docs/reference/osconfig/1.2.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.1.0](/python/docs/reference/osconfig/1.1.0/google.cloud.osconfig_v1.types.Inventory)\n- [1.0.0](/python/docs/reference/osconfig/1.0.0/google.cloud.osconfig_v1.types.Inventory)\n- [0.1.2](/python/docs/reference/osconfig/0.1.2/google.cloud.osconfig_v1.types.Inventory) \n\n Inventory(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThis API resource represents the available inventory data for a\nCompute Engine virtual machine (VM) instance at a given point in\ntime.\n\nYou can use this API resource to determine the inventory data of\nyour VM.\n\nFor more information, see `Information provided by OS inventory\nmanagement \u003chttps://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected\u003e`__.\n\nClasses\n-------\n\n### Item\n\n Item(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nA single piece of inventory on a VM.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\n### ItemsEntry\n\n ItemsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message.\n\n### OsInfo\n\n OsInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nOperating system information for the VM.\n\n### SoftwarePackage\n\n SoftwarePackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nSoftware package information of the operating system.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e\n\n### VersionedPackage\n\n VersionedPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nInformation related to the a standard versioned package.\nThis includes package info for APT, Yum, Zypper, and Googet\npackage managers.\n\n### WindowsApplication\n\n WindowsApplication(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nContains information about a Windows application that is\nretrieved from the Windows Registry. For more information about\nthese fields, see:\n\n\u003chttps://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key\u003e\n\n### WindowsQuickFixEngineeringPackage\n\n WindowsQuickFixEngineeringPackage(\n mapping=None, *, ignore_unknown_fields=False, **kwargs\n )\n\nInformation related to a Quick Fix Engineering package.\nFields are taken from Windows QuickFixEngineering Interface and\nmatch the source names:\n\n\u003chttps://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering\u003e\n\n### WindowsUpdatePackage\n\n WindowsUpdatePackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDetails related to a Windows Update package. Field data and names\nare taken from Windows Update API IUpdate Interface:\n\u003chttps://docs.microsoft.com/en-us/windows/win32/api/_wua/\u003e Descriptive\nfields like title, and description are localized based on the locale\nof the VM being updated.\n\n### ZypperPatch\n\n ZypperPatch(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nDetails related to a Zypper Patch."]]