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.
Constructor Details
#initialize(**args) ⇒ AssignmentOsType
Returns a new instance of AssignmentOsType.
208 209 210 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 208 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
194 195 196 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 194 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
200 201 202 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 200 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
206 207 208 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 206 def os_version @os_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
213 214 215 216 217 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 213 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 |