Compute V1 Client - Class ZoneSetLabelsRequest (1.7.1)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ label_fingerprintstring

The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.

↳ labelsarray|Google\Protobuf\Internal\MapField

The labels to set for this resource.

getLabelFingerprint

The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.

Returns
TypeDescription
string

hasLabelFingerprint

clearLabelFingerprint

setLabelFingerprint

The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getLabels

The labels to set for this resource.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The labels to set for this resource.

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