Interface PolicyTagManagerGrpc.AsyncService (1.59.0)

public static interface PolicyTagManagerGrpc.AsyncService

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

Methods

createPolicyTag(CreatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

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

Creates a policy tag in the specified taxonomy.

Parameters
Name Description
request CreatePolicyTagRequest
responseObserver io.grpc.stub.StreamObserver<PolicyTag>

createTaxonomy(CreateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

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

Creates a taxonomy in the specified project.

Parameters
Name Description
request CreateTaxonomyRequest
responseObserver io.grpc.stub.StreamObserver<Taxonomy>

deletePolicyTag(DeletePolicyTagRequest request, StreamObserver<Empty> responseObserver)

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

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

Parameters
Name Description
request DeletePolicyTagRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

deleteTaxonomy(DeleteTaxonomyRequest request, StreamObserver<Empty> responseObserver)

public default 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
Name Description
request DeleteTaxonomyRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

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

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

Parameters
Name Description
request com.google.iam.v1.GetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

getPolicyTag(GetPolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

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

Gets a policy tag.

Parameters
Name Description
request GetPolicyTagRequest
responseObserver io.grpc.stub.StreamObserver<PolicyTag>

getTaxonomy(GetTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

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

Gets a taxonomy.

Parameters
Name Description
request GetTaxonomyRequest
responseObserver io.grpc.stub.StreamObserver<Taxonomy>

listPolicyTags(ListPolicyTagsRequest request, StreamObserver<ListPolicyTagsResponse> responseObserver)

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

Lists all policy tags in a taxonomy.

Parameters
Name Description
request ListPolicyTagsRequest
responseObserver io.grpc.stub.StreamObserver<ListPolicyTagsResponse>

listTaxonomies(ListTaxonomiesRequest request, StreamObserver<ListTaxonomiesResponse> responseObserver)

public default 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
Name Description
request ListTaxonomiesRequest
responseObserver io.grpc.stub.StreamObserver<ListTaxonomiesResponse>

setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)

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

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

Parameters
Name Description
request com.google.iam.v1.SetIamPolicyRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.Policy>

testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)

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

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

Parameters
Name Description
request com.google.iam.v1.TestIamPermissionsRequest
responseObserver io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>

updatePolicyTag(UpdatePolicyTagRequest request, StreamObserver<PolicyTag> responseObserver)

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

Updates a policy tag.

Parameters
Name Description
request UpdatePolicyTagRequest
responseObserver io.grpc.stub.StreamObserver<PolicyTag>

updateTaxonomy(UpdateTaxonomyRequest request, StreamObserver<Taxonomy> responseObserver)

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

Updates a taxonomy.

Parameters
Name Description
request UpdateTaxonomyRequest
responseObserver io.grpc.stub.StreamObserver<Taxonomy>