Class TagHoldsGrpc.TagHoldsStub (1.43.0)

public static final class TagHoldsGrpc.TagHoldsStub extends AbstractAsyncStub<TagHoldsGrpc.TagHoldsStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > TagHoldsGrpc.TagHoldsStub

Methods

build(Channel channel, CallOptions callOptions)

protected TagHoldsGrpc.TagHoldsStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
TagHoldsGrpc.TagHoldsStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createTagHold(CreateTagHoldRequest request, StreamObserver<Operation> responseObserver)

public void createTagHold(CreateTagHoldRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
NameDescription
requestCreateTagHoldRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteTagHold(DeleteTagHoldRequest request, StreamObserver<Operation> responseObserver)

public void deleteTagHold(DeleteTagHoldRequest request, StreamObserver<Operation> responseObserver)

Deletes a TagHold.

Parameters
NameDescription
requestDeleteTagHoldRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listTagHolds(ListTagHoldsRequest request, StreamObserver<ListTagHoldsResponse> responseObserver)

public void listTagHolds(ListTagHoldsRequest request, StreamObserver<ListTagHoldsResponse> responseObserver)

Lists TagHolds under a TagValue.

Parameters
NameDescription
requestListTagHoldsRequest
responseObserverio.grpc.stub.StreamObserver<ListTagHoldsResponse>