1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    [BindServiceMethod(typeof(DataPolicyService), "BindService")]
    public abstract class DataPolicyService.DataPolicyServiceBase

Reference documentation and code samples for the BigQuery Data Policy v1 API class DataPolicyService.DataPolicyServiceBase.

Base class for server-side implementations of DataPolicyService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DataPolicyService.DataPolicyServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.DataPolicies.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.md.txt)

## Assembly

Google.Cloud.BigQuery.DataPolicies.V1.dll

## Methods

### CreateDataPolicy(CreateDataPolicyRequest, ServerCallContext)

    public virtual Task<DataPolicy> CreateDataPolicy(CreateDataPolicyRequest request, ServerCallContext context)

Creates a new data policy under a project with the given `dataPolicyId`
(used as the display name), policy tag, and data policy type.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateDataPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDataPolicy` | The response to send back to the client (wrapped by a task). |

### DeleteDataPolicy(DeleteDataPolicyRequest, ServerCallContext)

    public virtual Task<Empty> DeleteDataPolicy(DeleteDataPolicyRequest request, ServerCallContext context)

Deletes the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteDataPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### GetDataPolicy(GetDataPolicyRequest, ServerCallContext)

    public virtual Task<DataPolicy> GetDataPolicy(GetDataPolicyRequest request, ServerCallContext context)

Gets the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetDataPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDataPolicy` | The response to send back to the client (wrapped by a task). |

### GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

    public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetIamPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPolicy` | The response to send back to the client (wrapped by a task). |

### ListDataPolicies(ListDataPoliciesRequest, ServerCallContext)

    public virtual Task<ListDataPoliciesResponse> ListDataPolicies(ListDataPoliciesRequest request, ServerCallContext context)

List all of the data policies in the specified parent project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListDataPoliciesRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListDataPoliciesResponse` | The response to send back to the client (wrapped by a task). |

### RenameDataPolicy(RenameDataPolicyRequest, ServerCallContext)

    public virtual Task<DataPolicy> RenameDataPolicy(RenameDataPolicyRequest request, ServerCallContext context)

Renames the id (display name) of the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RenameDataPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDataPolicy` | The response to send back to the client (wrapped by a task). |

### SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

    public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `SetIamPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskPolicy` | The response to send back to the client (wrapped by a task). |

### TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns the caller's permission on the specified data policy resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TestIamPermissionsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskTestIamPermissionsResponse` | The response to send back to the client (wrapped by a task). |

### UpdateDataPolicy(UpdateDataPolicyRequest, ServerCallContext)

    public virtual Task<DataPolicy> UpdateDataPolicy(UpdateDataPolicyRequest request, ServerCallContext context)

Updates the metadata for an existing data policy. The target data policy
can be specified by the resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateDataPolicyRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskDataPolicy` | The response to send back to the client (wrapped by a task). |