Class: Google::Apis::CloudassetV1::OsInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsInfo

Returns a new instance of OsInfo.



3598
3599
3600
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3598

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#architectureString

The system architecture of the operating system. Corresponds to the JSON property architecture

Returns:

  • (String)


3560
3561
3562
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3560

def architecture
  @architecture
end

#hostnameString

The VM hostname. Corresponds to the JSON property hostname

Returns:

  • (String)


3565
3566
3567
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3565

def hostname
  @hostname
end

#kernel_releaseString

The kernel release of the operating system. Corresponds to the JSON property kernelRelease

Returns:

  • (String)


3570
3571
3572
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3570

def kernel_release
  @kernel_release
end

#kernel_versionString

The kernel version of the operating system. Corresponds to the JSON property kernelVersion

Returns:

  • (String)


3575
3576
3577
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3575

def kernel_version
  @kernel_version
end

#long_nameString

The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'. Corresponds to the JSON property longName

Returns:

  • (String)


3581
3582
3583
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3581

def long_name
  @long_name
end

#osconfig_agent_versionString

The current version of the OS Config agent running on the VM. Corresponds to the JSON property osconfigAgentVersion

Returns:

  • (String)


3586
3587
3588
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3586

def osconfig_agent_version
  @osconfig_agent_version
end

#short_nameString

The operating system short name. For example, 'windows' or 'debian'. Corresponds to the JSON property shortName

Returns:

  • (String)


3591
3592
3593
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3591

def short_name
  @short_name
end

#versionString

The version of the operating system. Corresponds to the JSON property version

Returns:

  • (String)


3596
3597
3598
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3596

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3603

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