Compute V1 Client - Class InstancesSetLabelsRequest (1.8.3)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ label_fingerprint string

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

↳ labels array|Google\Protobuf\Internal\MapField

getLabelFingerprint

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

Returns
TypeDescription
string

hasLabelFingerprint

clearLabelFingerprint

setLabelFingerprint

Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

Generated from protobuf field map<string, string> labels = 500195327;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Generated from protobuf field map<string, string> labels = 500195327;

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