BigQuery Data Policy v1 API - Class DataPolicyServiceClientImpl (1.1.0)

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 > DataPolicyServiceClient > DataPolicyServiceClientImpl

Namespace

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
NameDescription
grpcClientDataPolicyServiceDataPolicyServiceClient

The underlying gRPC client.

settingsDataPolicyServiceSettings

The base DataPolicyServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override DataPolicyService.DataPolicyServiceClient GrpcClient { get; }

The underlying gRPC DataPolicyService client

Property Value
TypeDescription
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
NameDescription
requestCreateDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteDataPolicyRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListDataPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListDataPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListDataPoliciesResponseDataPolicy

A pageable asynchronous sequence of DataPolicy resources.

Overrides

RenameDataPolicy(RenameDataPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestRenameDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DataPolicy

The RPC response.

Overrides

RenameDataPolicyAsync(RenameDataPolicyRequest, CallSettings)

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

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

Parameters
NameDescription
requestRenameDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDataPolicy

A Task containing the RPC response.

Overrides

SetIamPolicy(SetIamPolicyRequest, CallSettings)

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

Sets the IAM policy for the specified data policy.

Parameters
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDataPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskDataPolicy

A Task containing the RPC response.

Overrides