# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::Inventory::Item (v0.17.0)

0.17.0 (latest) 0.16.1 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::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::V1alpha::Inventory::SoftwarePackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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-os_config-v1alpha/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-os_config-v1alpha/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-os_config-v1alpha/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::V1alpha::Inventory::SoftwarePackage

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::Item::OriginType

**Returns**

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

### #origin_type=

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

**Parameter**

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

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

### #type

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

**Returns**

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

### #type=

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

**Parameter**

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

- ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-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-os_config-v1alpha/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-os_config-v1alpha/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-os_config-v1alpha/latest/Google-Protobuf-Timestamp)) --- When this inventory item was last modified.