Class: Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyAssignmentInstanceFilterInventory
- 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
VM inventory details.
Instance Attribute Summary collapse
-
#os_short_name ⇒ String
Required.
-
#os_version ⇒ String
The OS version Prefix matches are supported if asterisk(*) is provided as the last character.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyAssignmentInstanceFilterInventory
constructor
A new instance of OsPolicyAssignmentInstanceFilterInventory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyAssignmentInstanceFilterInventory
Returns a new instance of OsPolicyAssignmentInstanceFilterInventory.
1269 1270 1271 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#os_short_name ⇒ String
Required. The OS short name
Corresponds to the JSON property osShortName
1259 1260 1261 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1259 def os_short_name @os_short_name end |
#os_version ⇒ 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.
Corresponds to the JSON property
osVersion`
1267 1268 1269 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1267 def os_version @os_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1274 1275 1276 1277 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1274 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 |