Google Cloud OsConfig V1 Client - Class Item (1.2.2)

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
NameDescription
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 Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage

Software package present on the VM instance.

↳ available_package Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage

Software package available to be installed on the VM instance.

getId

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

Returns
TypeDescription
string

setId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOriginType

The origin of this inventory item.

Returns
TypeDescription
int

setOriginType

The origin of this inventory item.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

When this inventory item was first detected.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

When this inventory item was first detected.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

When this inventory item was last modified.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

When this inventory item was last modified.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getType

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

Returns
TypeDescription
int

setType

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getInstalledPackage

Software package present on the VM instance.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage|null

hasInstalledPackage

setInstalledPackage

Software package present on the VM instance.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage
Returns
TypeDescription
$this

getAvailablePackage

Software package available to be installed on the VM instance.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage|null

hasAvailablePackage

setAvailablePackage

Software package available to be installed on the VM instance.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\Inventory\SoftwarePackage
Returns
TypeDescription
$this

getDetails

Returns
TypeDescription
string