public abstract class ContentServiceClient
Reference documentation and code samples for the Cloud Dataplex v1 API class ContentServiceClient.
ContentService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Remarks
ContentService manages Notebook and SQL Scripts for Dataplex.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ContentService service, which is a host of "dataplex.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ContentService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default ContentService scopes are:
GrpcClient
public virtual ContentService.ContentServiceClient GrpcClient { get; }
The underlying gRPC ContentService client
Property Value | |
---|---|
Type | Description |
ContentServiceContentServiceClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static ContentServiceClient Create()
Synchronously creates a ContentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ContentServiceClientBuilder.
Returns | |
---|---|
Type | Description |
ContentServiceClient | The created ContentServiceClient. |
CreateAsync(CancellationToken)
public static Task<ContentServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a ContentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ContentServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskContentServiceClient | The task representing the created ContentServiceClient. |
CreateContent(CreateContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateContentRequest request = new gcdv::CreateContentRequest
{
ParentAsLakeName = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]"),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = contentServiceClient.CreateContent(request);
CreateContent(LakeName, Content, CallSettings)
public virtual Content CreateContent(LakeName parent, Content content, CallSettings callSettings = null)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | LakeName Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Content | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::LakeName parent = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]");
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = contentServiceClient.CreateContent(parent, content);
CreateContent(string, Content, CallSettings)
public virtual Content CreateContent(string parent, Content content, CallSettings callSettings = null)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Content | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]";
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = contentServiceClient.CreateContent(parent, content);
CreateContentAsync(CreateContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateContentRequest request = new gcdv::CreateContentRequest
{
ParentAsLakeName = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]"),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(request);
CreateContentAsync(CreateContentRequest, CancellationToken)
public virtual Task<Content> CreateContentAsync(CreateContentRequest request, CancellationToken cancellationToken)
Create a content.
Parameters | |
---|---|
Name | Description |
request | CreateContentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateContentRequest request = new gcdv::CreateContentRequest
{
ParentAsLakeName = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]"),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(request);
CreateContentAsync(LakeName, Content, CallSettings)
public virtual Task<Content> CreateContentAsync(LakeName parent, Content content, CallSettings callSettings = null)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | LakeName Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::LakeName parent = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]");
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(parent, content);
CreateContentAsync(LakeName, Content, CancellationToken)
public virtual Task<Content> CreateContentAsync(LakeName parent, Content content, CancellationToken cancellationToken)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | LakeName Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::LakeName parent = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]");
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(parent, content);
CreateContentAsync(string, Content, CallSettings)
public virtual Task<Content> CreateContentAsync(string parent, Content content, CallSettings callSettings = null)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]";
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(parent, content);
CreateContentAsync(string, Content, CancellationToken)
public virtual Task<Content> CreateContentAsync(string parent, Content content, CancellationToken cancellationToken)
Create a content.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
content | Content Required. Content resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]";
gcdv::Content content = new gcdv::Content();
// Make the request
gcdv::Content response = await contentServiceClient.CreateContentAsync(parent, content);
DeleteContent(ContentName, CallSettings)
public virtual void DeleteContent(ContentName name, CallSettings callSettings = null)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
contentServiceClient.DeleteContent(name);
DeleteContent(DeleteContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteContentRequest request = new gcdv::DeleteContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
};
// Make the request
contentServiceClient.DeleteContent(request);
DeleteContent(string, CallSettings)
public virtual void DeleteContent(string name, CallSettings callSettings = null)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
contentServiceClient.DeleteContent(name);
DeleteContentAsync(ContentName, CallSettings)
public virtual Task DeleteContentAsync(ContentName name, CallSettings callSettings = null)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
await contentServiceClient.DeleteContentAsync(name);
DeleteContentAsync(ContentName, CancellationToken)
public virtual Task DeleteContentAsync(ContentName name, CancellationToken cancellationToken)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
await contentServiceClient.DeleteContentAsync(name);
DeleteContentAsync(DeleteContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteContentRequest request = new gcdv::DeleteContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
};
// Make the request
await contentServiceClient.DeleteContentAsync(request);
DeleteContentAsync(DeleteContentRequest, CancellationToken)
public virtual Task DeleteContentAsync(DeleteContentRequest request, CancellationToken cancellationToken)
Delete a content.
Parameters | |
---|---|
Name | Description |
request | DeleteContentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteContentRequest request = new gcdv::DeleteContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
};
// Make the request
await contentServiceClient.DeleteContentAsync(request);
DeleteContentAsync(string, CallSettings)
public virtual Task DeleteContentAsync(string name, CallSettings callSettings = null)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
await contentServiceClient.DeleteContentAsync(name);
DeleteContentAsync(string, CancellationToken)
public virtual Task DeleteContentAsync(string name, CancellationToken cancellationToken)
Delete a content.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
await contentServiceClient.DeleteContentAsync(name);
GetContent(ContentName, CallSettings)
public virtual Content GetContent(ContentName name, CallSettings callSettings = null)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Content | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
gcdv::Content response = contentServiceClient.GetContent(name);
GetContent(GetContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::GetContentRequest request = new gcdv::GetContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
View = gcdv::GetContentRequest.Types.ContentView.Unspecified,
};
// Make the request
gcdv::Content response = contentServiceClient.GetContent(request);
GetContent(string, CallSettings)
public virtual Content GetContent(string name, CallSettings callSettings = null)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Content | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
gcdv::Content response = contentServiceClient.GetContent(name);
GetContentAsync(ContentName, CallSettings)
public virtual Task<Content> GetContentAsync(ContentName name, CallSettings callSettings = null)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(name);
GetContentAsync(ContentName, CancellationToken)
public virtual Task<Content> GetContentAsync(ContentName name, CancellationToken cancellationToken)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | ContentName Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ContentName name = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]");
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(name);
GetContentAsync(GetContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetContentRequest request = new gcdv::GetContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
View = gcdv::GetContentRequest.Types.ContentView.Unspecified,
};
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(request);
GetContentAsync(GetContentRequest, CancellationToken)
public virtual Task<Content> GetContentAsync(GetContentRequest request, CancellationToken cancellationToken)
Get a content resource.
Parameters | |
---|---|
Name | Description |
request | GetContentRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetContentRequest request = new gcdv::GetContentRequest
{
ContentName = gcdv::ContentName.FromProjectLocationLakeContent("[PROJECT]", "[LOCATION]", "[LAKE]", "[CONTENT]"),
View = gcdv::GetContentRequest.Types.ContentView.Unspecified,
};
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(request);
GetContentAsync(string, CallSettings)
public virtual Task<Content> GetContentAsync(string name, CallSettings callSettings = null)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(name);
GetContentAsync(string, CancellationToken)
public virtual Task<Content> GetContentAsync(string name, CancellationToken cancellationToken)
Get a content resource.
Parameters | |
---|---|
Name | Description |
name | string Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/content/[CONTENT]";
// Make the request
gcdv::Content response = await contentServiceClient.GetContentAsync(name);
GetIamPolicy(IResourceName, CallSettings)
public virtual Policy GetIamPolicy(IResourceName resource, 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 |
resource | IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = contentServiceClient.GetIamPolicy(resource);
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = contentServiceClient.GetIamPolicy(request);
GetIamPolicy(string, CallSettings)
public virtual Policy GetIamPolicy(string resource, 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 |
resource | string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = contentServiceClient.GetIamPolicy(resource);
GetIamPolicyAsync(IResourceName, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, 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 |
resource | IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(IResourceName, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)
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 |
resource | IResourceName REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string resource, 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 |
resource | string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
GetIamPolicyAsync(string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)
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 |
resource | string REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
Policy response = await contentServiceClient.GetIamPolicyAsync(resource);
ListContent(LakeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListContentResponse, Content> ListContent(LakeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List content.
Parameters | |
---|---|
Name | Description |
parent | LakeName Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListContentResponseContent | A pageable sequence of Content resources. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::LakeName parent = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]");
// Make the request
PagedEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContent(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Content item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListContentResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListContent(ListContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::ListContentRequest request = new gcdv::ListContentRequest
{
ParentAsLakeName = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]"),
Filter = "",
};
// Make the request
PagedEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContent(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Content item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListContentResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListContent(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListContentResponse, Content> ListContent(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List content.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListContentResponseContent | A pageable sequence of Content resources. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]";
// Make the request
PagedEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContent(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Content item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListContentResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListContentAsync(LakeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListContentResponse, Content> ListContentAsync(LakeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List content.
Parameters | |
---|---|
Name | Description |
parent | LakeName Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListContentResponseContent | A pageable asynchronous sequence of Content resources. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::LakeName parent = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]");
// Make the request
PagedAsyncEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContentAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Content item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((gcdv::ListContentResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListContentAsync(ListContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListContentRequest request = new gcdv::ListContentRequest
{
ParentAsLakeName = gcdv::LakeName.FromProjectLocationLake("[PROJECT]", "[LOCATION]", "[LAKE]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContentAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Content item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((gcdv::ListContentResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListContentAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListContentResponse, Content> ListContentAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
List content.
Parameters | |
---|---|
Name | Description |
parent | string Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} |
pageToken | string The token returned from the previous request. A value of |
pageSize | int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListContentResponseContent | A pageable asynchronous sequence of Content resources. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]";
// Make the request
PagedAsyncEnumerable<gcdv::ListContentResponse, gcdv::Content> response = contentServiceClient.ListContentAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Content item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((gcdv::ListContentResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::Content item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::Content> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::Content item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = contentServiceClient.SetIamPolicy(request);
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await contentServiceClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await contentServiceClient.SetIamPolicyAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = contentServiceClient.TestIamPermissions(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await contentServiceClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await contentServiceClient.TestIamPermissionsAsync(request);
UpdateContent(Content, FieldMask, CallSettings)
public virtual Content UpdateContent(Content content, FieldMask updateMask, CallSettings callSettings = null)
Update a content. Only supports full resource update.
Parameters | |
---|---|
Name | Description |
content | Content Required. Update description.
Only fields specified in |
updateMask | FieldMask Required. Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Content | The RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::Content content = new gcdv::Content();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::Content response = contentServiceClient.UpdateContent(content, updateMask);
UpdateContent(UpdateContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = gcdv::ContentServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateContentRequest request = new gcdv::UpdateContentRequest
{
UpdateMask = new FieldMask(),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = contentServiceClient.UpdateContent(request);
UpdateContentAsync(Content, FieldMask, CallSettings)
public virtual Task<Content> UpdateContentAsync(Content content, FieldMask updateMask, CallSettings callSettings = null)
Update a content. Only supports full resource update.
Parameters | |
---|---|
Name | Description |
content | Content Required. Update description.
Only fields specified in |
updateMask | FieldMask Required. Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::Content content = new gcdv::Content();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::Content response = await contentServiceClient.UpdateContentAsync(content, updateMask);
UpdateContentAsync(Content, FieldMask, CancellationToken)
public virtual Task<Content> UpdateContentAsync(Content content, FieldMask updateMask, CancellationToken cancellationToken)
Update a content. Only supports full resource update.
Parameters | |
---|---|
Name | Description |
content | Content Required. Update description.
Only fields specified in |
updateMask | FieldMask Required. Mask of fields to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::Content content = new gcdv::Content();
FieldMask updateMask = new FieldMask();
// Make the request
gcdv::Content response = await contentServiceClient.UpdateContentAsync(content, updateMask);
UpdateContentAsync(UpdateContentRequest, CallSettings)
public virtual 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. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateContentRequest request = new gcdv::UpdateContentRequest
{
UpdateMask = new FieldMask(),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = await contentServiceClient.UpdateContentAsync(request);
UpdateContentAsync(UpdateContentRequest, CancellationToken)
public virtual Task<Content> UpdateContentAsync(UpdateContentRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskContent | A Task containing the RPC response. |
// Create client
gcdv::ContentServiceClient contentServiceClient = await gcdv::ContentServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateContentRequest request = new gcdv::UpdateContentRequest
{
UpdateMask = new FieldMask(),
Content = new gcdv::Content(),
ValidateOnly = false,
};
// Make the request
gcdv::Content response = await contentServiceClient.UpdateContentAsync(request);