Compute V1 Client - Class InstancePropertiesPatch (1.17.0)

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

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ labels array|Google\Protobuf\Internal\MapField

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

↳ metadata array|Google\Protobuf\Internal\MapField

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

getLabels

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

Returns
Type Description
Google\Protobuf\Internal\MapField

setLabels

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

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getMetadata

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

Returns
Type Description
Google\Protobuf\Internal\MapField

setMetadata

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

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this