Reference documentation and code samples for the Google Cloud OsConfig V1 Client class OsInfo.
Operating system information for the VM.
Generated from protobuf message google.cloud.osconfig.v1.Inventory.OsInfo
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ hostname
string
The VM hostname.
↳ long_name
string
The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.
↳ short_name
string
The operating system short name. For example, 'windows' or 'debian'.
↳ version
string
The version of the operating system.
↳ architecture
string
The system architecture of the operating system.
↳ kernel_version
string
The kernel version of the operating system.
↳ kernel_release
string
The kernel release of the operating system.
↳ osconfig_agent_version
string
The current version of the OS Config agent running on the VM.
getHostname
The VM hostname.
string
setHostname
The VM hostname.
var
string
$this
getLongName
The operating system long name.
For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.
string
setLongName
The operating system long name.
For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.
var
string
$this
getShortName
The operating system short name.
For example, 'windows' or 'debian'.
string
setShortName
The operating system short name.
For example, 'windows' or 'debian'.
var
string
$this
getVersion
The version of the operating system.
string
setVersion
The version of the operating system.
var
string
$this
getArchitecture
The system architecture of the operating system.
string
setArchitecture
The system architecture of the operating system.
var
string
$this
getKernelVersion
The kernel version of the operating system.
string
setKernelVersion
The kernel version of the operating system.
var
string
$this
getKernelRelease
The kernel release of the operating system.
string
setKernelRelease
The kernel release of the operating system.
var
string
$this
getOsconfigAgentVersion
The current version of the OS Config agent running on the VM.
string
setOsconfigAgentVersion
The current version of the OS Config agent running on the VM.
var
string
$this