Google Cloud OsConfig V1 Client - Class OsInfo (1.3.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

Namespace

Google \ Cloud \ OsConfig \ V1 \ Inventory

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
string

setHostname

The VM hostname.

Parameter
Name Description
var string
Returns
Type Description
$this

getLongName

The operating system long name.

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

Returns
Type Description
string

setLongName

The operating system long name.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getShortName

The operating system short name.

For example, 'windows' or 'debian'.

Returns
Type Description
string

setShortName

The operating system short name.

For example, 'windows' or 'debian'.

Parameter
Name Description
var string
Returns
Type Description
$this

getVersion

The version of the operating system.

Returns
Type Description
string

setVersion

The version of the operating system.

Parameter
Name Description
var string
Returns
Type Description
$this

getArchitecture

The system architecture of the operating system.

Returns
Type Description
string

setArchitecture

The system architecture of the operating system.

Parameter
Name Description
var string
Returns
Type Description
$this

getKernelVersion

The kernel version of the operating system.

Returns
Type Description
string

setKernelVersion

The kernel version of the operating system.

Parameter
Name Description
var string
Returns
Type Description
$this

getKernelRelease

The kernel release of the operating system.

Returns
Type Description
string

setKernelRelease

The kernel release of the operating system.

Parameter
Name Description
var string
Returns
Type Description
$this

getOsconfigAgentVersion

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

Returns
Type Description
string

setOsconfigAgentVersion

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

Parameter
Name Description
var string
Returns
Type Description
$this