Class: Google::Apis::CloudassetV1::OsInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::OsInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
Operating system information for the VM.
Instance Attribute Summary collapse
-
#architecture ⇒ String
The system architecture of the operating system.
-
#hostname ⇒ String
The VM hostname.
-
#kernel_release ⇒ String
The kernel release of the operating system.
-
#kernel_version ⇒ String
The kernel version of the operating system.
-
#long_name ⇒ String
The operating system long name.
-
#osconfig_agent_version ⇒ String
The current version of the OS Config agent running on the VM.
-
#short_name ⇒ String
The operating system short name.
-
#version ⇒ String
The version of the operating system.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsInfo
constructor
A new instance of OsInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsInfo
Returns a new instance of OsInfo.
4361 4362 4363 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4361 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The system architecture of the operating system.
Corresponds to the JSON property architecture
4323 4324 4325 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4323 def architecture @architecture end |
#hostname ⇒ String
The VM hostname.
Corresponds to the JSON property hostname
4328 4329 4330 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4328 def hostname @hostname end |
#kernel_release ⇒ String
The kernel release of the operating system.
Corresponds to the JSON property kernelRelease
4333 4334 4335 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4333 def kernel_release @kernel_release end |
#kernel_version ⇒ String
The kernel version of the operating system.
Corresponds to the JSON property kernelVersion
4338 4339 4340 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4338 def kernel_version @kernel_version end |
#long_name ⇒ String
The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft
Window Server 2019 Datacenter'.
Corresponds to the JSON property longName
4344 4345 4346 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4344 def long_name @long_name end |
#osconfig_agent_version ⇒ String
The current version of the OS Config agent running on the VM.
Corresponds to the JSON property osconfigAgentVersion
4349 4350 4351 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4349 def osconfig_agent_version @osconfig_agent_version end |
#short_name ⇒ String
The operating system short name. For example, 'windows' or 'debian'.
Corresponds to the JSON property shortName
4354 4355 4356 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4354 def short_name @short_name end |
#version ⇒ String
The version of the operating system.
Corresponds to the JSON property version
4359 4360 4361 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4359 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4366 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @hostname = args[:hostname] if args.key?(:hostname) @kernel_release = args[:kernel_release] if args.key?(:kernel_release) @kernel_version = args[:kernel_version] if args.key?(:kernel_version) @long_name = args[:long_name] if args.key?(:long_name) @osconfig_agent_version = args[:osconfig_agent_version] if args.key?(:osconfig_agent_version) @short_name = args[:short_name] if args.key?(:short_name) @version = args[:version] if args.key?(:version) end |