Analytics Hub v1 API - Class AnalyticsHubService.AnalyticsHubServiceBase (1.3.0)

[BindServiceMethod(typeof(AnalyticsHubService), "BindService")]
public abstract class AnalyticsHubService.AnalyticsHubServiceBase

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

Base class for server-side implementations of AnalyticsHubService

Inheritance

object > AnalyticsHubService.AnalyticsHubServiceBase

Namespace

Google.Cloud.BigQuery.AnalyticsHub.V1

Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.dll

Methods

CreateDataExchange(CreateDataExchangeRequest, ServerCallContext)

public virtual Task<DataExchange> CreateDataExchange(CreateDataExchangeRequest request, ServerCallContext context)

Creates a new data exchange.

Parameters
NameDescription
requestCreateDataExchangeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataExchange

The response to send back to the client (wrapped by a task).

CreateListing(CreateListingRequest, ServerCallContext)

public virtual Task<Listing> CreateListing(CreateListingRequest request, ServerCallContext context)

Creates a new listing.

Parameters
NameDescription
requestCreateListingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListing

The response to send back to the client (wrapped by a task).

DeleteDataExchange(DeleteDataExchangeRequest, ServerCallContext)

public virtual Task<Empty> DeleteDataExchange(DeleteDataExchangeRequest request, ServerCallContext context)

Deletes an existing data exchange.

Parameters
NameDescription
requestDeleteDataExchangeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteListing(DeleteListingRequest, ServerCallContext)

public virtual Task<Empty> DeleteListing(DeleteListingRequest request, ServerCallContext context)

Deletes a listing.

Parameters
NameDescription
requestDeleteListingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteSubscription(DeleteSubscriptionRequest, ServerCallContext)

public virtual Task<Operation> DeleteSubscription(DeleteSubscriptionRequest request, ServerCallContext context)

Deletes a subscription.

Parameters
NameDescription
requestDeleteSubscriptionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetDataExchange(GetDataExchangeRequest, ServerCallContext)

public virtual Task<DataExchange> GetDataExchange(GetDataExchangeRequest request, ServerCallContext context)

Gets the details of a data exchange.

Parameters
NameDescription
requestGetDataExchangeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataExchange

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM policy.

Parameters
NameDescription
requestGetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

GetListing(GetListingRequest, ServerCallContext)

public virtual Task<Listing> GetListing(GetListingRequest request, ServerCallContext context)

Gets the details of a listing.

Parameters
NameDescription
requestGetListingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListing

The response to send back to the client (wrapped by a task).

GetSubscription(GetSubscriptionRequest, ServerCallContext)

public virtual Task<Subscription> GetSubscription(GetSubscriptionRequest request, ServerCallContext context)

Gets the details of a Subscription.

Parameters
NameDescription
requestGetSubscriptionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSubscription

The response to send back to the client (wrapped by a task).

ListDataExchanges(ListDataExchangesRequest, ServerCallContext)

public virtual Task<ListDataExchangesResponse> ListDataExchanges(ListDataExchangesRequest request, ServerCallContext context)

Lists all data exchanges in a given project and location.

Parameters
NameDescription
requestListDataExchangesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListDataExchangesResponse

The response to send back to the client (wrapped by a task).

ListListings(ListListingsRequest, ServerCallContext)

public virtual Task<ListListingsResponse> ListListings(ListListingsRequest request, ServerCallContext context)

Lists all listings in a given project and location.

Parameters
NameDescription
requestListListingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListListingsResponse

The response to send back to the client (wrapped by a task).

ListOrgDataExchanges(ListOrgDataExchangesRequest, ServerCallContext)

public virtual Task<ListOrgDataExchangesResponse> ListOrgDataExchanges(ListOrgDataExchangesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListOrgDataExchangesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListOrgDataExchangesResponse

The response to send back to the client (wrapped by a task).

ListSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest, ServerCallContext)

public virtual Task<ListSharedResourceSubscriptionsResponse> ListSharedResourceSubscriptions(ListSharedResourceSubscriptionsRequest request, ServerCallContext context)

Lists all subscriptions on a given Data Exchange or Listing.

Parameters
NameDescription
requestListSharedResourceSubscriptionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListSharedResourceSubscriptionsResponse

The response to send back to the client (wrapped by a task).

ListSubscriptions(ListSubscriptionsRequest, ServerCallContext)

public virtual Task<ListSubscriptionsResponse> ListSubscriptions(ListSubscriptionsRequest request, ServerCallContext context)

Lists all subscriptions in a given project and location.

Parameters
NameDescription
requestListSubscriptionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListSubscriptionsResponse

The response to send back to the client (wrapped by a task).

RefreshSubscription(RefreshSubscriptionRequest, ServerCallContext)

public virtual Task<Operation> RefreshSubscription(RefreshSubscriptionRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestRefreshSubscriptionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

RevokeSubscription(RevokeSubscriptionRequest, ServerCallContext)

public virtual Task<RevokeSubscriptionResponse> RevokeSubscription(RevokeSubscriptionRequest request, ServerCallContext context)

Revokes a given subscription.

Parameters
NameDescription
requestRevokeSubscriptionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskRevokeSubscriptionResponse

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM policy.

Parameters
NameDescription
requestSetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

SubscribeDataExchange(SubscribeDataExchangeRequest, ServerCallContext)

public virtual Task<Operation> SubscribeDataExchange(SubscribeDataExchangeRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSubscribeDataExchangeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

SubscribeListing(SubscribeListingRequest, ServerCallContext)

public virtual Task<SubscribeListingResponse> SubscribeListing(SubscribeListingRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSubscribeListingResponse

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns the permissions that a caller has.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTestIamPermissionsResponse

The response to send back to the client (wrapped by a task).

UpdateDataExchange(UpdateDataExchangeRequest, ServerCallContext)

public virtual Task<DataExchange> UpdateDataExchange(UpdateDataExchangeRequest request, ServerCallContext context)

Updates an existing data exchange.

Parameters
NameDescription
requestUpdateDataExchangeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataExchange

The response to send back to the client (wrapped by a task).

UpdateListing(UpdateListingRequest, ServerCallContext)

public virtual Task<Listing> UpdateListing(UpdateListingRequest request, ServerCallContext context)

Updates an existing listing.

Parameters
NameDescription
requestUpdateListingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListing

The response to send back to the client (wrapped by a task).