Cloud Dataplex v1 API - Class ContentService.ContentServiceBase (2.14.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
NameDescription
requestCreateContentRequest

The request received from the client.

contextServerCallContext

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

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

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

GetContent(GetContentRequest, ServerCallContext)

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

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

The request received from the client.

contextServerCallContext

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

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

ListContent(ListContentRequest, ServerCallContext)

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

List content.

Parameters
NameDescription
requestListContentRequest

The request received from the client.

contextServerCallContext

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

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

UpdateContent(UpdateContentRequest, ServerCallContext)

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

Update a content. Only supports full resource update.

Parameters
NameDescription
requestUpdateContentRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskContent

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