class Google::Apis::OsconfigV1alpha::OsPolicyOsFilter
Filtering criteria to select VMs based on OS details.
Attributes
os_short_name[RW]
This should match OS short name emitted by the OS inventory agent. An empty value matches any OS. Corresponds to the JSON property `osShortName` @return [String]
os_version[RW]
This value should match the version emitted by the OS inventory agent. 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.*` Corresponds to the JSON property `osVersion` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1356 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1361 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