Class: Google::Apis::OsconfigV1beta::AssignmentOsType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_architectureString

Targets VM instances with OS Inventory enabled and having the following OS architecture. Corresponds to the JSON property osArchitecture

Returns:

  • (String)


194
195
196
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 194

def os_architecture
  @os_architecture
end

#os_short_nameString

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

Returns:

  • (String)


200
201
202
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 200

def os_short_name
  @os_short_name
end

#os_versionString

Targets VM instances with OS Inventory enabled and having the following following OS version. Corresponds to the JSON property osVersion

Returns:

  • (String)


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