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