Compute V1 Client - Class InstancesSetLabelsRequest (1.5.0)

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.

Generated from protobuf field optional string label_fingerprint = 178124825;

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.

Generated from protobuf field optional string label_fingerprint = 178124825;

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