Google Cloud OsConfig V1 Client - Class Inventory (1.2.2)

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

This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time.

You can use this API resource to determine the inventory data of your VM. For more information, see Information provided by OS inventory management.

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

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The Inventory API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory

↳ os_info Google\Cloud\OsConfig\V1\Inventory\OsInfo

Base level operating system information for the VM.

↳ items array|Google\Protobuf\Internal\MapField

Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.

↳ update_time Google\Protobuf\Timestamp

Output only. Timestamp of the last reported inventory for the VM.

getName

Output only. The Inventory API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory

Returns
TypeDescription
string

setName

Output only. The Inventory API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOsInfo

Base level operating system information for the VM.

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

hasOsInfo

clearOsInfo

setOsInfo

Base level operating system information for the VM.

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

getItems

Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setItems

Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getUpdateTime

Output only. Timestamp of the last reported inventory for the VM.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp of the last reported inventory for the VM.

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