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 Asset V1 API - Class Google::Cloud::OsConfig::V1::Inventory::Item (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-OsConfig-V1-Inventory-Item)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-OsConfig-V1-Inventory-Item) \nReference documentation and code samples for the Cloud Asset 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."]]