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
Methods
__construct
Constructor.
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
↳ 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
getName
Output only. The Inventory
API resource name.
Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory
string
setName
Output only. The Inventory
API resource name.
Format: projects/{project_number}/locations/{location}/instances/{instance_id}/inventory
var
string
$this
getOsInfo
Base level operating system information for the VM.
hasOsInfo
clearOsInfo
setOsInfo
Base level operating system information for the VM.
$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.
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.
$this
getUpdateTime
Output only. Timestamp of the last reported inventory for the VM.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp of the last reported inventory for the VM.
$this