Cloud Dataplex v1 API - Class ContentService.ContentServiceBase (3.1.0)

[BindServiceMethod(typeof(ContentService), "BindService")]
public abstract class ContentService.ContentServiceBase

Reference documentation and code samples for the Cloud Dataplex v1 API class ContentService.ContentServiceBase.

Base class for server-side implementations of ContentService

Inheritance

object > ContentService.ContentServiceBase

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Methods

CreateContent(CreateContentRequest, ServerCallContext)

public virtual Task<Content> CreateContent(CreateContentRequest request, ServerCallContext context)

Create a content.

Parameters
Name Description
request CreateContentRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskContent

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

DeleteContent(DeleteContentRequest, ServerCallContext)

public virtual Task<Empty> DeleteContent(DeleteContentRequest request, ServerCallContext context)

Delete a content.

Parameters
Name Description
request DeleteContentRequest

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).

GetContent(GetContentRequest, ServerCallContext)

public virtual Task<Content> GetContent(GetContentRequest request, ServerCallContext context)

Get a content resource.

Parameters
Name Description
request GetContentRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskContent

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 access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.

Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.

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).

ListContent(ListContentRequest, ServerCallContext)

public virtual Task<ListContentResponse> ListContent(ListContentRequest request, ServerCallContext context)

List content.

Parameters
Name Description
request ListContentRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskListContentResponse

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 access control policy on the specified contentitem resource. Replaces any existing policy.

Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource.

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 permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).

A caller is not required to have Google IAM permission to make this request.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

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).

UpdateContent(UpdateContentRequest, ServerCallContext)

public virtual Task<Content> UpdateContent(UpdateContentRequest request, ServerCallContext context)

Update a content. Only supports full resource update.

Parameters
Name Description
request UpdateContentRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskContent

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