Class TagHoldsGrpc.TagHoldsBlockingV2Stub (1.82.0)

public static final class TagHoldsGrpc.TagHoldsBlockingV2Stub extends AbstractBlockingStub<TagHoldsGrpc.TagHoldsBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service TagHolds.

Allow users to create and manage TagHolds for TagValues. TagHolds represent the use of a Tag Value that is not captured by TagBindings but should still block TagValue deletion (such as a reference in a policy condition). This service provides isolated failure domains by cloud location so that TagHolds can be managed in the same location as their usage.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > TagHoldsGrpc.TagHoldsBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected TagHoldsGrpc.TagHoldsBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
TagHoldsGrpc.TagHoldsBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createTagHold(CreateTagHoldRequest request)

public Operation createTagHold(CreateTagHoldRequest request)

Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.

Parameter
Name Description
request CreateTagHoldRequest
Returns
Type Description
Operation
Exceptions
Type Description
io.grpc.StatusException

deleteTagHold(DeleteTagHoldRequest request)

public Operation deleteTagHold(DeleteTagHoldRequest request)

Deletes a TagHold.

Parameter
Name Description
request DeleteTagHoldRequest
Returns
Type Description
Operation
Exceptions
Type Description
io.grpc.StatusException

listTagHolds(ListTagHoldsRequest request)

public ListTagHoldsResponse listTagHolds(ListTagHoldsRequest request)

Lists TagHolds under a TagValue.

Parameter
Name Description
request ListTagHoldsRequest
Returns
Type Description
ListTagHoldsResponse
Exceptions
Type Description
io.grpc.StatusException