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.
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.
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.
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.
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.
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.
[[["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-09 UTC."],[],[],null,["# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::Inventory::Item (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-Inventory-Item) \nReference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::Inventory::Item.\n\nA single piece of inventory on a VM. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #available_package\n\n def available_package() -\u003e ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.\n\n\n 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.\n\n### #available_package=\n\n def available_package=(value) -\u003e ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package available to be installed on the VM instance.\n\n\n 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.\n\n### #create_time\n\n def create_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was first detected.\n\n### #create_time=\n\n def create_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was first detected. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was first detected.\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Identifier for this item, unique across items for this VM.\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Identifier for this item, unique across items for this VM. \n**Returns**\n\n- (::String) --- Identifier for this item, unique across items for this VM.\n\n### #installed_package\n\n def installed_package() -\u003e ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.\n\n\n 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.\n\n### #installed_package=\n\n def installed_package=(value) -\u003e ::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1-Inventory-SoftwarePackage)) --- Software package present on the VM instance.\n\n\n 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.\n\n### #origin_type\n\n def origin_type() -\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item.\n\n### #origin_type=\n\n def origin_type=(value) -\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1-Inventory-Item-OriginType)) --- The origin of this inventory item.\n\n### #type\n\n def type() -\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item::Type\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](./Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details.\n\n### #type=\n\n def type=(value) -\u003e ::Google::Cloud::OsConfig::V1::Inventory::Item::Type\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](./Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::Inventory::Item::Type](./Google-Cloud-OsConfig-V1-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details.\n\n### #update_time\n\n def update_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was last modified.\n\n### #update_time=\n\n def update_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was last modified. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- When this inventory item was last modified."]]