Service Client: Google::Cloud::Resourcemanager::V3::TagHolds::TagHoldsClient

Client stub representing the remote TagHolds 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::TagHolds - Compiled Protocol Buffers messages for google/cloud/resourcemanager/v3/tag_holds.proto

SYNOPSIS

use Google::Cloud::Resourcemanager::V3::TagHolds;

my $msg = Google::Cloud::Resourcemanager::V3::TagHolds::TagHold->new({
    name => $name,
    holder => $holder,
    origin => $origin,
    help_link => $help_link,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Resourcemanager::V3::TagHolds::TagHold->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/resourcemanager/v3/tag_holds.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::TagHolds::TagHold

A TagHold represents the use of a TagValue that is not captured by TagBindings. If a TagValue has any TagHolds, deletion will be blocked. This resource is intended to be created in the same cloud location as the `holder`.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The resource name of a TagHold. This is a String of the form: `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}` (e.g. `tagValues/123/tagHolds/456`). This resource name is generated by the server.

  • $msg->holder() / $msg->holder($value)

    Type: String

    Required. The name of the resource where the TagValue is being used. Must be less than 200 characters. E.g. `//compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`

  • $msg->origin() / $msg->origin($value)

    Type: String

    Optional. An optional string representing the origin of this request. This field should include human-understandable information to distinguish origins from each other. Must be less than 200 characters. E.g. `migs-35678234`

  • $msg->help_link() / $msg->help_link($value)

    Type: String

    Optional. A URL where an end user can learn more about removing this hold. E.g. `https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing`

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time this TagHold was created.

Google::Cloud::Resourcemanager::V3::TagHolds::CreateTagHoldRequest

The request message to create a TagHold.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the TagHold's parent TagValue. Must be of the form: `tagValues/{tag-value-id}`.

  • $msg->tag_hold() / $msg->tag_hold($value)

    Type: Message (Google::Cloud::Resourcemanager::V3::TagHolds::TagHold)

    Required. The TagHold to be created.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.

Google::Cloud::Resourcemanager::V3::TagHolds::CreateTagHoldMetadata

Runtime operation information for creating a TagHold. (-- The metadata is currently empty, but may include information in the future. --)

Inherits from Protobuf::Message.

Google::Cloud::Resourcemanager::V3::TagHolds::DeleteTagHoldRequest

The request message to delete a TagHold.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the TagHold to delete. Must be of the form: `tagValues/{tag-value-id}/tagHolds/{tag-hold-id}`.

  • $msg->validate_only() / $msg->validate_only($value)

    Type: Bool

    Optional. Set to true to perform the validations necessary for deleting the resource, but not actually perform the action.

Google::Cloud::Resourcemanager::V3::TagHolds::DeleteTagHoldMetadata

Runtime operation information for deleting a TagHold. (-- The metadata is currently empty, but may include information in the future. --)

Inherits from Protobuf::Message.

Google::Cloud::Resourcemanager::V3::TagHolds::ListTagHoldsRequest

The request message for listing the TagHolds under a TagValue.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the parent TagValue. Must be of the form: `tagValues/{tag-value-id}`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of TagHolds to return in the response. The server allows a maximum of 300 TagHolds to return. If unspecified, the server will use 100 as the default.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A pagination token returned from a previous call to `ListTagHolds` that indicates where this listing should continue from.

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Criteria used to select a subset of TagHolds parented by the TagValue to return. This field follows the syntax defined by aip.dev/160; the `holder` and `origin` fields are supported for filtering. Currently only `AND` syntax is supported. Some example queries are:

    * `holder =
      //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group`
    * `origin = 35678234`
    * `holder =
      //compute.googleapis.com/compute/projects/myproject/regions/us-east-1/instanceGroupManagers/instance-group
      AND origin = 35678234`

Google::Cloud::Resourcemanager::V3::TagHolds::ListTagHoldsResponse

The ListTagHolds response.

Inherits from Protobuf::Message.

Accessors

  • $msg->tag_holds() / $msg->tag_holds($value)

    Type: Message (Google::Cloud::Resourcemanager::V3::TagHolds::TagHold)

    A possibly paginated list of TagHolds.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Pagination token.

    If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results.

    When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.

    Pagination tokens have a limited lifetime.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Resourcemanager::V3::TagHolds::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.