BigQuery Data Policy v1beta1 API - Class DataPolicyService.DataPolicyServiceBase (1.0.0-beta02)

[BindServiceMethod(typeof(DataPolicyService), "BindService")]
public abstract class DataPolicyService.DataPolicyServiceBase

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

Base class for server-side implementations of DataPolicyService

Inheritance

object > DataPolicyService.DataPolicyServiceBase

Namespace

Google.Cloud.BigQuery.DataPolicies.V1Beta1

Assembly

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

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

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataPolicy

The response to send back to the client (wrapped by a task).