Cloud Dataplex v1 API - Class ContentServiceClientImpl (3.1.0)

public sealed class ContentServiceClientImpl : ContentServiceClient

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

ContentService client wrapper implementation, for convenient use.

Inheritance

object > ContentServiceClient > ContentServiceClientImpl

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Remarks

ContentService manages Notebook and SQL Scripts for Dataplex.

Constructors

ContentServiceClientImpl(ContentServiceClient, ContentServiceSettings, ILogger)

public ContentServiceClientImpl(ContentService.ContentServiceClient grpcClient, ContentServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ContentService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient ContentServiceContentServiceClient

The underlying gRPC client.

settings ContentServiceSettings

The base ContentServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override ContentService.ContentServiceClient GrpcClient { get; }

The underlying gRPC ContentService client

Property Value
Type Description
ContentServiceContentServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateContent(CreateContentRequest, CallSettings)

public override Content CreateContent(CreateContentRequest request, CallSettings callSettings = null)

Create a content.

Parameters
Name Description
request CreateContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Content

The RPC response.

Overrides

CreateContentAsync(CreateContentRequest, CallSettings)

public override Task<Content> CreateContentAsync(CreateContentRequest request, CallSettings callSettings = null)

Create a content.

Parameters
Name Description
request CreateContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskContent

A Task containing the RPC response.

Overrides

DeleteContent(DeleteContentRequest, CallSettings)

public override void DeleteContent(DeleteContentRequest request, CallSettings callSettings = null)

Delete a content.

Parameters
Name Description
request DeleteContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteContentAsync(DeleteContentRequest, CallSettings)

public override Task DeleteContentAsync(DeleteContentRequest request, CallSettings callSettings = null)

Delete a content.

Parameters
Name Description
request DeleteContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetContent(GetContentRequest, CallSettings)

public override Content GetContent(GetContentRequest request, CallSettings callSettings = null)

Get a content resource.

Parameters
Name Description
request GetContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Content

The RPC response.

Overrides

GetContentAsync(GetContentRequest, CallSettings)

public override Task<Content> GetContentAsync(GetContentRequest request, CallSettings callSettings = null)

Get a content resource.

Parameters
Name Description
request GetContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskContent

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

ListContent(ListContentRequest, CallSettings)

public override PagedEnumerable<ListContentResponse, Content> ListContent(ListContentRequest request, CallSettings callSettings = null)

List content.

Parameters
Name Description
request ListContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListContentResponseContent

A pageable sequence of Content resources.

Overrides

ListContentAsync(ListContentRequest, CallSettings)

public override PagedAsyncEnumerable<ListContentResponse, Content> ListContentAsync(ListContentRequest request, CallSettings callSettings = null)

List content.

Parameters
Name Description
request ListContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListContentResponseContent

A pageable asynchronous sequence of Content resources.

Overrides

SetIamPolicy(SetIamPolicyRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

public override TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestIamPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

public override Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Overrides

UpdateContent(UpdateContentRequest, CallSettings)

public override Content UpdateContent(UpdateContentRequest request, CallSettings callSettings = null)

Update a content. Only supports full resource update.

Parameters
Name Description
request UpdateContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Content

The RPC response.

Overrides

UpdateContentAsync(UpdateContentRequest, CallSettings)

public override Task<Content> UpdateContentAsync(UpdateContentRequest request, CallSettings callSettings = null)

Update a content. Only supports full resource update.

Parameters
Name Description
request UpdateContentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskContent

A Task containing the RPC response.

Overrides