Cloud Dataplex v1 API - Class ContentServiceClientImpl (2.2.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(ContentService.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
NameDescription
grpcClientContentService.ContentServiceClient

The underlying gRPC client.

settingsContentServiceSettings

The base ContentServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override ContentService.ContentServiceClient GrpcClient { get; }

The underlying gRPC ContentService client

Property Value
TypeDescription
ContentService.ContentServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

CreateContent(CreateContentRequest, CallSettings)

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

Create a content.

Parameters
NameDescription
requestCreateContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Content

The RPC response.

Overrides

CreateContentAsync(CreateContentRequest, CallSettings)

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

Create a content.

Parameters
NameDescription
requestCreateContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Content>

A Task containing the RPC response.

Overrides

DeleteContent(DeleteContentRequest, CallSettings)

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

Delete a content.

Parameters
NameDescription
requestDeleteContentRequest

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

callSettingsCallSettings

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Content

The RPC response.

Overrides

GetContentAsync(GetContentRequest, CallSettings)

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

Get a content resource.

Parameters
NameDescription
requestGetContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Content>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

A Task containing the RPC response.

Overrides

ListContent(ListContentRequest, CallSettings)

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

List content.

Parameters
NameDescription
requestListContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListContentResponse, Content>

A pageable sequence of Content resources.

Overrides

ListContentAsync(ListContentRequest, CallSettings)

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

List content.

Parameters
NameDescription
requestListContentRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListContentResponse, Content>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestIamPermissionsResponse>

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Content>

A Task containing the RPC response.

Overrides