# BigQuery Data Policy v1 API - Class DataPolicyServiceClientImpl (1.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.5.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.4.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.3.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.2.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.1.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.0.0/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClientImpl)

    public sealed class DataPolicyServiceClientImpl : DataPolicyServiceClient

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

DataPolicyService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [DataPolicyServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient) \> DataPolicyServiceClientImpl

## Inherited Members

[DataPolicyServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DefaultEndpoint) [DataPolicyServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DefaultScopes) [DataPolicyServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ServiceMetadata) [DataPolicyServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateAsync_System_Threading_CancellationToken_) [DataPolicyServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_Create) [DataPolicyServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ShutdownDefaultChannelsAsync) [DataPolicyServiceClient.CreateDataPolicyAsync(CreateDataPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_CreateDataPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.CreateDataPolicy(string, DataPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicy_System_String_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.CreateDataPolicyAsync(string, DataPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_System_String_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.CreateDataPolicyAsync(string, DataPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_System_String_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_System_Threading_CancellationToken_) [DataPolicyServiceClient.CreateDataPolicy(LocationName, DataPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicy_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.CreateDataPolicyAsync(LocationName, DataPolicy, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.CreateDataPolicyAsync(LocationName, DataPolicy, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_System_Threading_CancellationToken_) [DataPolicyServiceClient.UpdateDataPolicyAsync(UpdateDataPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_UpdateDataPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.UpdateDataPolicy(DataPolicy, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.UpdateDataPolicyAsync(DataPolicy, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.UpdateDataPolicyAsync(DataPolicy, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicy_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [DataPolicyServiceClient.RenameDataPolicyAsync(RenameDataPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_RenameDataPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.RenameDataPolicy(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicy_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.RenameDataPolicyAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicyAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.RenameDataPolicyAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicyAsync_System_String_System_String_System_Threading_CancellationToken_) [DataPolicyServiceClient.DeleteDataPolicyAsync(DeleteDataPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DeleteDataPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.DeleteDataPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.DeleteDataPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.DeleteDataPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_System_String_System_Threading_CancellationToken_) [DataPolicyServiceClient.DeleteDataPolicy(DataPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.DeleteDataPolicyAsync(DataPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.DeleteDataPolicyAsync(DataPolicyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_System_Threading_CancellationToken_) [DataPolicyServiceClient.GetDataPolicyAsync(GetDataPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_GetDataPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.GetDataPolicy(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicy_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.GetDataPolicyAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.GetDataPolicyAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_System_String_System_Threading_CancellationToken_) [DataPolicyServiceClient.GetDataPolicy(DataPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.GetDataPolicyAsync(DataPolicyName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.GetDataPolicyAsync(DataPolicyName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyName_System_Threading_CancellationToken_) [DataPolicyServiceClient.ListDataPolicies(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPolicies_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.ListDataPoliciesAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPoliciesAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.ListDataPolicies(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPolicies_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.ListDataPoliciesAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPoliciesAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [DataPolicyServiceClient.GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_System_Threading_CancellationToken_) [DataPolicyServiceClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [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)

## Assembly

Google.Cloud.BigQuery.DataPolicies.V1.dll

## Remarks

Data Policy Service provides APIs for managing the label-policy bindings.

## Constructors

### DataPolicyServiceClientImpl(DataPolicyServiceClient, DataPolicyServiceSettings, ILogger)

    public DataPolicyServiceClientImpl(DataPolicyService.DataPolicyServiceClient grpcClient, DataPolicyServiceSettings settings, ILogger logger)

Constructs a client wrapper for the DataPolicyService service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyService.DataPolicyServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceSettings` The base [DataPolicyServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override DataPolicyService.DataPolicyServiceClient GrpcClient { get; }

The underlying gRPC DataPolicyService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyService.DataPolicyServiceClient` |   |

**Overrides** [DataPolicyServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GrpcClient)

## Methods

### CreateDataPolicy(CreateDataPolicyRequest, CallSettings)

    public override DataPolicy CreateDataPolicy(CreateDataPolicyRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | The RPC response. |

**Overrides** [DataPolicyServiceClient.CreateDataPolicy(CreateDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_CreateDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateDataPolicyAsync(CreateDataPolicyRequest, CallSettings)

    public override Task<DataPolicy> CreateDataPolicyAsync(CreateDataPolicyRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.CreateDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.CreateDataPolicyAsync(CreateDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_CreateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_CreateDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDataPolicy(DeleteDataPolicyRequest, CallSettings)

    public override void DeleteDataPolicy(DeleteDataPolicyRequest request, CallSettings callSettings = null)

Deletes the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DeleteDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Overrides** [DataPolicyServiceClient.DeleteDataPolicy(DeleteDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_DeleteDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteDataPolicyAsync(DeleteDataPolicyRequest, CallSettings)

    public override Task DeleteDataPolicyAsync(DeleteDataPolicyRequest request, CallSettings callSettings = null)

Deletes the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DeleteDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.DeleteDataPolicyAsync(DeleteDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_DeleteDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_DeleteDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDataPolicy(GetDataPolicyRequest, CallSettings)

    public override DataPolicy GetDataPolicy(GetDataPolicyRequest request, CallSettings callSettings = null)

Gets the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | The RPC response. |

**Overrides** [DataPolicyServiceClient.GetDataPolicy(GetDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_GetDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetDataPolicyAsync(GetDataPolicyRequest, CallSettings)

    public override Task<DataPolicy> GetDataPolicyAsync(GetDataPolicyRequest request, CallSettings callSettings = null)

Gets the data policy specified by its resource name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.GetDataPolicyAsync(GetDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_GetDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [DataPolicyServiceClient.GetIamPolicy(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetIamPolicy_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_GetIamPolicyAsync_Google_Cloud_Iam_V1_GetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDataPolicies(ListDataPoliciesRequest, CallSettings)

    public override PagedEnumerable<ListDataPoliciesResponse, DataPolicy> ListDataPolicies(ListDataPoliciesRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.ListDataPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.ListDataPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A pageable sequence of [DataPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy) resources. |

**Overrides** [DataPolicyServiceClient.ListDataPolicies(ListDataPoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPolicies_Google_Cloud_BigQuery_DataPolicies_V1_ListDataPoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListDataPoliciesAsync(ListDataPoliciesRequest, CallSettings)

    public override PagedAsyncEnumerable<ListDataPoliciesResponse, DataPolicy> ListDataPoliciesAsync(ListDataPoliciesRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.ListDataPoliciesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.ListDataPoliciesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A pageable asynchronous sequence of [DataPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy) resources. |

**Overrides** [DataPolicyServiceClient.ListDataPoliciesAsync(ListDataPoliciesRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_ListDataPoliciesAsync_Google_Cloud_BigQuery_DataPolicies_V1_ListDataPoliciesRequest_Google_Api_Gax_Grpc_CallSettings_)

### RenameDataPolicy(RenameDataPolicyRequest, CallSettings)

    public override DataPolicy RenameDataPolicy(RenameDataPolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.RenameDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | The RPC response. |

**Overrides** [DataPolicyServiceClient.RenameDataPolicy(RenameDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_RenameDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### RenameDataPolicyAsync(RenameDataPolicyRequest, CallSettings)

    public override Task<DataPolicy> RenameDataPolicyAsync(RenameDataPolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.RenameDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.RenameDataPolicyAsync(RenameDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_RenameDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_RenameDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

    public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Overrides** [DataPolicyServiceClient.SetIamPolicy(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_SetIamPolicy_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

    public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for the specified data policy.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_SetIamPolicyAsync_Google_Cloud_Iam_V1_SetIamPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissions(TestIamPermissionsRequest, CallSettings)

    public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Overrides** [DataPolicyServiceClient.TestIamPermissions(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_TestIamPermissions_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

    public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_TestIamPermissionsAsync_Google_Cloud_Iam_V1_TestIamPermissionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDataPolicy(UpdateDataPolicyRequest, CallSettings)

    public override DataPolicy UpdateDataPolicy(UpdateDataPolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.UpdateDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | The RPC response. |

**Overrides** [DataPolicyServiceClient.UpdateDataPolicy(UpdateDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicy_Google_Cloud_BigQuery_DataPolicies_V1_UpdateDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateDataPolicyAsync(UpdateDataPolicyRequest, CallSettings)

    public override Task<DataPolicy> UpdateDataPolicyAsync(UpdateDataPolicyRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.UpdateDataPolicyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicy` | A Task containing the RPC response. |

**Overrides** [DataPolicyServiceClient.UpdateDataPolicyAsync(UpdateDataPolicyRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyServiceClient#Google_Cloud_BigQuery_DataPolicies_V1_DataPolicyServiceClient_UpdateDataPolicyAsync_Google_Cloud_BigQuery_DataPolicies_V1_UpdateDataPolicyRequest_Google_Api_Gax_Grpc_CallSettings_)