Compute V1 Client - Class InstanceProperties (1.18.1)

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

Represents the change that you want to make to the instance properties.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ labelsarray|Google\Protobuf\Internal\MapField

The label key-value pairs that you want to onto the instance.

↳ metadataarray|Google\Protobuf\Internal\MapField

The metadata key-value pairs that you want to onto the instance. For more information, see Project and instance metadata.

getLabels

The label key-value pairs that you want to onto the instance.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The label key-value pairs that you want to onto the instance.

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

getMetadata

The metadata key-value pairs that you want to onto the instance. For more information, see Project and instance metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setMetadata

The metadata key-value pairs that you want to onto the instance. For more information, see Project and instance metadata.

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