Class: Google::Apis::OsconfigV1beta::AssignmentOsType
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::AssignmentOsType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Defines the criteria for selecting VM Instances by OS type.
Instance Attribute Summary collapse
-
#os_architecture ⇒ String
Targets VM instances with OS Inventory enabled and having the following OS architecture.
-
#os_short_name ⇒ String
Targets VM instances with OS Inventory enabled and having the following OS short name, for example "debian" or "windows".
-
#os_version ⇒ String
Targets VM instances with OS Inventory enabled and having the following following OS version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssignmentOsType
constructor
A new instance of AssignmentOsType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AssignmentOsType
Returns a new instance of AssignmentOsType.
216 217 218 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#os_architecture ⇒ String
Targets VM instances with OS Inventory enabled and having the following
OS architecture.
Corresponds to the JSON property osArchitecture
202 203 204 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 202 def os_architecture @os_architecture end |
#os_short_name ⇒ String
Targets VM instances with OS Inventory enabled and having the following
OS short name, for example "debian" or "windows".
Corresponds to the JSON property osShortName
208 209 210 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 208 def os_short_name @os_short_name end |
#os_version ⇒ String
Targets VM instances with OS Inventory enabled and having the following
following OS version.
Corresponds to the JSON property osVersion
214 215 216 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 214 def os_version @os_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
221 222 223 224 225 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 221 def update!(**args) @os_architecture = args[:os_architecture] if args.key?(:os_architecture) @os_short_name = args[:os_short_name] if args.key?(:os_short_name) @os_version = args[:os_version] if args.key?(:os_version) end |