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.
Namespace
Google.Cloud.Dataplex.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient | ContentService.ContentServiceClient 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 |
ContentService.ContentServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
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. |
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 |
Task<Content> | A Task containing the RPC response. |
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. |
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. |
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. |
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 |
Task<Content> | A Task containing the RPC response. |
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. |
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 |
Task<Policy> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListContentResponse, Content> | A pageable sequence of Content resources. |
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 |
PagedAsyncEnumerable<ListContentResponse, Content> | A pageable asynchronous sequence of Content resources. |
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. |
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 |
Task<Policy> | A Task containing the RPC response. |
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. |
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 |
Task<TestIamPermissionsResponse> | A Task containing the RPC response. |
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. |
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 |
Task<Content> | A Task containing the RPC response. |