Reference documentation and code samples for the Google Cloud OsConfig V1 Client class GetInventoryRequest.
A request message for getting inventory data for the specified VM.
Generated from protobuf message google.cloud.osconfig.v1.GetInventoryRequest
Namespace
Google \ Cloud \ OsConfig \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. API resource name for inventory resource. Format: projects/{project}/locations/{location}/instances/{instance}/inventory
For {project}
, either project-number
or project-id
can be provided. For {instance}
, either Compute Engine instance-id
or instance-name
can be provided.
↳ view
int
Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.
getName
Required. API resource name for inventory resource.
Format: projects/{project}/locations/{location}/instances/{instance}/inventory
For {project}
, either project-number
or project-id
can be provided.
For {instance}
, either Compute Engine instance-id
or instance-name
can be provided.
string
setName
Required. API resource name for inventory resource.
Format: projects/{project}/locations/{location}/instances/{instance}/inventory
For {project}
, either project-number
or project-id
can be provided.
For {instance}
, either Compute Engine instance-id
or instance-name
can be provided.
var
string
$this
getView
Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.
int
setView
Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.
var
int
$this
static::build
name
string
Required. API resource name for inventory resource.
Format: projects/{project}/locations/{location}/instances/{instance}/inventory
For {project}
, either project-number
or project-id
can be provided.
For {instance}
, either Compute Engine instance-id
or instance-name
can be provided. Please see Google\Cloud\OsConfig\V1\OsConfigZonalServiceClient::inventoryName()
for help formatting this field.