Class DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub>
com.google.cloud.bigquery.datapolicies.v1.DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub
Enclosing class:
DataPolicyServiceGrpc

public static final class DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service DataPolicyService.
 Data Policy Service provides APIs for managing the label-policy bindings.
 
  • Method Details

    • build

      protected DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<DataPolicyServiceGrpc.DataPolicyServiceBlockingV2Stub>
    • createDataPolicy

      public DataPolicy createDataPolicy(CreateDataPolicyRequest request) throws io.grpc.StatusException
       Creates a new data policy under a project with the given `dataPolicyId`
       (used as the display name), policy tag, and data policy type.
       
      Throws:
      io.grpc.StatusException
    • updateDataPolicy

      public DataPolicy updateDataPolicy(UpdateDataPolicyRequest request) throws io.grpc.StatusException
       Updates the metadata for an existing data policy. The target data policy
       can be specified by the resource name.
       
      Throws:
      io.grpc.StatusException
    • renameDataPolicy

      public DataPolicy renameDataPolicy(RenameDataPolicyRequest request) throws io.grpc.StatusException
       Renames the id (display name) of the specified data policy.
       
      Throws:
      io.grpc.StatusException
    • deleteDataPolicy

      public com.google.protobuf.Empty deleteDataPolicy(DeleteDataPolicyRequest request) throws io.grpc.StatusException
       Deletes the data policy specified by its resource name.
       
      Throws:
      io.grpc.StatusException
    • getDataPolicy

      public DataPolicy getDataPolicy(GetDataPolicyRequest request) throws io.grpc.StatusException
       Gets the data policy specified by its resource name.
       
      Throws:
      io.grpc.StatusException
    • listDataPolicies

      public ListDataPoliciesResponse listDataPolicies(ListDataPoliciesRequest request) throws io.grpc.StatusException
       List all of the data policies in the specified parent project.
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) throws io.grpc.StatusException
       Gets the IAM policy for the specified data policy.
       
      Throws:
      io.grpc.StatusException
    • setIamPolicy

      public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) throws io.grpc.StatusException
       Sets the IAM policy for the specified data policy.
       
      Throws:
      io.grpc.StatusException
    • testIamPermissions

      public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException
       Returns the caller's permission on the specified data policy resource.
       
      Throws:
      io.grpc.StatusException