Google Cloud OsConfig V1 Client - Class Item (2.0.1)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class Item.

A single piece of inventory on a VM.

Generated from protobuf message google.cloud.osconfig.v1.Inventory.Item

Namespace

Google \ Cloud \ OsConfig \ V1 \ Inventory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ id string

Identifier for this item, unique across items for this VM.

↳ origin_type int

The origin of this inventory item.

↳ create_time Google\Protobuf\Timestamp

When this inventory item was first detected.

↳ update_time Google\Protobuf\Timestamp

When this inventory item was last modified.

↳ type int

The specific type of inventory, correlating to its specific details.

↳ installed_package SoftwarePackage

Software package present on the VM instance.

↳ available_package SoftwarePackage

Software package available to be installed on the VM instance.

getId

Identifier for this item, unique across items for this VM.

Returns
Type Description
string

setId

Identifier for this item, unique across items for this VM.

Parameter
Name Description
var string
Returns
Type Description
$this

getOriginType

The origin of this inventory item.

Returns
Type Description
int

setOriginType

The origin of this inventory item.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreateTime

When this inventory item was first detected.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

When this inventory item was first detected.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

When this inventory item was last modified.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

When this inventory item was last modified.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getType

The specific type of inventory, correlating to its specific details.

Returns
Type Description
int

setType

The specific type of inventory, correlating to its specific details.

Parameter
Name Description
var int
Returns
Type Description
$this

getInstalledPackage

Software package present on the VM instance.

Returns
Type Description
SoftwarePackage|null

hasInstalledPackage

setInstalledPackage

Software package present on the VM instance.

Parameter
Name Description
var SoftwarePackage
Returns
Type Description
$this

getAvailablePackage

Software package available to be installed on the VM instance.

Returns
Type Description
SoftwarePackage|null

hasAvailablePackage

setAvailablePackage

Software package available to be installed on the VM instance.

Parameter
Name Description
var SoftwarePackage
Returns
Type Description
$this

getDetails

Returns
Type Description
string