Interface DataPolicyServiceGrpc.AsyncService
- All Known Implementing Classes:
DataPolicyServiceGrpc.DataPolicyServiceImplBase
- Enclosing class:
- DataPolicyServiceGrpc
public static interface DataPolicyServiceGrpc.AsyncService
Data Policy Service provides APIs for managing the BigQuery Data Policy.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddGrantees(AddGranteesRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Adds new grantees to a data policy.default voidcreateDataPolicy(CreateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.default voiddeleteDataPolicy(DeleteDataPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the data policy specified by its resource name.default voidgetDataPolicy(GetDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Gets the data policy specified by its resource name.default voidgetIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the IAM policy for the specified data policy.default voidlistDataPolicies(ListDataPoliciesRequest request, io.grpc.stub.StreamObserver<ListDataPoliciesResponse> responseObserver) List all of the data policies in the specified parent project.default voidremoveGrantees(RemoveGranteesRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Removes grantees from a data policy.default voidsetIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the IAM policy for the specified data policy.default voidtestIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the caller's permission on the specified data policy resource.default voidupdateDataPolicy(UpdateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Updates the metadata for an existing data policy.
-
Method Details
-
createDataPolicy
default void createDataPolicy(CreateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.
-
addGrantees
default void addGrantees(AddGranteesRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.
-
removeGrantees
default void removeGrantees(RemoveGranteesRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.
-
updateDataPolicy
default void updateDataPolicy(UpdateDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.
-
deleteDataPolicy
default void deleteDataPolicy(DeleteDataPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes the data policy specified by its resource name.
-
getDataPolicy
default void getDataPolicy(GetDataPolicyRequest request, io.grpc.stub.StreamObserver<DataPolicy> responseObserver) Gets the data policy specified by its resource name.
-
listDataPolicies
default void listDataPolicies(ListDataPoliciesRequest request, io.grpc.stub.StreamObserver<ListDataPoliciesResponse> responseObserver) List all of the data policies in the specified parent project.
-
getIamPolicy
default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Gets the IAM policy for the specified data policy.
-
setIamPolicy
default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) Sets the IAM policy for the specified data policy.
-
testIamPermissions
default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) Returns the caller's permission on the specified data policy resource.
-