1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::OsConfig::V1::Inventory::Item.

A single piece of inventory on a VM.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #available_package

    def available_package() -> ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage

**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.


  Note: The following fields are mutually exclusive: `available_package`, `installed_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #available_package=

    def available_package=(value) -> ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.


  Note: The following fields are mutually exclusive: `available_package`, `installed_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.


  Note: The following fields are mutually exclusive: `available_package`, `installed_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was first detected.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was first detected.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was first detected.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Identifier for this item, unique across items for this VM.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier for this item, unique across items for this VM.
**Returns**

- (::String) --- Identifier for this item, unique across items for this VM.

### #installed_package

    def installed_package() -> ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage

**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.


  Note: The following fields are mutually exclusive: `installed_package`, `available_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #installed_package=

    def installed_package=(value) -> ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.


  Note: The following fields are mutually exclusive: `installed_package`, `available_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.


  Note: The following fields are mutually exclusive: `installed_package`, `available_package`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #origin_type

    def origin_type() -> ::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType

**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item.

### #origin_type=

    def origin_type=(value) -> ::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item.

### #type

    def type() -> ::Google::Cloud::OsConfig::V1::Inventory::Item::Type

**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details.

### #type=

    def type=(value) -> ::Google::Cloud::OsConfig::V1::Inventory::Item::Type

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details.
**Returns**

- ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was last modified.

### #update_time=

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

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was last modified.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Protobuf-Timestamp)) --- When this inventory item was last modified.