[BindServiceMethod(typeof(DataPolicyService), "BindService")]
public abstract class DataPolicyService.DataPolicyServiceBaseReference documentation and code samples for the BigQuery Data Policy v1beta1 API class DataPolicyService.DataPolicyServiceBase.
Base class for server-side implementations of DataPolicyService
Namespace
Google.Cloud.BigQuery.DataPolicies.V1Beta1Assembly
Google.Cloud.BigQuery.DataPolicies.V1Beta1.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 |
CreateDataPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
DeleteDataPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetDataPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetIamPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListDataPoliciesRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
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 |
SetIamPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
TestIamPermissionsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
UpdateDataPolicyRequestThe request received from the client. |
context |
ServerCallContextThe 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). |