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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setItems
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |