BigQuery Data Policy v1beta1 API - Class DataPolicyServiceClientImpl (1.0.0-beta03)

public sealed class DataPolicyServiceClientImpl : DataPolicyServiceClient

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

DataPolicyService client wrapper implementation, for convenient use.

Inheritance

object > DataPolicyServiceClient > DataPolicyServiceClientImpl

Namespace

Google.Cloud.BigQuery.DataPolicies.V1Beta1

Assembly

Google.Cloud.BigQuery.DataPolicies.V1Beta1.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 DataPolicyServiceDataPolicyServiceClient

The underlying gRPC client.

settings DataPolicyServiceSettings

The base DataPolicyServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override DataPolicyService.DataPolicyServiceClient GrpcClient { get; }

The underlying gRPC DataPolicyService client

Property Value
Type Description
DataPolicyServiceDataPolicyServiceClient
Overrides

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 CreateDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataPolicy

The RPC response.

Overrides

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 CreateDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataPolicy

A Task containing the RPC response.

Overrides

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 DeleteDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

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 DeleteDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

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 GetDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataPolicy

The RPC response.

Overrides

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 GetDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataPolicy

A Task containing the RPC response.

Overrides

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 GetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

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 GetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

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 ListDataPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListDataPoliciesResponseDataPolicy

A pageable sequence of DataPolicy resources.

Overrides

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 ListDataPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListDataPoliciesResponseDataPolicy

A pageable asynchronous sequence of DataPolicy resources.

Overrides

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 SetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

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 SetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

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 TestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestIamPermissionsResponse

The RPC response.

Overrides

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 TestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Overrides

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 UpdateDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataPolicy

The RPC response.

Overrides

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 UpdateDataPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataPolicy

A Task containing the RPC response.

Overrides