Class DataPolicyServiceGrpc.DataPolicyServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<DataPolicyServiceGrpc.DataPolicyServiceFutureStub>
com.google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceGrpc.DataPolicyServiceFutureStub
- Enclosing class:
- DataPolicyServiceGrpc
public static final class DataPolicyServiceGrpc.DataPolicyServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<DataPolicyServiceGrpc.DataPolicyServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service DataPolicyService.
Data Policy Service provides APIs for managing the BigQuery Data Policy.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<DataPolicy>addGrantees(AddGranteesRequest request) Adds new grantees to a data policy.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<DataPolicy>createDataPolicy(CreateDataPolicyRequest request) Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>deleteDataPolicy(DeleteDataPolicyRequest request) Deletes the data policy specified by its resource name.com.google.common.util.concurrent.ListenableFuture<DataPolicy>getDataPolicy(GetDataPolicyRequest request) Gets the data policy specified by its resource name.com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) Gets the IAM policy for the specified data policy.com.google.common.util.concurrent.ListenableFuture<ListDataPoliciesResponse>listDataPolicies(ListDataPoliciesRequest request) List all of the data policies in the specified parent project.com.google.common.util.concurrent.ListenableFuture<DataPolicy>removeGrantees(RemoveGranteesRequest request) Removes grantees from a data policy.com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) Sets the IAM policy for the specified data policy.com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse>testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) Returns the caller's permission on the specified data policy resource.com.google.common.util.concurrent.ListenableFuture<DataPolicy>updateDataPolicy(UpdateDataPolicyRequest request) Updates the metadata for an existing data policy.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected DataPolicyServiceGrpc.DataPolicyServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<DataPolicyServiceGrpc.DataPolicyServiceFutureStub>
-
createDataPolicy
public com.google.common.util.concurrent.ListenableFuture<DataPolicy> createDataPolicy(CreateDataPolicyRequest request) Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.
-
addGrantees
public com.google.common.util.concurrent.ListenableFuture<DataPolicy> addGrantees(AddGranteesRequest request) 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
public com.google.common.util.concurrent.ListenableFuture<DataPolicy> removeGrantees(RemoveGranteesRequest request) 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
public com.google.common.util.concurrent.ListenableFuture<DataPolicy> updateDataPolicy(UpdateDataPolicyRequest request) Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.
-
deleteDataPolicy
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteDataPolicy(DeleteDataPolicyRequest request) Deletes the data policy specified by its resource name.
-
getDataPolicy
public com.google.common.util.concurrent.ListenableFuture<DataPolicy> getDataPolicy(GetDataPolicyRequest request) Gets the data policy specified by its resource name.
-
listDataPolicies
public com.google.common.util.concurrent.ListenableFuture<ListDataPoliciesResponse> listDataPolicies(ListDataPoliciesRequest request) List all of the data policies in the specified parent project.
-
getIamPolicy
public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) Gets the IAM policy for the specified data policy.
-
setIamPolicy
public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) Sets the IAM policy for the specified data policy.
-
testIamPermissions
public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) Returns the caller's permission on the specified data policy resource.
-