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

Filtering criteria to select VMs based on inventory details.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #os_short_name

    def os_short_name() -> ::String

**Returns**

- (::String) --- Required. The OS short name

### #os_short_name=

    def os_short_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The OS short name
**Returns**

- (::String) --- Required. The OS short name

### #os_version

    def os_version() -> ::String

**Returns**

- (::String) --- The OS version

  Prefix matches are supported if asterisk(*) is provided as the
  last character. For example, to match all versions with a major
  version of `7`, specify the following value for this field \`7.*\`

  An empty string matches all OS versions.

### #os_version=

    def os_version=(value) -> ::String

**Parameter**

- **value** (::String) --- The OS version


  Prefix matches are supported if asterisk(*) is provided as the
  last character. For example, to match all versions with a major
  version of `7`, specify the following value for this field \`7.*\`

  An empty string matches all OS versions.
**Returns**

- (::String) --- The OS version

  Prefix matches are supported if asterisk(*) is provided as the
  last character. For example, to match all versions with a major
  version of `7`, specify the following value for this field \`7.*\`

  An empty string matches all OS versions.