# Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::GetInventoryRequest (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::GetInventoryRequest.

A request message for getting inventory data for the specified VM.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. API resource name for inventory resource.

  Format:
  `projects/{project}/locations/{location}/instances/{instance}/inventory`

  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=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. API resource name for inventory resource.


  Format:
  `projects/{project}/locations/{location}/instances/{instance}/inventory`

  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.

  Format:
  `projects/{project}/locations/{location}/instances/{instance}/inventory`

  For `{project}`, either `project-number` or `project-id` can be provided.
  For `{instance}`, either Compute Engine `instance-id` or `instance-name`
  can be provided.

### #view

    def view() -> ::Google::Cloud::OsConfig::V1alpha::InventoryView

**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::InventoryView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.

### #view=

    def view=(value) -> ::Google::Cloud::OsConfig::V1alpha::InventoryView

**Parameter**

- **value** ([::Google::Cloud::OsConfig::V1alpha::InventoryView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.
**Returns**

- ([::Google::Cloud::OsConfig::V1alpha::InventoryView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_config-v1alpha/latest/Google-Cloud-OsConfig-V1alpha-InventoryView)) --- Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.