public abstract class AnalyticsHubServiceClient
Reference documentation and code samples for the Analytics Hub v1 API class AnalyticsHubServiceClient.
AnalyticsHubService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.BigQuery.AnalyticsHub.V1Assembly
Google.Cloud.BigQuery.AnalyticsHub.V1.dll
Remarks
The AnalyticsHubService
API facilitates data sharing within and across
organizations. It allows data providers to publish listings that reference
shared datasets. With Analytics Hub, users can discover and search for
listings that they have access to. Subscribers can view and subscribe to
listings. When you subscribe to a listing, Analytics Hub creates a linked
dataset in your project.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the AnalyticsHubService service, which is a host of "analyticshub.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default AnalyticsHubService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default AnalyticsHubService scopes are:
GrpcClient
public virtual AnalyticsHubService.AnalyticsHubServiceClient GrpcClient { get; }
The underlying gRPC AnalyticsHubService client
Property Value | |
---|---|
Type | Description |
AnalyticsHubService.AnalyticsHubServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static AnalyticsHubServiceClient Create()
Synchronously creates a AnalyticsHubServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AnalyticsHubServiceClientBuilder.
Returns | |
---|---|
Type | Description |
AnalyticsHubServiceClient | The created AnalyticsHubServiceClient. |
CreateAsync(CancellationToken)
public static Task<AnalyticsHubServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a AnalyticsHubServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AnalyticsHubServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<AnalyticsHubServiceClient> | The task representing the created AnalyticsHubServiceClient. |
CreateDataExchange(LocationName, DataExchange, CallSettings)
public virtual DataExchange CreateDataExchange(LocationName parent, DataExchange dataExchange, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(parent, dataExchange);
CreateDataExchange(CreateDataExchangeRequest, CallSettings)
public virtual DataExchange CreateDataExchange(CreateDataExchangeRequest request, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
request | CreateDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataExchangeId = "",
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(request);
CreateDataExchange(String, DataExchange, CallSettings)
public virtual DataExchange CreateDataExchange(string parent, DataExchange dataExchange, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = analyticsHubServiceClient.CreateDataExchange(parent, dataExchange);
CreateDataExchangeAsync(LocationName, DataExchange, CallSettings)
public virtual Task<DataExchange> CreateDataExchangeAsync(LocationName parent, DataExchange dataExchange, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);
CreateDataExchangeAsync(LocationName, DataExchange, CancellationToken)
public virtual Task<DataExchange> CreateDataExchangeAsync(LocationName parent, DataExchange dataExchange, CancellationToken cancellationToken)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);
CreateDataExchangeAsync(CreateDataExchangeRequest, CallSettings)
public virtual Task<DataExchange> CreateDataExchangeAsync(CreateDataExchangeRequest request, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
request | CreateDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataExchangeId = "",
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(request);
CreateDataExchangeAsync(CreateDataExchangeRequest, CancellationToken)
public virtual Task<DataExchange> CreateDataExchangeAsync(CreateDataExchangeRequest request, CancellationToken cancellationToken)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
request | CreateDataExchangeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataExchangeRequest request = new CreateDataExchangeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataExchangeId = "",
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(request);
CreateDataExchangeAsync(String, DataExchange, CallSettings)
public virtual Task<DataExchange> CreateDataExchangeAsync(string parent, DataExchange dataExchange, CallSettings callSettings = null)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);
CreateDataExchangeAsync(String, DataExchange, CancellationToken)
public virtual Task<DataExchange> CreateDataExchangeAsync(string parent, DataExchange dataExchange, CancellationToken cancellationToken)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the data exchange.
e.g. |
dataExchange | DataExchange Required. The data exchange to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
DataExchange dataExchange = new DataExchange();
// Make the request
DataExchange response = await analyticsHubServiceClient.CreateDataExchangeAsync(parent, dataExchange);
CreateListing(CreateListingRequest, CallSettings)
public virtual Listing CreateListing(CreateListingRequest request, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
request | CreateListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
ListingId = "",
Listing = new Listing(),
};
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(request);
CreateListing(DataExchangeName, Listing, CallSettings)
public virtual Listing CreateListing(DataExchangeName parent, Listing listing, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(parent, listing);
CreateListing(String, Listing, CallSettings)
public virtual Listing CreateListing(string parent, Listing listing, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = analyticsHubServiceClient.CreateListing(parent, listing);
CreateListingAsync(CreateListingRequest, CallSettings)
public virtual Task<Listing> CreateListingAsync(CreateListingRequest request, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
request | CreateListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
ListingId = "",
Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(request);
CreateListingAsync(CreateListingRequest, CancellationToken)
public virtual Task<Listing> CreateListingAsync(CreateListingRequest request, CancellationToken cancellationToken)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
request | CreateListingRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
CreateListingRequest request = new CreateListingRequest
{
ParentAsDataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
ListingId = "",
Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(request);
CreateListingAsync(DataExchangeName, Listing, CallSettings)
public virtual Task<Listing> CreateListingAsync(DataExchangeName parent, Listing listing, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);
CreateListingAsync(DataExchangeName, Listing, CancellationToken)
public virtual Task<Listing> CreateListingAsync(DataExchangeName parent, Listing listing, CancellationToken cancellationToken)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);
CreateListingAsync(String, Listing, CallSettings)
public virtual Task<Listing> CreateListingAsync(string parent, Listing listing, CallSettings callSettings = null)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);
CreateListingAsync(String, Listing, CancellationToken)
public virtual Task<Listing> CreateListingAsync(string parent, Listing listing, CancellationToken cancellationToken)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the listing.
e.g. |
listing | Listing Required. The listing to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
Listing listing = new Listing();
// Make the request
Listing response = await analyticsHubServiceClient.CreateListingAsync(parent, listing);
DeleteDataExchange(DataExchangeName, CallSettings)
public virtual void DeleteDataExchange(DataExchangeName name, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The full name of the data exchange resource that you want to delete.
For example, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
analyticsHubServiceClient.DeleteDataExchange(name);
DeleteDataExchange(DeleteDataExchangeRequest, CallSettings)
public virtual void DeleteDataExchange(DeleteDataExchangeRequest request, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | DeleteDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
analyticsHubServiceClient.DeleteDataExchange(request);
DeleteDataExchange(String, CallSettings)
public virtual void DeleteDataExchange(string name, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The full name of the data exchange resource that you want to delete.
For example, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
analyticsHubServiceClient.DeleteDataExchange(name);
DeleteDataExchangeAsync(DataExchangeName, CallSettings)
public virtual Task DeleteDataExchangeAsync(DataExchangeName name, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The full name of the data exchange resource that you want to delete.
For example, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);
DeleteDataExchangeAsync(DataExchangeName, CancellationToken)
public virtual Task DeleteDataExchangeAsync(DataExchangeName name, CancellationToken cancellationToken)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The full name of the data exchange resource that you want to delete.
For example, |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);
DeleteDataExchangeAsync(DeleteDataExchangeRequest, CallSettings)
public virtual Task DeleteDataExchangeAsync(DeleteDataExchangeRequest request, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | DeleteDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(request);
DeleteDataExchangeAsync(DeleteDataExchangeRequest, CancellationToken)
public virtual Task DeleteDataExchangeAsync(DeleteDataExchangeRequest request, CancellationToken cancellationToken)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | DeleteDataExchangeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataExchangeRequest request = new DeleteDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(request);
DeleteDataExchangeAsync(String, CallSettings)
public virtual Task DeleteDataExchangeAsync(string name, CallSettings callSettings = null)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The full name of the data exchange resource that you want to delete.
For example, |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);
DeleteDataExchangeAsync(String, CancellationToken)
public virtual Task DeleteDataExchangeAsync(string name, CancellationToken cancellationToken)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The full name of the data exchange resource that you want to delete.
For example, |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
await analyticsHubServiceClient.DeleteDataExchangeAsync(name);
DeleteListing(DeleteListingRequest, CallSettings)
public virtual void DeleteListing(DeleteListingRequest request, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
request | DeleteListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
analyticsHubServiceClient.DeleteListing(request);
DeleteListing(ListingName, CallSettings)
public virtual void DeleteListing(ListingName name, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing to delete.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
analyticsHubServiceClient.DeleteListing(name);
DeleteListing(String, CallSettings)
public virtual void DeleteListing(string name, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing to delete.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
analyticsHubServiceClient.DeleteListing(name);
DeleteListingAsync(DeleteListingRequest, CallSettings)
public virtual Task DeleteListingAsync(DeleteListingRequest request, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
request | DeleteListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(request);
DeleteListingAsync(DeleteListingRequest, CancellationToken)
public virtual Task DeleteListingAsync(DeleteListingRequest request, CancellationToken cancellationToken)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
request | DeleteListingRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteListingRequest request = new DeleteListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(request);
DeleteListingAsync(ListingName, CallSettings)
public virtual Task DeleteListingAsync(ListingName name, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing to delete.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);
DeleteListingAsync(ListingName, CancellationToken)
public virtual Task DeleteListingAsync(ListingName name, CancellationToken cancellationToken)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing to delete.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);
DeleteListingAsync(String, CallSettings)
public virtual Task DeleteListingAsync(string name, CallSettings callSettings = null)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing to delete.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);
DeleteListingAsync(String, CancellationToken)
public virtual Task DeleteListingAsync(string name, CancellationToken cancellationToken)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing to delete.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
await analyticsHubServiceClient.DeleteListingAsync(name);
GetDataExchange(DataExchangeName, CallSettings)
public virtual DataExchange GetDataExchange(DataExchangeName name, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The resource name of the data exchange.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(name);
GetDataExchange(GetDataExchangeRequest, CallSettings)
public virtual DataExchange GetDataExchange(GetDataExchangeRequest request, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
request | GetDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(request);
GetDataExchange(String, CallSettings)
public virtual DataExchange GetDataExchange(string name, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the data exchange.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = analyticsHubServiceClient.GetDataExchange(name);
GetDataExchangeAsync(DataExchangeName, CallSettings)
public virtual Task<DataExchange> GetDataExchangeAsync(DataExchangeName name, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The resource name of the data exchange.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);
GetDataExchangeAsync(DataExchangeName, CancellationToken)
public virtual Task<DataExchange> GetDataExchangeAsync(DataExchangeName name, CancellationToken cancellationToken)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | DataExchangeName Required. The resource name of the data exchange.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName name = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);
GetDataExchangeAsync(GetDataExchangeRequest, CallSettings)
public virtual Task<DataExchange> GetDataExchangeAsync(GetDataExchangeRequest request, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
request | GetDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(request);
GetDataExchangeAsync(GetDataExchangeRequest, CancellationToken)
public virtual Task<DataExchange> GetDataExchangeAsync(GetDataExchangeRequest request, CancellationToken cancellationToken)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
request | GetDataExchangeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataExchangeRequest request = new GetDataExchangeRequest
{
DataExchangeName = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]"),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(request);
GetDataExchangeAsync(String, CallSettings)
public virtual Task<DataExchange> GetDataExchangeAsync(string name, CallSettings callSettings = null)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the data exchange.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);
GetDataExchangeAsync(String, CancellationToken)
public virtual Task<DataExchange> GetDataExchangeAsync(string name, CancellationToken cancellationToken)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the data exchange.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
DataExchange response = await analyticsHubServiceClient.GetDataExchangeAsync(name);
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = analyticsHubServiceClient.GetIamPolicy(request);
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await analyticsHubServiceClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)
Gets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await analyticsHubServiceClient.GetIamPolicyAsync(request);
GetListing(GetListingRequest, CallSettings)
public virtual Listing GetListing(GetListingRequest request, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
request | GetListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = analyticsHubServiceClient.GetListing(request);
GetListing(ListingName, CallSettings)
public virtual Listing GetListing(ListingName name, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. The resource name of the listing.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = analyticsHubServiceClient.GetListing(name);
GetListing(String, CallSettings)
public virtual Listing GetListing(string name, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the listing.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = analyticsHubServiceClient.GetListing(name);
GetListingAsync(GetListingRequest, CallSettings)
public virtual Task<Listing> GetListingAsync(GetListingRequest request, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
request | GetListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(request);
GetListingAsync(GetListingRequest, CancellationToken)
public virtual Task<Listing> GetListingAsync(GetListingRequest request, CancellationToken cancellationToken)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
request | GetListingRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
GetListingRequest request = new GetListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
};
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(request);
GetListingAsync(ListingName, CallSettings)
public virtual Task<Listing> GetListingAsync(ListingName name, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. The resource name of the listing.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);
GetListingAsync(ListingName, CancellationToken)
public virtual Task<Listing> GetListingAsync(ListingName name, CancellationToken cancellationToken)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. The resource name of the listing.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);
GetListingAsync(String, CallSettings)
public virtual Task<Listing> GetListingAsync(string name, CallSettings callSettings = null)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the listing.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);
GetListingAsync(String, CancellationToken)
public virtual Task<Listing> GetListingAsync(string name, CancellationToken cancellationToken)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the listing.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
Listing response = await analyticsHubServiceClient.GetListingAsync(name);
ListDataExchanges(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource path of the data exchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDataExchangesResponse, DataExchange> | A pageable sequence of DataExchange resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchanges(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DataExchange item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDataExchangesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataExchange item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataExchange> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataExchange item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataExchanges(ListDataExchangesRequest, CallSettings)
public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(ListDataExchangesRequest request, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListDataExchangesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDataExchangesResponse, DataExchange> | A pageable sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchanges(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the data exchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListDataExchangesResponse, DataExchange> | A pageable sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent resource path of the data exchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> | A pageable asynchronous sequence of DataExchange resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListDataExchangesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataExchange item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListDataExchangesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataExchange item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataExchange> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataExchange item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataExchangesAsync(ListDataExchangesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(ListDataExchangesRequest request, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListDataExchangesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> | A pageable asynchronous sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> ListDataExchangesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the data exchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange> | A pageable asynchronous sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(DataExchangeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListListingsResponse, Listing> | A pageable sequence of Listing resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
PagedEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Listing item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListListingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Listing item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Listing> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Listing item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListListings(ListListingsRequest, CallSettings)
public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(ListListingsRequest request, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListListingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListListingsResponse, Listing> | A pageable sequence of Listing resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListListingsResponse, Listing> ListListings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the listing.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListListingsResponse, Listing> | A pageable sequence of Listing resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(DataExchangeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | DataExchangeName Required. The parent resource path of the listing.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListListingsResponse, Listing> | A pageable asynchronous sequence of Listing resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchangeName parent = DataExchangeName.FromProjectLocationDataExchange("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]");
// Make the request
PagedAsyncEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Listing item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListListingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Listing item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Listing> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Listing item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListListingsAsync(ListListingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(ListListingsRequest request, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListListingsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListListingsResponse, Listing> | A pageable asynchronous sequence of Listing resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListListingsResponse, Listing> ListListingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent resource path of the listing.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListListingsResponse, Listing> | A pageable asynchronous sequence of Listing resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]";
// Make the request
PagedAsyncEnumerable<ListListingsResponse, Listing> response = analyticsHubServiceClient.ListListingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Listing item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListListingsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Listing item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Listing> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Listing item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListOrgDataExchanges(ListOrgDataExchangesRequest, CallSettings)
public virtual PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchanges(ListOrgDataExchangesRequest request, CallSettings callSettings = null)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
request | ListOrgDataExchangesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> | A pageable sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchanges(string organization, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
organization | String Required. The organization resource path of the projects containing DataExchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> | A pageable sequence of DataExchange resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string organization = "";
// Make the request
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchanges(organization);
// Iterate over all response items, lazily performing RPCs as required
foreach (DataExchange item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListOrgDataExchangesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataExchange item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataExchange> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataExchange item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListOrgDataExchangesAsync(ListOrgDataExchangesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchangesAsync(ListOrgDataExchangesRequest request, CallSettings callSettings = null)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
request | ListOrgDataExchangesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> | A pageable asynchronous sequence of DataExchange resources. |
// 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, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> ListOrgDataExchangesAsync(string organization, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
organization | String Required. The organization resource path of the projects containing DataExchanges.
e.g. |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> | A pageable asynchronous sequence of DataExchange resources. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string organization = "";
// Make the request
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange> response = analyticsHubServiceClient.ListOrgDataExchangesAsync(organization);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataExchange item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListOrgDataExchangesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataExchange item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<DataExchange> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (DataExchange item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = analyticsHubServiceClient.SetIamPolicy(request);
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)
Sets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await analyticsHubServiceClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)
Sets the IAM policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await analyticsHubServiceClient.SetIamPolicyAsync(request);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
SubscribeListing(ListingName, CallSettings)
public virtual SubscribeListingResponse SubscribeListing(ListingName name, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing that you want to subscribe to.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SubscribeListingResponse | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(name);
SubscribeListing(SubscribeListingRequest, CallSettings)
public virtual SubscribeListingResponse SubscribeListing(SubscribeListingRequest request, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
request | SubscribeListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SubscribeListingResponse | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(request);
SubscribeListing(String, CallSettings)
public virtual SubscribeListingResponse SubscribeListing(string name, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing that you want to subscribe to.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
SubscribeListingResponse | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = analyticsHubServiceClient.SubscribeListing(name);
SubscribeListingAsync(ListingName, CallSettings)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(ListingName name, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing that you want to subscribe to.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);
SubscribeListingAsync(ListingName, CancellationToken)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(ListingName name, CancellationToken cancellationToken)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | ListingName Required. Resource name of the listing that you want to subscribe to.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
ListingName name = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]");
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);
SubscribeListingAsync(SubscribeListingRequest, CallSettings)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(SubscribeListingRequest request, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
request | SubscribeListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(request);
SubscribeListingAsync(SubscribeListingRequest, CancellationToken)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(SubscribeListingRequest request, CancellationToken cancellationToken)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
request | SubscribeListingRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
SubscribeListingRequest request = new SubscribeListingRequest
{
ListingName = ListingName.FromProjectLocationDataExchangeListing("[PROJECT]", "[LOCATION]", "[DATA_EXCHANGE]", "[LISTING]"),
DestinationDataset = new DestinationDataset(),
};
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(request);
SubscribeListingAsync(String, CallSettings)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(string name, CallSettings callSettings = null)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing that you want to subscribe to.
e.g. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);
SubscribeListingAsync(String, CancellationToken)
public virtual Task<SubscribeListingResponse> SubscribeListingAsync(string name, CancellationToken cancellationToken)
Subscribes to a listing.
Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.
Parameters | |
---|---|
Name | Description |
name | String Required. Resource name of the listing that you want to subscribe to.
e.g. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<SubscribeListingResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataExchanges/[DATA_EXCHANGE]/listings/[LISTING]";
// Make the request
SubscribeListingResponse response = await analyticsHubServiceClient.SubscribeListingAsync(name);
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)
Returns the permissions that a caller has.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestIamPermissionsResponse | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = analyticsHubServiceClient.TestIamPermissions(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)
Returns the permissions that a caller has.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestIamPermissionsResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await analyticsHubServiceClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)
Returns the permissions that a caller has.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<TestIamPermissionsResponse> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await analyticsHubServiceClient.TestIamPermissionsAsync(request);
UpdateDataExchange(DataExchange, FieldMask, CallSettings)
public virtual DataExchange UpdateDataExchange(DataExchange dataExchange, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
dataExchange | DataExchange Required. The data exchange to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the data exchange
resource. The fields specified in the
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = analyticsHubServiceClient.UpdateDataExchange(dataExchange, updateMask);
UpdateDataExchange(UpdateDataExchangeRequest, CallSettings)
public virtual DataExchange UpdateDataExchange(UpdateDataExchangeRequest request, CallSettings callSettings = null)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | UpdateDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DataExchange | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
UpdateMask = new FieldMask(),
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = analyticsHubServiceClient.UpdateDataExchange(request);
UpdateDataExchangeAsync(DataExchange, FieldMask, CallSettings)
public virtual Task<DataExchange> UpdateDataExchangeAsync(DataExchange dataExchange, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
dataExchange | DataExchange Required. The data exchange to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the data exchange
resource. The fields specified in the
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(dataExchange, updateMask);
UpdateDataExchangeAsync(DataExchange, FieldMask, CancellationToken)
public virtual Task<DataExchange> UpdateDataExchangeAsync(DataExchange dataExchange, FieldMask updateMask, CancellationToken cancellationToken)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
dataExchange | DataExchange Required. The data exchange to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the data exchange
resource. The fields specified in the
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
DataExchange dataExchange = new DataExchange();
FieldMask updateMask = new FieldMask();
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(dataExchange, updateMask);
UpdateDataExchangeAsync(UpdateDataExchangeRequest, CallSettings)
public virtual Task<DataExchange> UpdateDataExchangeAsync(UpdateDataExchangeRequest request, CallSettings callSettings = null)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | UpdateDataExchangeRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
UpdateMask = new FieldMask(),
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(request);
UpdateDataExchangeAsync(UpdateDataExchangeRequest, CancellationToken)
public virtual Task<DataExchange> UpdateDataExchangeAsync(UpdateDataExchangeRequest request, CancellationToken cancellationToken)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
request | UpdateDataExchangeRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<DataExchange> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateDataExchangeRequest request = new UpdateDataExchangeRequest
{
UpdateMask = new FieldMask(),
DataExchange = new DataExchange(),
};
// Make the request
DataExchange response = await analyticsHubServiceClient.UpdateDataExchangeAsync(request);
UpdateListing(Listing, FieldMask, CallSettings)
public virtual Listing UpdateListing(Listing listing, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
listing | Listing Required. The listing to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the listing resource. The
fields specified in the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = analyticsHubServiceClient.UpdateListing(listing, updateMask);
UpdateListing(UpdateListingRequest, CallSettings)
public virtual Listing UpdateListing(UpdateListingRequest request, CallSettings callSettings = null)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
request | UpdateListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Listing | The RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.Create();
// Initialize request argument(s)
UpdateListingRequest request = new UpdateListingRequest
{
UpdateMask = new FieldMask(),
Listing = new Listing(),
};
// Make the request
Listing response = analyticsHubServiceClient.UpdateListing(request);
UpdateListingAsync(Listing, FieldMask, CallSettings)
public virtual Task<Listing> UpdateListingAsync(Listing listing, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
listing | Listing Required. The listing to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the listing resource. The
fields specified in the |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(listing, updateMask);
UpdateListingAsync(Listing, FieldMask, CancellationToken)
public virtual Task<Listing> UpdateListingAsync(Listing listing, FieldMask updateMask, CancellationToken cancellationToken)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
listing | Listing Required. The listing to update. |
updateMask | FieldMask Required. Field mask specifies the fields to update in the listing resource. The
fields specified in the |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
Listing listing = new Listing();
FieldMask updateMask = new FieldMask();
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(listing, updateMask);
UpdateListingAsync(UpdateListingRequest, CallSettings)
public virtual Task<Listing> UpdateListingAsync(UpdateListingRequest request, CallSettings callSettings = null)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
request | UpdateListingRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// Create client
AnalyticsHubServiceClient analyticsHubServiceClient = await AnalyticsHubServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateListingRequest request = new UpdateListingRequest
{
UpdateMask = new FieldMask(),
Listing = new Listing(),
};
// Make the request
Listing response = await analyticsHubServiceClient.UpdateListingAsync(request);
UpdateListingAsync(UpdateListingRequest, CancellationToken)
public virtual Task<Listing> UpdateListingAsync(UpdateListingRequest request, CancellationToken cancellationToken)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
request | UpdateListingRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Listing> | A Task containing the RPC response. |
// 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);