Class: Google::Apis::OsconfigV1alpha::OsPolicyInventoryFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1alpha/classes.rb,
lib/google/apis/osconfig_v1alpha/representations.rb,
lib/google/apis/osconfig_v1alpha/representations.rb

Overview

Filtering criteria to select VMs based on inventory details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyInventoryFilter

Returns a new instance of OsPolicyInventoryFilter.



1609
1610
1611
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1609

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#os_short_nameString

Required. The OS short name Corresponds to the JSON property osShortName

Returns:

  • (String)


1599
1600
1601
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1599

def os_short_name
  @os_short_name
end

#os_versionString

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. Corresponds to the JSON propertyosVersion`

Returns:

  • (String)


1607
1608
1609
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1607

def os_version
  @os_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1614
1615
1616
1617
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1614

def update!(**args)
  @os_short_name = args[:os_short_name] if args.key?(:os_short_name)
  @os_version = args[:os_version] if args.key?(:os_version)
end