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.
Namespace
GoogleGoogle.CloudGoogle.Cloud.BigQueryGoogle.Cloud.BigQuery.DataPoliciesV1Assembly
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 | 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 |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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 | RenameDataPolicyRequest 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. |
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 | RenameDataPolicyRequest 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. |
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. |
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. |
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. |
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. |
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. |
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. |