Service Client: Google::Cloud::Resourcemanager::V3::TagKeys::TagKeysClient
Client stub representing the remote TagKeys gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to resourcemanager.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Resourcemanager::V3::TagKeys - Compiled Protocol Buffers messages for google/cloud/resourcemanager/v3/tag_keys.proto
SYNOPSIS
use Google::Cloud::Resourcemanager::V3::TagKeys;
my $msg = Google::Cloud::Resourcemanager::V3::TagKeys::TagKey->new({
name => $name,
parent => $parent,
short_name => $short_name,
namespaced_name => $namespaced_name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Resourcemanager::V3::TagKeys::TagKey->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/resourcemanager/v3/tag_keys.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Resourcemanager::V3::TagKeys::TagKey
A TagKey, used to group a set of TagValues.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. The resource name for a TagKey. Must be in the format `tagKeys/{tag_key_id}`, where `tag_key_id` is the generated numeric id for the TagKey.
$msg->parent()/$msg->parent($value)Type:
StringImmutable. The resource name of the TagKey's parent. A TagKey can be parented by an Organization or a Project. For a TagKey parented by an Organization, its parent must be in the form `organizations/{org_id}`. For a TagKey parented by a Project, its parent can be in the form `projects/{project_id}` or `projects/{project_number}`.
$msg->short_name()/$msg->short_name($value)Type:
StringRequired. Immutable. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace.
The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
$msg->namespaced_name()/$msg->namespaced_name($value)Type:
StringOutput only. Immutable. Namespaced name of the TagKey.
$msg->description()/$msg->description($value)Type:
StringOptional. User-assigned description of the TagKey. Must not exceed 256 characters.
Read-write.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Update time.
$msg->etag()/$msg->etag($value)Type:
StringOptional. Entity tag which users can pass to prevent race conditions. This field is always set in server responses. See UpdateTagKeyRequest for details.
$msg->purpose()/$msg->purpose($value)Type:
Enum(Google::Cloud::Resourcemanager::V3::Purpose)Optional. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines.
A purpose cannot be changed once set.
$msg->purpose_data()/$msg->purpose_data($value)Type:
Message(Google::Cloud::Resourcemanager::V3::TagKeys::TagKey::PurposeDataEntry)Optional. Purpose data corresponds to the policy system that the tag is intended for. See documentation for `Purpose` for formatting of this field.
Purpose data cannot be changed once set.
Google::Cloud::Resourcemanager::V3::TagKeys::ListTagKeysRequest
The request message for listing all TagKeys under a parent resource.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the TagKey's parent. Must be of the form `organizations/{org_id}` or `projects/{project_id}` or `projects/{project_number}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of TagKeys to return in the response. The server allows a maximum of 300 TagKeys to return. If unspecified, the server will use 100 as the default.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A pagination token returned from a previous call to `ListTagKey` that indicates where this listing should continue from.
Google::Cloud::Resourcemanager::V3::TagKeys::ListTagKeysResponse
The ListTagKeys response message.
Inherits from Protobuf::Message.
Accessors
$msg->tag_keys()/$msg->tag_keys($value)Type:
Message(Google::Cloud::Resourcemanager::V3::TagKeys::TagKey)List of TagKeys that live under the specified parent in the request.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA pagination token returned from a previous call to `ListTagKeys` that indicates from where listing should continue.
Google::Cloud::Resourcemanager::V3::TagKeys::GetTagKeyRequest
The request message for getting a TagKey.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A resource name in the format `tagKeys/{id}`, such as `tagKeys/123`.
Google::Cloud::Resourcemanager::V3::TagKeys::GetNamespacedTagKeyRequest
The request message for getting a TagKey by its namespaced name.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A namespaced tag key name in the format `{parentId}/{tagKeyShort}`, such as `42/foo` for a key with short name "foo" under the organization with ID 42 or `r2-d2/bar` for a key with short name "bar" under the project `r2-d2`.
Google::Cloud::Resourcemanager::V3::TagKeys::CreateTagKeyRequest
The request message for creating a TagKey.
Inherits from Protobuf::Message.
Accessors
$msg->tag_key()/$msg->tag_key($value)Type:
Message(Google::Cloud::Resourcemanager::V3::TagKeys::TagKey)Required. The TagKey to be created. Only fields `short_name`, `description`, and `parent` are considered during the creation request.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. Set to true to perform validations necessary for creating the resource, but not actually perform the action.
Google::Cloud::Resourcemanager::V3::TagKeys::CreateTagKeyMetadata
Runtime operation information for creating a TagKey.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::TagKeys::UpdateTagKeyRequest
The request message for updating a TagKey.
Inherits from Protobuf::Message.
Accessors
$msg->tag_key()/$msg->tag_key($value)Type:
Message(Google::Cloud::Resourcemanager::V3::TagKeys::TagKey)Required. The new definition of the TagKey. Only the `description` and `etag` fields can be updated by this request. If the `etag` field is not empty, it must match the `etag` field of the existing tag key. Otherwise, `ABORTED` will be returned.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Fields to be updated. The mask may only contain `description` or `etag`. If omitted entirely, both `description` and `etag` are assumed to be significant.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolSet as true to perform validations necessary for updating the resource, but not actually perform the action.
Google::Cloud::Resourcemanager::V3::TagKeys::UpdateTagKeyMetadata
Runtime operation information for updating a TagKey.
Inherits from Protobuf::Message.
Google::Cloud::Resourcemanager::V3::TagKeys::DeleteTagKeyRequest
The request message for deleting a TagKey.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of a TagKey to be deleted in the format `tagKeys/123`. The TagKey cannot be a parent of any existing TagValues or it will not be deleted successfully.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. Set as true to perform validations necessary for deletion, but not actually perform the action.
$msg->etag()/$msg->etag($value)Type:
StringOptional. The etag known to the client for the expected state of the TagKey. This is to be used for optimistic concurrency.
Google::Cloud::Resourcemanager::V3::TagKeys::DeleteTagKeyMetadata
Runtime operation information for deleting a TagKey.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Resourcemanager::V3::TagKeys::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.