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-08-28 UTC."],[],[],null,["# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::Inventory::Item (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.11.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.11.1/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.10.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.9.1/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.8.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.8.2/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.7.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.7.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.6.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.6.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.5.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.5.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.4.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.4.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.3.0](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.3.0/Google-Cloud-OsConfig-V1alpha-Inventory-Item)\n- [0.2.2](/ruby/docs/reference/google-cloud-os_config-v1alpha/0.2.2/Google-Cloud-OsConfig-V1alpha-Inventory-Item) \nReference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::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::V1alpha::Inventory::SoftwarePackage\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::SoftwarePackage](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::Item::OriginType\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1alpha-Inventory-Item-OriginType)) --- The origin of this inventory item.\n\n### #origin_type=\n\n def origin_type=(value) -\u003e ::Google::Cloud::OsConfig::V1alpha::Inventory::Item::OriginType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1alpha-Inventory-Item-OriginType)) --- The origin of this inventory item. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::OriginType](./Google-Cloud-OsConfig-V1alpha-Inventory-Item-OriginType)) --- The origin of this inventory item.\n\n### #type\n\n def type() -\u003e ::Google::Cloud::OsConfig::V1alpha::Inventory::Item::Type\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::Type](./Google-Cloud-OsConfig-V1alpha-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::V1alpha::Inventory::Item::Type\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::Type](./Google-Cloud-OsConfig-V1alpha-Inventory-Item-Type)) --- The specific type of inventory, correlating to its specific details. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1alpha::Inventory::Item::Type](./Google-Cloud-OsConfig-V1alpha-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."]]