Compute V1 Client - Class InstancesScopedList (1.7.1)

Reference documentation and code samples for the Compute V1 Client class InstancesScopedList.

Generated from protobuf message google.cloud.compute.v1.InstancesScopedList

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ instances array<Google\Cloud\Compute\V1\Instance>

[Output Only] A list of instances contained in this scope.

↳ warning Google\Cloud\Compute\V1\Warning

[Output Only] Informational warning which replaces the list of instances when the list is empty.

getInstances

[Output Only] A list of instances contained in this scope.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

[Output Only] A list of instances contained in this scope.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\Instance>
Returns
TypeDescription
$this

getWarning

[Output Only] Informational warning which replaces the list of instances when the list is empty.

Returns
TypeDescription
Google\Cloud\Compute\V1\Warning|null

hasWarning

clearWarning

setWarning

[Output Only] Informational warning which replaces the list of instances when the list is empty.

Parameter
NameDescription
var Google\Cloud\Compute\V1\Warning
Returns
TypeDescription
$this