Class: Google::Apis::OsconfigV1beta::InventoryOsInfo
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::InventoryOsInfo
- 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
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) ⇒ InventoryOsInfo
constructor
A new instance of InventoryOsInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InventoryOsInfo
Returns a new instance of InventoryOsInfo.
808 809 810 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The system architecture of the operating system.
Corresponds to the JSON property architecture
770 771 772 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 770 def architecture @architecture end |
#hostname ⇒ String
The VM hostname.
Corresponds to the JSON property hostname
775 776 777 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 775 def hostname @hostname end |
#kernel_release ⇒ String
The kernel release of the operating system.
Corresponds to the JSON property kernelRelease
780 781 782 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 780 def kernel_release @kernel_release end |
#kernel_version ⇒ String
The kernel version of the operating system.
Corresponds to the JSON property kernelVersion
785 786 787 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 785 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
791 792 793 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 791 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
796 797 798 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 796 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
801 802 803 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 801 def short_name @short_name end |
#version ⇒ String
The version of the operating system.
Corresponds to the JSON property version
806 807 808 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 806 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
813 814 815 816 817 818 819 820 821 822 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 813 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 |