Compute V1 Client - Class InstancePropertiesPatch (1.30.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

setLabels

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

Parameter
Name
Description
Returns
Type
Description
$this

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

Returns
Type
Description

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

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: