Google Cloud OsConfig V1 Client - Class OsInfo (1.0.5)

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.

Parameters
NameDescription
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.

Returns
TypeDescription
string

setHostname

The VM hostname.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLongName

The operating system long name.

For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.

Returns
TypeDescription
string

setLongName

The operating system long name.

For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShortName

The operating system short name.

For example, 'windows' or 'debian'.

Returns
TypeDescription
string

setShortName

The operating system short name.

For example, 'windows' or 'debian'.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVersion

The version of the operating system.

Returns
TypeDescription
string

setVersion

The version of the operating system.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArchitecture

The system architecture of the operating system.

Returns
TypeDescription
string

setArchitecture

The system architecture of the operating system.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKernelVersion

The kernel version of the operating system.

Returns
TypeDescription
string

setKernelVersion

The kernel version of the operating system.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKernelRelease

The kernel release of the operating system.

Returns
TypeDescription
string

setKernelRelease

The kernel release of the operating system.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOsconfigAgentVersion

The current version of the OS Config agent running on the VM.

Returns
TypeDescription
string

setOsconfigAgentVersion

The current version of the OS Config agent running on the VM.

Parameter
NameDescription
var string
Returns
TypeDescription
$this