Chronicle v1 API - Class FeaturedContentNativeDashboardServiceClient (1.0.0-beta05)

public abstract class FeaturedContentNativeDashboardServiceClient

Reference documentation and code samples for the Chronicle v1 API class FeaturedContentNativeDashboardServiceClient.

FeaturedContentNativeDashboardService client wrapper, for convenient use.

Inheritance

object > FeaturedContentNativeDashboardServiceClient

Namespace

Google.Cloud.Chronicle.V1

Assembly

Google.Cloud.Chronicle.V1.dll

Remarks

This service provides functionality for managing FeaturedContentNativeDashboard.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the FeaturedContentNativeDashboardService service, which is a host of "chronicle.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default FeaturedContentNativeDashboardService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual FeaturedContentNativeDashboardService.FeaturedContentNativeDashboardServiceClient GrpcClient { get; }

The underlying gRPC FeaturedContentNativeDashboardService client

Property Value
Type Description
FeaturedContentNativeDashboardServiceFeaturedContentNativeDashboardServiceClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static FeaturedContentNativeDashboardServiceClient Create()

Synchronously creates a FeaturedContentNativeDashboardServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeaturedContentNativeDashboardServiceClientBuilder.

Returns
Type Description
FeaturedContentNativeDashboardServiceClient

The created FeaturedContentNativeDashboardServiceClient.

CreateAsync(CancellationToken)

public static Task<FeaturedContentNativeDashboardServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a FeaturedContentNativeDashboardServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use FeaturedContentNativeDashboardServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskFeaturedContentNativeDashboardServiceClient

The task representing the created FeaturedContentNativeDashboardServiceClient.

GetFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName, CallSettings)

public virtual FeaturedContentNativeDashboard GetFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName name, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FeaturedContentNativeDashboard

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
FeaturedContentNativeDashboard response = featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboard(name);

GetFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest, CallSettings)

public virtual FeaturedContentNativeDashboard GetFeaturedContentNativeDashboard(GetFeaturedContentNativeDashboardRequest request, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
request GetFeaturedContentNativeDashboardRequest

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
FeaturedContentNativeDashboard

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
GetFeaturedContentNativeDashboardRequest request = new GetFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
};
// Make the request
FeaturedContentNativeDashboard response = featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboard(request);

GetFeaturedContentNativeDashboard(string, CallSettings)

public virtual FeaturedContentNativeDashboard GetFeaturedContentNativeDashboard(string name, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
FeaturedContentNativeDashboard

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
FeaturedContentNativeDashboard response = featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboard(name);

GetFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName, CallSettings)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName name, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(name);

GetFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName, CancellationToken)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName name, CancellationToken cancellationToken)

Get a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(name);

GetFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest, CallSettings)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest request, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
request GetFeaturedContentNativeDashboardRequest

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
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeaturedContentNativeDashboardRequest request = new GetFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
};
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(request);

GetFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest, CancellationToken)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(GetFeaturedContentNativeDashboardRequest request, CancellationToken cancellationToken)

Get a native dashboard featured content.

Parameters
Name Description
request GetFeaturedContentNativeDashboardRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
GetFeaturedContentNativeDashboardRequest request = new GetFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
};
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(request);

GetFeaturedContentNativeDashboardAsync(string, CallSettings)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(string name, CallSettings callSettings = null)

Get a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(name);

GetFeaturedContentNativeDashboardAsync(string, CancellationToken)

public virtual Task<FeaturedContentNativeDashboard> GetFeaturedContentNativeDashboardAsync(string name, CancellationToken cancellationToken)

Get a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskFeaturedContentNativeDashboard

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
FeaturedContentNativeDashboard response = await featuredContentNativeDashboardServiceClient.GetFeaturedContentNativeDashboardAsync(name);

InstallFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName, CallSettings)

public virtual InstallFeaturedContentNativeDashboardResponse InstallFeaturedContentNativeDashboard(FeaturedContentNativeDashboardName name, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InstallFeaturedContentNativeDashboardResponse

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
InstallFeaturedContentNativeDashboardResponse response = featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboard(name);

InstallFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest, CallSettings)

public virtual InstallFeaturedContentNativeDashboardResponse InstallFeaturedContentNativeDashboard(InstallFeaturedContentNativeDashboardRequest request, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
request InstallFeaturedContentNativeDashboardRequest

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
InstallFeaturedContentNativeDashboardResponse

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
InstallFeaturedContentNativeDashboardRequest request = new InstallFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
    FeaturedContentNativeDashboard = new FeaturedContentNativeDashboard(),
};
// Make the request
InstallFeaturedContentNativeDashboardResponse response = featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboard(request);

InstallFeaturedContentNativeDashboard(string, CallSettings)

public virtual InstallFeaturedContentNativeDashboardResponse InstallFeaturedContentNativeDashboard(string name, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InstallFeaturedContentNativeDashboardResponse

The RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
InstallFeaturedContentNativeDashboardResponse response = featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboard(name);

InstallFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName, CallSettings)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName name, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(name);

InstallFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName, CancellationToken)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(FeaturedContentNativeDashboardName name, CancellationToken cancellationToken)

Install a native dashboard featured content.

Parameters
Name Description
name FeaturedContentNativeDashboardName

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
FeaturedContentNativeDashboardName name = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]");
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(name);

InstallFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest, CallSettings)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest request, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
request InstallFeaturedContentNativeDashboardRequest

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
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
InstallFeaturedContentNativeDashboardRequest request = new InstallFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
    FeaturedContentNativeDashboard = new FeaturedContentNativeDashboard(),
};
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(request);

InstallFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest, CancellationToken)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(InstallFeaturedContentNativeDashboardRequest request, CancellationToken cancellationToken)

Install a native dashboard featured content.

Parameters
Name Description
request InstallFeaturedContentNativeDashboardRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
InstallFeaturedContentNativeDashboardRequest request = new InstallFeaturedContentNativeDashboardRequest
{
    FeaturedContentNativeDashboardName = FeaturedContentNativeDashboardName.FromProjectLocationInstanceFeaturedContentNativeDashboard("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[FEATURED_CONTENT_NATIVE_DASHBOARD]"),
    FeaturedContentNativeDashboard = new FeaturedContentNativeDashboard(),
};
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(request);

InstallFeaturedContentNativeDashboardAsync(string, CallSettings)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(string name, CallSettings callSettings = null)

Install a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(name);

InstallFeaturedContentNativeDashboardAsync(string, CancellationToken)

public virtual Task<InstallFeaturedContentNativeDashboardResponse> InstallFeaturedContentNativeDashboardAsync(string name, CancellationToken cancellationToken)

Install a native dashboard featured content.

Parameters
Name Description
name string

Required. The resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstallFeaturedContentNativeDashboardResponse

A Task containing the RPC response.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub/featuredContentNativeDashboards/[FEATURED_CONTENT_NATIVE_DASHBOARD]";
// Make the request
InstallFeaturedContentNativeDashboardResponse response = await featuredContentNativeDashboardServiceClient.InstallFeaturedContentNativeDashboardAsync(name);

ListFeaturedContentNativeDashboards(ContentHubName, string, int?, CallSettings)

public virtual PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboards(ContentHubName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
parent ContentHubName

Required. The parent, which owns this collection of FeaturedContentNativeDashboards. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
ContentHubName parent = ContentHubName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboards(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (FeaturedContentNativeDashboard 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 (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

ListFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest, CallSettings)

public virtual PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboards(ListFeaturedContentNativeDashboardsRequest request, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
request ListFeaturedContentNativeDashboardsRequest

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
PagedEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
ListFeaturedContentNativeDashboardsRequest request = new ListFeaturedContentNativeDashboardsRequest
{
    ParentAsContentHubName = ContentHubName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboards(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (FeaturedContentNativeDashboard 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 (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

ListFeaturedContentNativeDashboards(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboards(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of FeaturedContentNativeDashboards. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = FeaturedContentNativeDashboardServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub";
// Make the request
PagedEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboards(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (FeaturedContentNativeDashboard 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 (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

ListFeaturedContentNativeDashboardsAsync(ContentHubName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboardsAsync(ContentHubName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
parent ContentHubName

Required. The parent, which owns this collection of FeaturedContentNativeDashboards. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable asynchronous sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
ContentHubName parent = ContentHubName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]");
// Make the request
PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (FeaturedContentNativeDashboard item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

ListFeaturedContentNativeDashboardsAsync(ListFeaturedContentNativeDashboardsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboardsAsync(ListFeaturedContentNativeDashboardsRequest request, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
request ListFeaturedContentNativeDashboardsRequest

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
PagedAsyncEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable asynchronous sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
ListFeaturedContentNativeDashboardsRequest request = new ListFeaturedContentNativeDashboardsRequest
{
    ParentAsContentHubName = ContentHubName.FromProjectLocationInstance("[PROJECT]", "[LOCATION]", "[INSTANCE]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (FeaturedContentNativeDashboard item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

ListFeaturedContentNativeDashboardsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> ListFeaturedContentNativeDashboardsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List all native dashboards featured content.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of FeaturedContentNativeDashboards. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListFeaturedContentNativeDashboardsResponseFeaturedContentNativeDashboard

A pageable asynchronous sequence of FeaturedContentNativeDashboard resources.

Example
// Create client
FeaturedContentNativeDashboardServiceClient featuredContentNativeDashboardServiceClient = await FeaturedContentNativeDashboardServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/instances/[INSTANCE]/contentHub";
// Make the request
PagedAsyncEnumerable<ListFeaturedContentNativeDashboardsResponse, FeaturedContentNativeDashboard> response = featuredContentNativeDashboardServiceClient.ListFeaturedContentNativeDashboardsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (FeaturedContentNativeDashboard item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFeaturedContentNativeDashboardsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (FeaturedContentNativeDashboard 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<FeaturedContentNativeDashboard> 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 (FeaturedContentNativeDashboard 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;

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.

Remarks

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.