Analytics Hub v1 API - Class AnalyticsHubServiceClientImpl (1.0.0)

public sealed class AnalyticsHubServiceClientImpl : AnalyticsHubServiceClient

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

AnalyticsHubService client wrapper implementation, for convenient use.

Inheritance

Object > AnalyticsHubServiceClient > AnalyticsHubServiceClientImpl

Namespace

Google.Cloud.BigQuery.AnalyticsHub.V1

Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.dll

Remarks

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

Constructors

AnalyticsHubServiceClientImpl(AnalyticsHubService.AnalyticsHubServiceClient, AnalyticsHubServiceSettings, ILogger)

public AnalyticsHubServiceClientImpl(AnalyticsHubService.AnalyticsHubServiceClient grpcClient, AnalyticsHubServiceSettings settings, ILogger logger)

Constructs a client wrapper for the AnalyticsHubService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientAnalyticsHubService.AnalyticsHubServiceClient

The underlying gRPC client.

settingsAnalyticsHubServiceSettings

The base AnalyticsHubServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override AnalyticsHubService.AnalyticsHubServiceClient GrpcClient { get; }

The underlying gRPC AnalyticsHubService client

Property Value
TypeDescription
AnalyticsHubService.AnalyticsHubServiceClient
Overrides

Methods

CreateDataExchange(CreateDataExchangeRequest, CallSettings)

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

Creates a new data exchange.

Parameters
NameDescription
requestCreateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DataExchange

The RPC response.

Overrides

CreateDataExchangeAsync(CreateDataExchangeRequest, CallSettings)

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

Creates a new data exchange.

Parameters
NameDescription
requestCreateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DataExchange>

A Task containing the RPC response.

Overrides

CreateListing(CreateListingRequest, CallSettings)

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

Creates a new listing.

Parameters
NameDescription
requestCreateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Listing

The RPC response.

Overrides

CreateListingAsync(CreateListingRequest, CallSettings)

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

Creates a new listing.

Parameters
NameDescription
requestCreateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Listing>

A Task containing the RPC response.

Overrides

DeleteDataExchange(DeleteDataExchangeRequest, CallSettings)

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

Deletes an existing data exchange.

Parameters
NameDescription
requestDeleteDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteDataExchangeAsync(DeleteDataExchangeRequest, CallSettings)

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

Deletes an existing data exchange.

Parameters
NameDescription
requestDeleteDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

DeleteListing(DeleteListingRequest, CallSettings)

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

Deletes a listing.

Parameters
NameDescription
requestDeleteListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteListingAsync(DeleteListingRequest, CallSettings)

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

Deletes a listing.

Parameters
NameDescription
requestDeleteListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetDataExchange(GetDataExchangeRequest, CallSettings)

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

Gets the details of a data exchange.

Parameters
NameDescription
requestGetDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DataExchange

The RPC response.

Overrides

GetDataExchangeAsync(GetDataExchangeRequest, CallSettings)

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

Gets the details of a data exchange.

Parameters
NameDescription
requestGetDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DataExchange>

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyRequest, CallSettings)

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

Gets the IAM policy.

Parameters
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

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

Gets the IAM policy.

Parameters
NameDescription
requestGetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

A Task containing the RPC response.

Overrides

GetListing(GetListingRequest, CallSettings)

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

Gets the details of a listing.

Parameters
NameDescription
requestGetListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Listing

The RPC response.

Overrides

GetListingAsync(GetListingRequest, CallSettings)

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

Gets the details of a listing.

Parameters
NameDescription
requestGetListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Listing>

A Task containing the RPC response.

Overrides

ListDataExchanges(ListDataExchangesRequest, CallSettings)

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

Lists all data exchanges in a given project and location.

Parameters
NameDescription
requestListDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListDataExchangesResponse, DataExchange>

A pageable sequence of DataExchange resources.

Overrides

ListDataExchangesAsync(ListDataExchangesRequest, CallSettings)

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

Lists all data exchanges in a given project and location.

Parameters
NameDescription
requestListDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListDataExchangesResponse, DataExchange>

A pageable asynchronous sequence of DataExchange resources.

Overrides

ListListings(ListListingsRequest, CallSettings)

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

Lists all listings in a given project and location.

Parameters
NameDescription
requestListListingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListListingsResponse, Listing>

A pageable sequence of Listing resources.

Overrides

ListListingsAsync(ListListingsRequest, CallSettings)

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

Lists all listings in a given project and location.

Parameters
NameDescription
requestListListingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListListingsResponse, Listing>

A pageable asynchronous sequence of Listing resources.

Overrides

ListOrgDataExchanges(ListOrgDataExchangesRequest, CallSettings)

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

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

Parameters
NameDescription
requestListOrgDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListOrgDataExchangesResponse, DataExchange>

A pageable sequence of DataExchange resources.

Overrides

ListOrgDataExchangesAsync(ListOrgDataExchangesRequest, CallSettings)

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

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

Parameters
NameDescription
requestListOrgDataExchangesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListOrgDataExchangesResponse, DataExchange>

A pageable asynchronous sequence of DataExchange resources.

Overrides

SetIamPolicy(SetIamPolicyRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy.

Parameters
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

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

Sets the IAM policy.

Parameters
NameDescription
requestSetIamPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Policy>

A Task containing the RPC response.

Overrides

SubscribeListing(SubscribeListingRequest, CallSettings)

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

Subscribes to a listing.

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

Parameters
NameDescription
requestSubscribeListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SubscribeListingResponse

The RPC response.

Overrides

SubscribeListingAsync(SubscribeListingRequest, CallSettings)

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

Subscribes to a listing.

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

Parameters
NameDescription
requestSubscribeListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SubscribeListingResponse>

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

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

Returns the permissions that a caller has.

Parameters
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestIamPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

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

Returns the permissions that a caller has.

Parameters
NameDescription
requestTestIamPermissionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<TestIamPermissionsResponse>

A Task containing the RPC response.

Overrides

UpdateDataExchange(UpdateDataExchangeRequest, CallSettings)

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

Updates an existing data exchange.

Parameters
NameDescription
requestUpdateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
DataExchange

The RPC response.

Overrides

UpdateDataExchangeAsync(UpdateDataExchangeRequest, CallSettings)

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

Updates an existing data exchange.

Parameters
NameDescription
requestUpdateDataExchangeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DataExchange>

A Task containing the RPC response.

Overrides

UpdateListing(UpdateListingRequest, CallSettings)

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

Updates an existing listing.

Parameters
NameDescription
requestUpdateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Listing

The RPC response.

Overrides

UpdateListingAsync(UpdateListingRequest, CallSettings)

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

Updates an existing listing.

Parameters
NameDescription
requestUpdateListingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Listing>

A Task containing the RPC response.

Overrides