Google Cloud OsConfig V1 Client - Class Item (2.1.0)

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

hasCreateTime

clearCreateTime

setCreateTime

When this inventory item was first detected.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

When this inventory item was last modified.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

When this inventory item was last modified.

Parameter
Name
Description
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

hasInstalledPackage

setInstalledPackage

Software package present on the VM instance.

Parameter
Name
Description
Returns
Type
Description
$this

getAvailablePackage

Software package available to be installed on the VM instance.

Returns
Type
Description

hasAvailablePackage

setAvailablePackage

Software package available to be installed on the VM instance.

Parameter
Name
Description
Returns
Type
Description
$this

getDetails

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: