Analytics Hub v1 API - Class AnalyticsHubServiceClient (1.1.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
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default AnalyticsHubService scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

DeleteSubscriptionOperationsClient

public virtual OperationsClient DeleteSubscriptionOperationsClient { get; }

The long-running operations client for DeleteSubscription.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual AnalyticsHubService.AnalyticsHubServiceClient GrpcClient { get; }

The underlying gRPC AnalyticsHubService client

Property Value
TypeDescription
AnalyticsHubServiceAnalyticsHubServiceClient

RefreshSubscriptionOperationsClient

public virtual OperationsClient RefreshSubscriptionOperationsClient { get; }

The long-running operations client for RefreshSubscription.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

SubscribeDataExchangeOperationsClient

public virtual OperationsClient SubscribeDataExchangeOperationsClient { get; }

The long-running operations client for SubscribeDataExchange.

Property Value
TypeDescription
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
TypeDescription
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
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

dataExchangeDataExchange

Required. The data exchange to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

dataExchangeDataExchange

Required. The data exchange to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

dataExchangeDataExchange

Required. The data exchange to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

dataExchangeDataExchange

Required. The data exchange to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateDataExchangeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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

dataExchangeDataExchange

Required. The data exchange to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

dataExchangeDataExchange

Required. The data exchange to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestCreateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentDataExchangeName

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

listingListing

Required. The listing to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

listingListing

Required. The listing to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCreateListingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentDataExchangeName

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

listingListing

Required. The listing to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentDataExchangeName

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

listingListing

Required. The listing to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentstring

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

listingListing

Required. The listing to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

listingListing

Required. The listing to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

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
NameDescription
requestDeleteDataExchangeRequest

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

callSettingsCallSettings

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
NameDescription
namestring

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

callSettingsCallSettings

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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteDataExchangeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteListingRequest

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

callSettingsCallSettings

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
NameDescription
nameListingName

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

callSettingsCallSettings

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
NameDescription
namestring

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

callSettingsCallSettings

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
NameDescription
requestDeleteListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteListingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameListingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameListingName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestDeleteSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSubscriptionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetDataExchangeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetIamPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameListingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetListingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameListingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameListingName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestGetSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSubscriptionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentDataExchangeName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListListingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentDataExchangeName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListListingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListOrgDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
organizationstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListOrgDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
organizationstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
resourceIResourceName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSharedResourceSubscriptionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
resourcestring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
resourceIResourceName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSharedResourceSubscriptionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
resourcestring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSubscriptionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentLocationName

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSubscriptionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
parentstring

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

pageTokenstring

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

pageSizeint

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
operationNamestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRefreshSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRefreshSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRefreshSubscriptionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestRevokeSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRevokeSubscriptionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRevokeSubscriptionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameSubscriptionName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSetIamPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSubscribeDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameDataExchangeName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestSubscribeDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSubscribeDataExchangeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
nameListingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSubscribeListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameListingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameListingName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestSubscribeListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSubscribeListingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
namestring

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
namestring

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestTestIamPermissionsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
dataExchangeDataExchange

Required. The data exchange to update.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
dataExchangeDataExchange

Required. The data exchange to update.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
dataExchangeDataExchange

Required. The data exchange to update.

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestUpdateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateDataExchangeRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
listingListing

Required. The listing to update.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
listingListing

Required. The listing to update.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
listingListing

Required. The listing to update.

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
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
NameDescription
requestUpdateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestUpdateListingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

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