Analytics Hub v1 API - Class AnalyticsHubServiceClient (1.6.0)

public abstract class AnalyticsHubServiceClient

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

AnalyticsHubService client wrapper, for convenient use.

Inheritance

object > AnalyticsHubServiceClient

Namespace

Google.Cloud.BigQuery.AnalyticsHub.V1

Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.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

DeleteSubscriptionOperationsClient

public virtual OperationsClient DeleteSubscriptionOperationsClient { get; }

The long-running operations client for DeleteSubscription.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual AnalyticsHubService.AnalyticsHubServiceClient GrpcClient { get; }

The underlying gRPC AnalyticsHubService client

Property Value
Type Description
AnalyticsHubServiceAnalyticsHubServiceClient

RefreshSubscriptionOperationsClient

public virtual OperationsClient RefreshSubscriptionOperationsClient { get; }

The long-running operations client for RefreshSubscription.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

SubscribeDataExchangeOperationsClient

public virtual OperationsClient SubscribeDataExchangeOperationsClient { get; }

The long-running operations client for SubscribeDataExchange.

Property Value
Type Description
OperationsClient

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);

DeleteSubscription(DeleteSubscriptionRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSubscription(DeleteSubscriptionRequest request, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
request DeleteSubscriptionRequest

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
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DeleteSubscriptionRequest request = new DeleteSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = analyticsHubServiceClient.DeleteSubscription(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceDeleteSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscription(SubscriptionName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSubscription(SubscriptionName name, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<Empty, OperationMetadata> response = analyticsHubServiceClient.DeleteSubscription(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceDeleteSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscription(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSubscription(string name, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<Empty, OperationMetadata> response = analyticsHubServiceClient.DeleteSubscription(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceDeleteSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(DeleteSubscriptionRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(DeleteSubscriptionRequest request, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
request DeleteSubscriptionRequest

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
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSubscriptionRequest request = new DeleteSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(DeleteSubscriptionRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(DeleteSubscriptionRequest request, CancellationToken cancellationToken)

Deletes a subscription.

Parameters
Name Description
request DeleteSubscriptionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSubscriptionRequest request = new DeleteSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(SubscriptionName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(SubscriptionName name, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(SubscriptionName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(SubscriptionName name, CancellationToken cancellationToken)

Deletes a subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(string name, CallSettings callSettings = null)

Deletes a subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteSubscriptionAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSubscriptionAsync(string name, CancellationToken cancellationToken)

Deletes a subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await analyticsHubServiceClient.DeleteSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceDeleteSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

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);

GetSubscription(GetSubscriptionRequest, CallSettings)

public virtual Subscription GetSubscription(GetSubscriptionRequest request, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
request GetSubscriptionRequest

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
Subscription

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetSubscriptionRequest request = new GetSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Subscription response = analyticsHubServiceClient.GetSubscription(request);

GetSubscription(SubscriptionName, CallSettings)

public virtual Subscription GetSubscription(SubscriptionName name, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Subscription

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Subscription response = analyticsHubServiceClient.GetSubscription(name);

GetSubscription(string, CallSettings)

public virtual Subscription GetSubscription(string name, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Subscription

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Subscription response = analyticsHubServiceClient.GetSubscription(name);

GetSubscriptionAsync(GetSubscriptionRequest, CallSettings)

public virtual Task<Subscription> GetSubscriptionAsync(GetSubscriptionRequest request, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
request GetSubscriptionRequest

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
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetSubscriptionRequest request = new GetSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(request);

GetSubscriptionAsync(GetSubscriptionRequest, CancellationToken)

public virtual Task<Subscription> GetSubscriptionAsync(GetSubscriptionRequest request, CancellationToken cancellationToken)

Gets the details of a Subscription.

Parameters
Name Description
request GetSubscriptionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetSubscriptionRequest request = new GetSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(request);

GetSubscriptionAsync(SubscriptionName, CallSettings)

public virtual Task<Subscription> GetSubscriptionAsync(SubscriptionName name, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(name);

GetSubscriptionAsync(SubscriptionName, CancellationToken)

public virtual Task<Subscription> GetSubscriptionAsync(SubscriptionName name, CancellationToken cancellationToken)

Gets the details of a Subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(name);

GetSubscriptionAsync(string, CallSettings)

public virtual Task<Subscription> GetSubscriptionAsync(string name, CallSettings callSettings = null)

Gets the details of a Subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(name);

GetSubscriptionAsync(string, CancellationToken)

public virtual Task<Subscription> GetSubscriptionAsync(string name, CancellationToken cancellationToken)

Gets the details of a Subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSubscription

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Subscription response = await analyticsHubServiceClient.GetSubscriptionAsync(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;

ListSharedResourceSubscriptions(IResourceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptions(IResourceName resource, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
resource IResourceName

Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789

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
PagedEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptions(resource);

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

ListSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest, CallSettings)

public virtual PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
request ListSharedResourceSubscriptionsRequest

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
PagedEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListSharedResourceSubscriptionsRequest request = new ListSharedResourceSubscriptionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    IncludeDeletedSubscriptions = false,
};
// Make the request
PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptions(request);

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

ListSharedResourceSubscriptions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptions(string resource, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
resource string

Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789

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
PagedEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
PagedEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptions(resource);

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

ListSharedResourceSubscriptionsAsync(IResourceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptionsAsync(IResourceName resource, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
resource IResourceName

Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789

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
PagedAsyncEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
// Make the request
PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptionsAsync(resource);

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

ListSharedResourceSubscriptionsAsync(ListSharedResourceSubscriptionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptionsAsync(ListSharedResourceSubscriptionsRequest request, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
request ListSharedResourceSubscriptionsRequest

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
PagedAsyncEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListSharedResourceSubscriptionsRequest request = new ListSharedResourceSubscriptionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    IncludeDeletedSubscriptions = false,
};
// Make the request
PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptionsAsync(request);

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

ListSharedResourceSubscriptionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> ListSharedResourceSubscriptionsAsync(string resource, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
Name Description
resource string

Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789

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
PagedAsyncEnumerableListSharedResourceSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string resource = "a/wildcard/resource";
// Make the request
PagedAsyncEnumerable<ListSharedResourceSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSharedResourceSubscriptionsAsync(resource);

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

ListSubscriptions(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptions(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the subscription. 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
PagedEnumerableListSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

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

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

ListSubscriptions(ListSubscriptionsRequest, CallSettings)

public virtual PagedEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptions(ListSubscriptionsRequest request, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
request ListSubscriptionsRequest

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
PagedEnumerableListSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListSubscriptionsRequest request = new ListSubscriptionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<ListSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSubscriptions(request);

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

ListSubscriptions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the subscription. 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
PagedEnumerableListSubscriptionsResponseSubscription

A pageable sequence of Subscription resources.

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

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

ListSubscriptionsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
parent LocationName

Required. The parent resource path of the subscription. 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
PagedAsyncEnumerableListSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

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

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

ListSubscriptionsAsync(ListSubscriptionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptionsAsync(ListSubscriptionsRequest request, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
request ListSubscriptionsRequest

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
PagedAsyncEnumerableListSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListSubscriptionsRequest request = new ListSubscriptionsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> response = analyticsHubServiceClient.ListSubscriptionsAsync(request);

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

ListSubscriptionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSubscriptionsResponse, Subscription> ListSubscriptionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all subscriptions in a given project and location.

Parameters
Name Description
parent string

Required. The parent resource path of the subscription. 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
PagedAsyncEnumerableListSubscriptionsResponseSubscription

A pageable asynchronous sequence of Subscription resources.

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

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

PollOnceDeleteSubscription(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSubscription(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSubscription .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSubscriptionAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSubscriptionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSubscription.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceRefreshSubscription(string, CallSettings)

public virtual Operation<RefreshSubscriptionResponse, OperationMetadata> PollOnceRefreshSubscription(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RefreshSubscription .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRefreshSubscriptionResponseOperationMetadata

The result of polling the operation.

PollOnceRefreshSubscriptionAsync(string, CallSettings)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> PollOnceRefreshSubscriptionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RefreshSubscription.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceSubscribeDataExchange(string, CallSettings)

public virtual Operation<SubscribeDataExchangeResponse, OperationMetadata> PollOnceSubscribeDataExchange(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of SubscribeDataExchange .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubscribeDataExchangeResponseOperationMetadata

The result of polling the operation.

PollOnceSubscribeDataExchangeAsync(string, CallSettings)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> PollOnceSubscribeDataExchangeAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of SubscribeDataExchange.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

A task representing the result of polling the operation.

RefreshSubscription(RefreshSubscriptionRequest, CallSettings)

public virtual Operation<RefreshSubscriptionResponse, OperationMetadata> RefreshSubscription(RefreshSubscriptionRequest request, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
request RefreshSubscriptionRequest

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
OperationRefreshSubscriptionResponseOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
RefreshSubscriptionRequest request = new RefreshSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = analyticsHubServiceClient.RefreshSubscription(request);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceRefreshSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscription(SubscriptionName, CallSettings)

public virtual Operation<RefreshSubscriptionResponse, OperationMetadata> RefreshSubscription(SubscriptionName name, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRefreshSubscriptionResponseOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = analyticsHubServiceClient.RefreshSubscription(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceRefreshSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscription(string, CallSettings)

public virtual Operation<RefreshSubscriptionResponse, OperationMetadata> RefreshSubscription(string name, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationRefreshSubscriptionResponseOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = analyticsHubServiceClient.RefreshSubscription(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceRefreshSubscription(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(RefreshSubscriptionRequest, CallSettings)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(RefreshSubscriptionRequest request, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
request RefreshSubscriptionRequest

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
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
RefreshSubscriptionRequest request = new RefreshSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(request);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(RefreshSubscriptionRequest, CancellationToken)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(RefreshSubscriptionRequest request, CancellationToken cancellationToken)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
request RefreshSubscriptionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
RefreshSubscriptionRequest request = new RefreshSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(request);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(SubscriptionName, CallSettings)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(SubscriptionName name, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(SubscriptionName, CancellationToken)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(SubscriptionName name, CancellationToken cancellationToken)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(string, CallSettings)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(string name, CallSettings callSettings = null)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RefreshSubscriptionAsync(string, CancellationToken)

public virtual Task<Operation<RefreshSubscriptionResponse, OperationMetadata>> RefreshSubscriptionAsync(string name, CancellationToken cancellationToken)

Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Subscription to refresh. e.g. projects/subscriberproject/locations/US/subscriptions/123

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationRefreshSubscriptionResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
Operation<RefreshSubscriptionResponse, OperationMetadata> response = await analyticsHubServiceClient.RefreshSubscriptionAsync(name);

// Poll until the returned long-running operation is complete
Operation<RefreshSubscriptionResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RefreshSubscriptionResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<RefreshSubscriptionResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceRefreshSubscriptionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    RefreshSubscriptionResponse retrievedResult = retrievedResponse.Result;
}

RevokeSubscription(RevokeSubscriptionRequest, CallSettings)

public virtual RevokeSubscriptionResponse RevokeSubscription(RevokeSubscriptionRequest request, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
request RevokeSubscriptionRequest

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
RevokeSubscriptionResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
RevokeSubscriptionRequest request = new RevokeSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
RevokeSubscriptionResponse response = analyticsHubServiceClient.RevokeSubscription(request);

RevokeSubscription(SubscriptionName, CallSettings)

public virtual RevokeSubscriptionResponse RevokeSubscription(SubscriptionName name, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RevokeSubscriptionResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
RevokeSubscriptionResponse response = analyticsHubServiceClient.RevokeSubscription(name);

RevokeSubscription(string, CallSettings)

public virtual RevokeSubscriptionResponse RevokeSubscription(string name, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RevokeSubscriptionResponse

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
RevokeSubscriptionResponse response = analyticsHubServiceClient.RevokeSubscription(name);

RevokeSubscriptionAsync(RevokeSubscriptionRequest, CallSettings)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(RevokeSubscriptionRequest request, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
request RevokeSubscriptionRequest

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
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeSubscriptionRequest request = new RevokeSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(request);

RevokeSubscriptionAsync(RevokeSubscriptionRequest, CancellationToken)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(RevokeSubscriptionRequest request, CancellationToken cancellationToken)

Revokes a given subscription.

Parameters
Name Description
request RevokeSubscriptionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
RevokeSubscriptionRequest request = new RevokeSubscriptionRequest
{
    SubscriptionName = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]"),
};
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(request);

RevokeSubscriptionAsync(SubscriptionName, CallSettings)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(SubscriptionName name, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(name);

RevokeSubscriptionAsync(SubscriptionName, CancellationToken)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(SubscriptionName name, CancellationToken cancellationToken)

Revokes a given subscription.

Parameters
Name Description
name SubscriptionName

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscriptionName name = SubscriptionName.FromProjectLocationSubscription("[PROJECT]", "[LOCATION]", "[SUBSCRIPTION]");
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(name);

RevokeSubscriptionAsync(string, CallSettings)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(string name, CallSettings callSettings = null)

Revokes a given subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(name);

RevokeSubscriptionAsync(string, CancellationToken)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscriptionAsync(string name, CancellationToken cancellationToken)

Revokes a given subscription.

Parameters
Name Description
name string

Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRevokeSubscriptionResponse

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/subscriptions/[SUBSCRIPTION]";
// Make the request
RevokeSubscriptionResponse response = await analyticsHubServiceClient.RevokeSubscriptionAsync(name);

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.

SubscribeDataExchange(DataExchangeName, CallSettings)

public virtual Operation<SubscribeDataExchangeResponse, OperationMetadata> SubscribeDataExchange(DataExchangeName name, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name DataExchangeName

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = analyticsHubServiceClient.SubscribeDataExchange(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceSubscribeDataExchange(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchange(SubscribeDataExchangeRequest, CallSettings)

public virtual Operation<SubscribeDataExchangeResponse, OperationMetadata> SubscribeDataExchange(SubscribeDataExchangeRequest request, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
request SubscribeDataExchangeRequest

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
OperationSubscribeDataExchangeResponseOperationMetadata

The RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscribeDataExchangeRequest request = new SubscribeDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    DestinationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SubscriberContact = "",
    Subscription = "",
};
// Make the request
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = analyticsHubServiceClient.SubscribeDataExchange(request);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceSubscribeDataExchange(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchange(string, CallSettings)

public virtual Operation<SubscribeDataExchangeResponse, OperationMetadata> SubscribeDataExchange(string name, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = analyticsHubServiceClient.SubscribeDataExchange(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = analyticsHubServiceClient.PollOnceSubscribeDataExchange(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(DataExchangeName, CallSettings)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(DataExchangeName name, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name DataExchangeName

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(DataExchangeName, CancellationToken)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(DataExchangeName name, CancellationToken cancellationToken)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name DataExchangeName

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(SubscribeDataExchangeRequest, CallSettings)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(SubscribeDataExchangeRequest request, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
request SubscribeDataExchangeRequest

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
TaskOperationSubscribeDataExchangeResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeDataExchangeRequest request = new SubscribeDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    DestinationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SubscriberContact = "",
    Subscription = "",
};
// Make the request
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(request);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(SubscribeDataExchangeRequest, CancellationToken)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(SubscribeDataExchangeRequest request, CancellationToken cancellationToken)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
request SubscribeDataExchangeRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeDataExchangeRequest request = new SubscribeDataExchangeRequest
{
    DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
    DestinationAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SubscriberContact = "",
    Subscription = "",
};
// Make the request
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(request);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(string, CallSettings)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(string name, CallSettings callSettings = null)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

SubscribeDataExchangeAsync(string, CancellationToken)

public virtual Task<Operation<SubscribeDataExchangeResponse, OperationMetadata>> SubscribeDataExchangeAsync(string name, CancellationToken cancellationToken)

Creates a Subscription to a Data Exchange. This is a long-running operation as it will create one or more linked datasets.

Parameters
Name Description
name string

Required. Resource name of the Data Exchange. e.g. projects/publisherproject/locations/US/dataExchanges/123

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationSubscribeDataExchangeResponseOperationMetadata

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
Operation<SubscribeDataExchangeResponse, OperationMetadata> response = await analyticsHubServiceClient.SubscribeDataExchangeAsync(name);

// Poll until the returned long-running operation is complete
Operation<SubscribeDataExchangeResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
SubscribeDataExchangeResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<SubscribeDataExchangeResponse, OperationMetadata> retrievedResponse = await analyticsHubServiceClient.PollOnceSubscribeDataExchangeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    SubscribeDataExchangeResponse retrievedResult = retrievedResponse.Result;
}

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);