For {project}, either project-number or project-id can be provided.
For {instance}, either Compute Engine instance-id or instance-name
can be provided.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. API resource name for inventory resource.
For {project}, either project-number or project-id can be provided.
For {instance}, either Compute Engine instance-id or instance-name
can be provided.
Returns
(::String) — Required. API resource name for inventory resource.
For {project}, either project-number or project-id can be provided.
For {instance}, either Compute Engine instance-id or instance-name
can be provided.
(::Google::Cloud::OsConfig::V1::InventoryView) — Inventory view indicating what information should be included in the
inventory resource. If unspecified, the default view is BASIC.
value (::Google::Cloud::OsConfig::V1::InventoryView) — Inventory view indicating what information should be included in the
inventory resource. If unspecified, the default view is BASIC.
Returns
(::Google::Cloud::OsConfig::V1::InventoryView) — Inventory view indicating what information should be included in the
inventory resource. If unspecified, the default view is BASIC.
[[["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::GetInventoryRequest (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-GetInventoryRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-GetInventoryRequest)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-GetInventoryRequest) \nReference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::GetInventoryRequest.\n\nA request message for getting inventory data for the specified 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### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. API resource name for inventory resource.\n\n Format:\n `projects/{project}/locations/{location}/instances/{instance}/inventory`\n\n For `{project}`, either `project-number` or `project-id` can be provided.\n For `{instance}`, either Compute Engine `instance-id` or `instance-name`\n can be provided.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. API resource name for inventory resource.\n\n\n Format:\n `projects/{project}/locations/{location}/instances/{instance}/inventory`\n\n For `{project}`, either `project-number` or `project-id` can be provided.\n For `{instance}`, either Compute Engine `instance-id` or `instance-name`\ncan be provided. \n**Returns**\n\n- (::String) --- Required. API resource name for inventory resource.\n\n Format:\n `projects/{project}/locations/{location}/instances/{instance}/inventory`\n\n For `{project}`, either `project-number` or `project-id` can be provided.\n For `{instance}`, either Compute Engine `instance-id` or `instance-name`\n can be provided.\n\n### #view\n\n def view() -\u003e ::Google::Cloud::OsConfig::V1::InventoryView\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::InventoryView](./Google-Cloud-OsConfig-V1-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.\n\n### #view=\n\n def view=(value) -\u003e ::Google::Cloud::OsConfig::V1::InventoryView\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::InventoryView](./Google-Cloud-OsConfig-V1-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::InventoryView](./Google-Cloud-OsConfig-V1-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC."]]