Analytics Hub v1beta1 API - Class AnalyticsHubServiceClient (2.0.0-beta05)

public abstract class AnalyticsHubServiceClient

Reference documentation and code samples for the Analytics Hub v1beta1 API class AnalyticsHubServiceClient.

AnalyticsHubService client wrapper, for convenient use.

Inheritance

object > AnalyticsHubServiceClient

Namespace

Google.Cloud.BigQuery.DataExchange.V1Beta1

Assembly

Google.Cloud.BigQuery.DataExchange.V1Beta1.dll

Remarks

The AnalyticsHubService API facilitates data sharing within and across organizations. It allows data providers to publish listings that reference shared datasets. With Analytics Hub, users can discover and search for listings that they have access to. Subscribers can view and subscribe to listings. When you subscribe to a listing, Analytics Hub creates a linked dataset in your project.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default AnalyticsHubService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual AnalyticsHubService.AnalyticsHubServiceClient GrpcClient { get; }

The underlying gRPC AnalyticsHubService client

Property Value
Type Description
AnalyticsHubServiceAnalyticsHubServiceClient

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 AnalyticsHubServiceClient Create()

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

Returns
Type Description
AnalyticsHubServiceClient

The created AnalyticsHubServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskAnalyticsHubServiceClient

The task representing the created AnalyticsHubServiceClient.

CreateDataExchange(LocationName, DataExchange, CallSettings)

public virtual DataExchange CreateDataExchange(LocationName parent, DataExchange dataExchange, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(parent, dataExchange);

CreateDataExchange(CreateDataExchangeRequest, CallSettings)

public virtual DataExchange CreateDataExchange(CreateDataExchangeRequest request, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
request CreateDataExchangeRequest

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
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataExchangeId = "",
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(request);

CreateDataExchange(string, DataExchange, CallSettings)

public virtual DataExchange CreateDataExchange(string parent, DataExchange dataExchange, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
parent string

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(parent, dataExchange);

CreateDataExchangeAsync(LocationName, DataExchange, CallSettings)

public virtual Task<DataExchange> CreateDataExchangeAsync(LocationName parent, DataExchange dataExchange, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);

CreateDataExchangeAsync(LocationName, DataExchange, CancellationToken)

public virtual Task<DataExchange> CreateDataExchangeAsync(LocationName parent, DataExchange dataExchange, CancellationToken cancellationToken)

Creates a new data exchange.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);

CreateDataExchangeAsync(CreateDataExchangeRequest, CallSettings)

public virtual Task<DataExchange> CreateDataExchangeAsync(CreateDataExchangeRequest request, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
request CreateDataExchangeRequest

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
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataExchangeId = "",
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(request);

CreateDataExchangeAsync(CreateDataExchangeRequest, CancellationToken)

public virtual Task<DataExchange> CreateDataExchangeAsync(CreateDataExchangeRequest request, CancellationToken cancellationToken)

Creates a new data exchange.

Parameters
Name Description
request CreateDataExchangeRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    DataExchangeId = "",
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(request);

CreateDataExchangeAsync(string, DataExchange, CallSettings)

public virtual Task<DataExchange> CreateDataExchangeAsync(string parent, DataExchange dataExchange, CallSettings callSettings = null)

Creates a new data exchange.

Parameters
Name Description
parent string

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);

CreateDataExchangeAsync(string, DataExchange, CancellationToken)

public virtual Task<DataExchange> CreateDataExchangeAsync(string parent, DataExchange dataExchange, CancellationToken cancellationToken)

Creates a new data exchange.

Parameters
Name Description
parent string

Required. The parent resource path of the data exchange. e.g. projects/myproject/locations/US.

dataExchange DataExchange

Required. The data exchange to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);

CreateListing(CreateListingRequest, CallSettings)

public virtual Listing CreateListing(CreateListingRequest request, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
request CreateListingRequest

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
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
    ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    ListingId = "",
    Listing = new Listing(),
};
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(request);

CreateListing(DataExchangeName, Listing, CallSettings)

public virtual Listing CreateListing(DataExchangeName parent, Listing listing, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
parent DataExchangeName

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(parent, listing);

CreateListing(string, Listing, CallSettings)

public virtual Listing CreateListing(string parent, Listing listing, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
parent string

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(parent, listing);

CreateListingAsync(CreateListingRequest, CallSettings)

public virtual Task<Listing> CreateListingAsync(CreateListingRequest request, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
request CreateListingRequest

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
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
    ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    ListingId = "",
    Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(request);

CreateListingAsync(CreateListingRequest, CancellationToken)

public virtual Task<Listing> CreateListingAsync(CreateListingRequest request, CancellationToken cancellationToken)

Creates a new listing.

Parameters
Name Description
request CreateListingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
    ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    ListingId = "",
    Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(request);

CreateListingAsync(DataExchangeName, Listing, CallSettings)

public virtual Task<Listing> CreateListingAsync(DataExchangeName parent, Listing listing, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
parent DataExchangeName

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);

CreateListingAsync(DataExchangeName, Listing, CancellationToken)

public virtual Task<Listing> CreateListingAsync(DataExchangeName parent, Listing listing, CancellationToken cancellationToken)

Creates a new listing.

Parameters
Name Description
parent DataExchangeName

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);

CreateListingAsync(string, Listing, CallSettings)

public virtual Task<Listing> CreateListingAsync(string parent, Listing listing, CallSettings callSettings = null)

Creates a new listing.

Parameters
Name Description
parent string

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);

CreateListingAsync(string, Listing, CancellationToken)

public virtual Task<Listing> CreateListingAsync(string parent, Listing listing, CancellationToken cancellationToken)

Creates a new listing.

Parameters
Name Description
parent string

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

listing Listing

Required. The listing to create.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);

DeleteDataExchange(DataExchangeName, CallSettings)

public virtual void DeleteDataExchange(DataExchangeName name, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
name DataExchangeName

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
analyticsHubServiceClient.DeleteDataExchange(name);

DeleteDataExchange(DeleteDataExchangeRequest, CallSettings)

public virtual void DeleteDataExchange(DeleteDataExchangeRequest request, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
request DeleteDataExchangeRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
analyticsHubServiceClient.DeleteDataExchange(request);

DeleteDataExchange(string, CallSettings)

public virtual void DeleteDataExchange(string name, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
name string

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
analyticsHubServiceClient.DeleteDataExchange(name);

DeleteDataExchangeAsync(DataExchangeName, CallSettings)

public virtual Task DeleteDataExchangeAsync(DataExchangeName name, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
name DataExchangeName

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);

DeleteDataExchangeAsync(DataExchangeName, CancellationToken)

public virtual Task DeleteDataExchangeAsync(DataExchangeName name, CancellationToken cancellationToken)

Deletes an existing data exchange.

Parameters
Name Description
name DataExchangeName

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);

DeleteDataExchangeAsync(DeleteDataExchangeRequest, CallSettings)

public virtual Task DeleteDataExchangeAsync(DeleteDataExchangeRequest request, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
request DeleteDataExchangeRequest

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(request);

DeleteDataExchangeAsync(DeleteDataExchangeRequest, CancellationToken)

public virtual Task DeleteDataExchangeAsync(DeleteDataExchangeRequest request, CancellationToken cancellationToken)

Deletes an existing data exchange.

Parameters
Name Description
request DeleteDataExchangeRequest

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(request);

DeleteDataExchangeAsync(string, CallSettings)

public virtual Task DeleteDataExchangeAsync(string name, CallSettings callSettings = null)

Deletes an existing data exchange.

Parameters
Name Description
name string

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);

DeleteDataExchangeAsync(string, CancellationToken)

public virtual Task DeleteDataExchangeAsync(string name, CancellationToken cancellationToken)

Deletes an existing data exchange.

Parameters
Name Description
name string

Required. The full name of the data exchange resource that you want to delete. For example, projects/myproject/locations/US/dataExchanges/123.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);

DeleteListing(DeleteListingRequest, CallSettings)

public virtual void DeleteListing(DeleteListingRequest request, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
request DeleteListingRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
analyticsHubServiceClient.DeleteListing(request);

DeleteListing(ListingName, CallSettings)

public virtual void DeleteListing(ListingName name, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
name ListingName

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
analyticsHubServiceClient.DeleteListing(name);

DeleteListing(string, CallSettings)

public virtual void DeleteListing(string name, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
name string

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
analyticsHubServiceClient.DeleteListing(name);

DeleteListingAsync(DeleteListingRequest, CallSettings)

public virtual Task DeleteListingAsync(DeleteListingRequest request, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
request DeleteListingRequest

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(request);

DeleteListingAsync(DeleteListingRequest, CancellationToken)

public virtual Task DeleteListingAsync(DeleteListingRequest request, CancellationToken cancellationToken)

Deletes a listing.

Parameters
Name Description
request DeleteListingRequest

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(request);

DeleteListingAsync(ListingName, CallSettings)

public virtual Task DeleteListingAsync(ListingName name, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
name ListingName

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);

DeleteListingAsync(ListingName, CancellationToken)

public virtual Task DeleteListingAsync(ListingName name, CancellationToken cancellationToken)

Deletes a listing.

Parameters
Name Description
name ListingName

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);

DeleteListingAsync(string, CallSettings)

public virtual Task DeleteListingAsync(string name, CallSettings callSettings = null)

Deletes a listing.

Parameters
Name Description
name string

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);

DeleteListingAsync(string, CancellationToken)

public virtual Task DeleteListingAsync(string name, CancellationToken cancellationToken)

Deletes a listing.

Parameters
Name Description
name string

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);

GetDataExchange(DataExchangeName, CallSettings)

public virtual DataExchange GetDataExchange(DataExchangeName name, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
name DataExchangeName

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(name);

GetDataExchange(GetDataExchangeRequest, CallSettings)

public virtual DataExchange GetDataExchange(GetDataExchangeRequest request, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
request GetDataExchangeRequest

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
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(request);

GetDataExchange(string, CallSettings)

public virtual DataExchange GetDataExchange(string name, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
name string

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(name);

GetDataExchangeAsync(DataExchangeName, CallSettings)

public virtual Task<DataExchange> GetDataExchangeAsync(DataExchangeName name, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
name DataExchangeName

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);

GetDataExchangeAsync(DataExchangeName, CancellationToken)

public virtual Task<DataExchange> GetDataExchangeAsync(DataExchangeName name, CancellationToken cancellationToken)

Gets the details of a data exchange.

Parameters
Name Description
name DataExchangeName

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);

GetDataExchangeAsync(GetDataExchangeRequest, CallSettings)

public virtual Task<DataExchange> GetDataExchangeAsync(GetDataExchangeRequest request, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
request GetDataExchangeRequest

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
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(request);

GetDataExchangeAsync(GetDataExchangeRequest, CancellationToken)

public virtual Task<DataExchange> GetDataExchangeAsync(GetDataExchangeRequest request, CancellationToken cancellationToken)

Gets the details of a data exchange.

Parameters
Name Description
request GetDataExchangeRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(request);

GetDataExchangeAsync(string, CallSettings)

public virtual Task<DataExchange> GetDataExchangeAsync(string name, CallSettings callSettings = null)

Gets the details of a data exchange.

Parameters
Name Description
name string

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);

GetDataExchangeAsync(string, CancellationToken)

public virtual Task<DataExchange> GetDataExchangeAsync(string name, CancellationToken cancellationToken)

Gets the details of a data exchange.

Parameters
Name Description
name string

Required. The resource name of the data exchange. e.g. projects/myproject/locations/US/dataExchanges/123.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);

GetIamPolicy(GetIamPolicyRequest, CallSettings)

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

Gets the IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = analyticsHubServiceClient.GetIamPolicy(request);

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

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

Gets the IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await analyticsHubServiceClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await analyticsHubServiceClient.GetIamPolicyAsync(request);

GetListing(GetListingRequest, CallSettings)

public virtual Listing GetListing(GetListingRequest request, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
request GetListingRequest

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
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = analyticsHubServiceClient.GetListing(request);

GetListing(ListingName, CallSettings)

public virtual Listing GetListing(ListingName name, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
name ListingName

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = analyticsHubServiceClient.GetListing(name);

GetListing(string, CallSettings)

public virtual Listing GetListing(string name, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
name string

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = analyticsHubServiceClient.GetListing(name);

GetListingAsync(GetListingRequest, CallSettings)

public virtual Task<Listing> GetListingAsync(GetListingRequest request, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
request GetListingRequest

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
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(request);

GetListingAsync(GetListingRequest, CancellationToken)

public virtual Task<Listing> GetListingAsync(GetListingRequest request, CancellationToken cancellationToken)

Gets the details of a listing.

Parameters
Name Description
request GetListingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(request);

GetListingAsync(ListingName, CallSettings)

public virtual Task<Listing> GetListingAsync(ListingName name, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
name ListingName

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);

GetListingAsync(ListingName, CancellationToken)

public virtual Task<Listing> GetListingAsync(ListingName name, CancellationToken cancellationToken)

Gets the details of a listing.

Parameters
Name Description
name ListingName

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);

GetListingAsync(string, CallSettings)

public virtual Task<Listing> GetListingAsync(string name, CallSettings callSettings = null)

Gets the details of a listing.

Parameters
Name Description
name string

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);

GetListingAsync(string, CancellationToken)

public virtual Task<Listing> GetListingAsync(string name, CancellationToken cancellationToken)

Gets the details of a listing.

Parameters
Name Description
name string

Required. The resource name of the listing. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);

ListDataExchanges(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the data exchanges. e.g. projects/myproject/locations/US.

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
PagedEnumerableListDataExchangesResponseDataExchange

A pageable sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchanges(parent);

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

ListDataExchanges(ListDataExchangesRequest, CallSettings)

public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(ListDataExchangesRequest request, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
request ListDataExchangesRequest

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
PagedEnumerableListDataExchangesResponseDataExchange

A pageable sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListDataExchangesRequest request = new ListDataExchangesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchanges(request);

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

ListDataExchanges(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the data exchanges. e.g. projects/myproject/locations/US.

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
PagedEnumerableListDataExchangesResponseDataExchange

A pageable sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchanges(parent);

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

ListDataExchangesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the data exchanges. e.g. projects/myproject/locations/US.

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
PagedAsyncEnumerableListDataExchangesResponseDataExchange

A pageable asynchronous sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchangesAsync(parent);

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

ListDataExchangesAsync(ListDataExchangesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(ListDataExchangesRequest request, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
request ListDataExchangesRequest

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
PagedAsyncEnumerableListDataExchangesResponseDataExchange

A pageable asynchronous sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListDataExchangesRequest request = new ListDataExchangesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchangesAsync(request);

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

ListDataExchangesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the data exchanges. e.g. projects/myproject/locations/US.

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
PagedAsyncEnumerableListDataExchangesResponseDataExchange

A pageable asynchronous sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchangesAsync(parent);

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

ListListings(DataExchangeName, string, int?, CallSettings)

public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(DataExchangeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
parent DataExchangeName

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

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
PagedEnumerableListListingsResponseListing

A pageable sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
PagedEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListings(parent);

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

ListListings(ListListingsRequest, CallSettings)

public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(ListListingsRequest request, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
request ListListingsRequest

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
PagedEnumerableListListingsResponseListing

A pageable sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListListingsRequest request = new ListListingsRequest
{
    ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
PagedEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListings(request);

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

ListListings(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

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
PagedEnumerableListListingsResponseListing

A pageable sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
PagedEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListings(parent);

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

ListListingsAsync(DataExchangeName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(DataExchangeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
parent DataExchangeName

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

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
PagedAsyncEnumerableListListingsResponseListing

A pageable asynchronous sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
PagedAsyncEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListingsAsync(parent);

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

ListListingsAsync(ListListingsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(ListListingsRequest request, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
request ListListingsRequest

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
PagedAsyncEnumerableListListingsResponseListing

A pageable asynchronous sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListListingsRequest request = new ListListingsRequest
{
    ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
PagedAsyncEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListingsAsync(request);

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

ListListingsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all listings in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the listing. e.g. projects/myproject/locations/US/dataExchanges/123.

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
PagedAsyncEnumerableListListingsResponseListing

A pageable asynchronous sequence of Listing resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
PagedAsyncEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListingsAsync(parent);

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

ListOrgDataExchanges(ListOrgDataExchangesRequest, CallSettings)

public virtual PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchanges(ListOrgDataExchangesRequest request, CallSettings callSettings = null)

Lists all data exchanges from projects in a given organization and location.

Parameters
Name Description
request ListOrgDataExchangesRequest

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
PagedEnumerableListOrgDataExchangesResponseDataExchange

A pageable sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListOrgDataExchangesRequest request = new ListOrgDataExchangesRequest { Organization = "", };
// Make the request
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchanges(request);

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

ListOrgDataExchanges(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchanges(string organization, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges from projects in a given organization and location.

Parameters
Name Description
organization string

Required. The organization resource path of the projects containing DataExchanges. e.g. organizations/myorg/locations/US.

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
PagedEnumerableListOrgDataExchangesResponseDataExchange

A pageable sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string organization = "";
// Make the request
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchanges(organization);

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

ListOrgDataExchangesAsync(ListOrgDataExchangesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchangesAsync(ListOrgDataExchangesRequest request, CallSettings callSettings = null)

Lists all data exchanges from projects in a given organization and location.

Parameters
Name Description
request ListOrgDataExchangesRequest

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
PagedAsyncEnumerableListOrgDataExchangesResponseDataExchange

A pageable asynchronous sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListOrgDataExchangesRequest request = new ListOrgDataExchangesRequest { Organization = "", };
// Make the request
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchangesAsync(request);

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

ListOrgDataExchangesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchangesAsync(string organization, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all data exchanges from projects in a given organization and location.

Parameters
Name Description
organization string

Required. The organization resource path of the projects containing DataExchanges. e.g. organizations/myorg/locations/US.

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
PagedAsyncEnumerableListOrgDataExchangesResponseDataExchange

A pageable asynchronous sequence of DataExchange resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string organization = "";
// Make the request
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchangesAsync(organization);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataExchange 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((ListOrgDataExchangesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (DataExchange 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<DataExchange> 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 (DataExchange 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 IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.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 = analyticsHubServiceClient.SetIamPolicy(request);

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

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

Sets the IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.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 analyticsHubServiceClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)

Sets the IAM policy.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.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 analyticsHubServiceClient.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.

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.

SubscribeListing(ListingName, CallSettings)

public virtual SubscribeListingResponse SubscribeListing(ListingName name, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name ListingName

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SubscribeListingResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(name);

SubscribeListing(SubscribeListingRequest, CallSettings)

public virtual SubscribeListingResponse SubscribeListing(SubscribeListingRequest request, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
request SubscribeListingRequest

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
SubscribeListingResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
    DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(request);

SubscribeListing(string, CallSettings)

public virtual SubscribeListingResponse SubscribeListing(string name, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name string

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SubscribeListingResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(name);

SubscribeListingAsync(ListingName, CallSettings)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(ListingName name, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name ListingName

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);

SubscribeListingAsync(ListingName, CancellationToken)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(ListingName name, CancellationToken cancellationToken)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name ListingName

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);

SubscribeListingAsync(SubscribeListingRequest, CallSettings)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(SubscribeListingRequest request, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
request SubscribeListingRequest

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
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
    DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(request);

SubscribeListingAsync(SubscribeListingRequest, CancellationToken)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(SubscribeListingRequest request, CancellationToken cancellationToken)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
request SubscribeListingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
    ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
    DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(request);

SubscribeListingAsync(string, CallSettings)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(string name, CallSettings callSettings = null)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name string

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);

SubscribeListingAsync(string, CancellationToken)

public virtual Task<SubscribeListingResponse> SubscribeListingAsync(string name, CancellationToken cancellationToken)

Subscribes to a listing.

Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.

Parameters
Name Description
name string

Required. Resource name of the listing that you want to subscribe to. e.g. projects/myproject/locations/US/dataExchanges/123/listings/456.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscribeListingResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

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

Returns the permissions that a caller has.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = analyticsHubServiceClient.TestIamPermissions(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

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

Returns the permissions that a caller has.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await analyticsHubServiceClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)

public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)

Returns the permissions that a caller has.

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.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await analyticsHubServiceClient.TestIamPermissionsAsync(request);

UpdateDataExchange(DataExchange, FieldMask, CallSettings)

public virtual DataExchange UpdateDataExchange(DataExchange dataExchange, FieldMask updateMask, CallSettings callSettings = null)

Updates an existing data exchange.

Parameters
Name Description
dataExchange DataExchange

Required. The data exchange to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the data exchange resource. The fields specified in the updateMask are relative to the resource and are not a full request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = analyticsHubServiceClient.UpdateDataExchange(dataExchange, updateMask);

UpdateDataExchange(UpdateDataExchangeRequest, CallSettings)

public virtual DataExchange UpdateDataExchange(UpdateDataExchangeRequest request, CallSettings callSettings = null)

Updates an existing data exchange.

Parameters
Name Description
request UpdateDataExchangeRequest

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
DataExchange

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
    UpdateMask = new FieldMask(),
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = analyticsHubServiceClient.UpdateDataExchange(request);

UpdateDataExchangeAsync(DataExchange, FieldMask, CallSettings)

public virtual Task<DataExchange> UpdateDataExchangeAsync(DataExchange dataExchange, FieldMask updateMask, CallSettings callSettings = null)

Updates an existing data exchange.

Parameters
Name Description
dataExchange DataExchange

Required. The data exchange to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the data exchange resource. The fields specified in the updateMask are relative to the resource and are not a full request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(dataExchange, updateMask);

UpdateDataExchangeAsync(DataExchange, FieldMask, CancellationToken)

public virtual Task<DataExchange> UpdateDataExchangeAsync(DataExchange dataExchange, FieldMask updateMask, CancellationToken cancellationToken)

Updates an existing data exchange.

Parameters
Name Description
dataExchange DataExchange

Required. The data exchange to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the data exchange resource. The fields specified in the updateMask are relative to the resource and are not a full request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(dataExchange, updateMask);

UpdateDataExchangeAsync(UpdateDataExchangeRequest, CallSettings)

public virtual Task<DataExchange> UpdateDataExchangeAsync(UpdateDataExchangeRequest request, CallSettings callSettings = null)

Updates an existing data exchange.

Parameters
Name Description
request UpdateDataExchangeRequest

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
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
    UpdateMask = new FieldMask(),
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(request);

UpdateDataExchangeAsync(UpdateDataExchangeRequest, CancellationToken)

public virtual Task<DataExchange> UpdateDataExchangeAsync(UpdateDataExchangeRequest request, CancellationToken cancellationToken)

Updates an existing data exchange.

Parameters
Name Description
request UpdateDataExchangeRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDataExchange

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
    UpdateMask = new FieldMask(),
    DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(request);

UpdateListing(Listing, FieldMask, CallSettings)

public virtual Listing UpdateListing(Listing listing, FieldMask updateMask, CallSettings callSettings = null)

Updates an existing listing.

Parameters
Name Description
listing Listing

Required. The listing to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the listing resource. The fields specified in the updateMask are relative to the resource and are not a full request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = analyticsHubServiceClient.UpdateListing(listing, updateMask);

UpdateListing(UpdateListingRequest, CallSettings)

public virtual Listing UpdateListing(UpdateListingRequest request, CallSettings callSettings = null)

Updates an existing listing.

Parameters
Name Description
request UpdateListingRequest

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
Listing

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
UpdateListingRequest request = new UpdateListingRequest
{
    UpdateMask = new FieldMask(),
    Listing = new Listing(),
};
// Make the request
Listing response = analyticsHubServiceClient.UpdateListing(request);

UpdateListingAsync(Listing, FieldMask, CallSettings)

public virtual Task<Listing> UpdateListingAsync(Listing listing, FieldMask updateMask, CallSettings callSettings = null)

Updates an existing listing.

Parameters
Name Description
listing Listing

Required. The listing to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the listing resource. The fields specified in the updateMask are relative to the resource and are not a full request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(listing, updateMask);

UpdateListingAsync(Listing, FieldMask, CancellationToken)

public virtual Task<Listing> UpdateListingAsync(Listing listing, FieldMask updateMask, CancellationToken cancellationToken)

Updates an existing listing.

Parameters
Name Description
listing Listing

Required. The listing to update.

updateMask FieldMask

Required. Field mask specifies the fields to update in the listing resource. The fields specified in the updateMask are relative to the resource and are not a full request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(listing, updateMask);

UpdateListingAsync(UpdateListingRequest, CallSettings)

public virtual Task<Listing> UpdateListingAsync(UpdateListingRequest request, CallSettings callSettings = null)

Updates an existing listing.

Parameters
Name Description
request UpdateListingRequest

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
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateListingRequest request = new UpdateListingRequest
{
    UpdateMask = new FieldMask(),
    Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(request);

UpdateListingAsync(UpdateListingRequest, CancellationToken)

public virtual Task<Listing> UpdateListingAsync(UpdateListingRequest request, CancellationToken cancellationToken)

Updates an existing listing.

Parameters
Name Description
request UpdateListingRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListing

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateListingRequest request = new UpdateListingRequest
{
    UpdateMask = new FieldMask(),
    Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(request);