# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::Inventory (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::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.

<br />

For more information, see [Information provided by OS inventory
management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #items

    def items() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OsConfig::V1::Inventory::Item}

**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.

### #items=

    def items=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::OsConfig::V1::Inventory::Item}

**Parameter**

- **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

    def name() -> ::String

**Returns**

- (::String) --- Output only. The `Inventory` API resource name.


  Format:
  `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`

### #os_info

    def os_info() -> ::Google::Cloud::OsConfig::V1::Inventory::OsInfo

**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM.

### #os_info=

    def os_info=(value) -> ::Google::Cloud::OsConfig::V1::Inventory::OsInfo

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::OsInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Inventory-OsInfo)) --- Base level operating system information for the VM.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp of the last reported inventory for the VM.