Compute V1 Client - Class Tags (1.8.3)

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

A set of instance tags.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ fingerprint string

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

↳ items array

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

getFingerprint

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

Returns
TypeDescription
string

hasFingerprint

clearFingerprint

setFingerprint

Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getItems

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setItems

An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this