Class PolicyTagManagerGrpc.PolicyTagManagerStub (1.42.0)

public static final class PolicyTagManagerGrpc.PolicyTagManagerStub extends AbstractAsyncStub<PolicyTagManagerGrpc.PolicyTagManagerStub>

A stub to allow clients to do asynchronous rpc calls to service PolicyTagManager.

The policy tag manager API service allows clients to manage their taxonomies and policy tags.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > PolicyTagManagerGrpc.PolicyTagManagerStub

Methods

build(Channel channel, CallOptions callOptions)

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

createPolicyTag(CreatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

public void createPolicyTag(CreatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

Creates a policy tag in the specified taxonomy.

Parameters
NameDescription
requestCreatePolicyTagRequest
responseObserverio.grpc.stub.StreamObserver<PolicyTag>

createTaxonomy(CreateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

public void createTaxonomy(CreateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

Creates a taxonomy in the specified project.

Parameters
NameDescription
requestCreateTaxonomyRequest
responseObserverio.grpc.stub.StreamObserver<Taxonomy>

deletePolicyTag(DeletePolicyTagRequest request, StreamObserver<Empty> responseObserver)

public void deletePolicyTag(DeletePolicyTagRequest request, StreamObserver<Empty> responseObserver)

Deletes a policy tag. Also deletes all of its descendant policy tags.

Parameters
NameDescription
requestDeletePolicyTagRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteTaxonomy(DeleteTaxonomyRequest request, StreamObserver<Empty> responseObserver)

public void deleteTaxonomy(DeleteTaxonomyRequest request, StreamObserver<Empty> responseObserver)

Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies.

Parameters
NameDescription
requestDeleteTaxonomyRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Gets the IAM policy for a taxonomy or a policy tag.

Parameters
NameDescription
requestcom.google.iam.v1.GetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getPolicyTag(GetPolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

public void getPolicyTag(GetPolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

Gets a policy tag.

Parameters
NameDescription
requestGetPolicyTagRequest
responseObserverio.grpc.stub.StreamObserver<PolicyTag>

getTaxonomy(GetTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

public void getTaxonomy(GetTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

Gets a taxonomy.

Parameters
NameDescription
requestGetTaxonomyRequest
responseObserverio.grpc.stub.StreamObserver<Taxonomy>

listPolicyTags(ListPolicyTagsRequest request, StreamObserver<ListPolicyTagsResponse> responseObserver)

public void listPolicyTags(ListPolicyTagsRequest request, StreamObserver<ListPolicyTagsResponse> responseObserver)

Lists all policy tags in a taxonomy.

Parameters
NameDescription
requestListPolicyTagsRequest
responseObserverio.grpc.stub.StreamObserver<ListPolicyTagsResponse>

listTaxonomies(ListTaxonomiesRequest request, StreamObserver<ListTaxonomiesResponse> responseObserver)

public void listTaxonomies(ListTaxonomiesRequest request, StreamObserver<ListTaxonomiesResponse> responseObserver)

Lists all taxonomies in a project in a particular location that the caller has permission to view.

Parameters
NameDescription
requestListTaxonomiesRequest
responseObserverio.grpc.stub.StreamObserver<ListTaxonomiesResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

Sets the IAM policy for a taxonomy or a policy tag.

Parameters
NameDescription
requestcom.google.iam.v1.SetIamPolicyRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

public void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

Returns the permissions that a caller has on the specified taxonomy or policy tag.

Parameters
NameDescription
requestcom.google.iam.v1.TestIamPermissionsRequest
responseObserverio.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updatePolicyTag(UpdatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

public void updatePolicyTag(UpdatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

Updates a policy tag.

Parameters
NameDescription
requestUpdatePolicyTagRequest
responseObserverio.grpc.stub.StreamObserver<PolicyTag>

updateTaxonomy(UpdateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

public void updateTaxonomy(UpdateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

Updates a taxonomy.

Parameters
NameDescription
requestUpdateTaxonomyRequest
responseObserverio.grpc.stub.StreamObserver<Taxonomy>