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.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
AnalyticsHubServiceClient(AnalyticsHubServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AnalyticsHubServiceClient const &
|
AnalyticsHubServiceClient(AnalyticsHubServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AnalyticsHubServiceClient &&
|
AnalyticsHubServiceClient(std::shared_ptr< AnalyticsHubServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< AnalyticsHubServiceConnection >
|
opts |
Options
|
Operators
operator=(AnalyticsHubServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AnalyticsHubServiceClient const &
|
Returns | |
---|---|
Type | Description |
AnalyticsHubServiceClient & |
operator=(AnalyticsHubServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AnalyticsHubServiceClient &&
|
Returns | |
---|---|
Type | Description |
AnalyticsHubServiceClient & |
Functions
ListDataExchanges(std::string const &, Options)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource path of the data exchanges. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListDataExchanges(google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest, Options)
Lists all data exchanges in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOrgDataExchanges(std::string const &, Options)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
organization |
std::string const &
Required. The organization resource path of the projects containing DataExchanges. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOrgDataExchanges(google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest, Options)
Lists all data exchanges from projects in a given organization and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetDataExchange(std::string const &, Options)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The resource name of the data exchange. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetDataExchange(google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &, Options)
Gets the details of a data exchange.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateDataExchange(std::string const &, google::cloud::bigquery::analyticshub::v1::DataExchange const &, Options)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource path of the data exchange. e.g. |
data_exchange |
google::cloud::bigquery::analyticshub::v1::DataExchange const &
Required. The data exchange to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateDataExchange(google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &, Options)
Creates a new data exchange.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateDataExchange(google::cloud::bigquery::analyticshub::v1::DataExchange const &, google::protobuf::FieldMask const &, Options)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
data_exchange |
google::cloud::bigquery::analyticshub::v1::DataExchange const &
Required. The data exchange to update. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask specifies the fields to update in the data exchange resource. The fields specified in the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateDataExchange(google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &, Options)
Updates an existing data exchange.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.DataExchange) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteDataExchange(std::string const &, Options)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The full name of the data exchange resource that you want to delete. For example, |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteDataExchange(google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &, Options)
Deletes an existing data exchange.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
ListListings(std::string const &, Options)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource path of the listing. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Listing > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListListings(google::cloud::bigquery::analyticshub::v1::ListListingsRequest, Options)
Lists all listings in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::ListListingsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Listing > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetListing(std::string const &, Options)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The resource name of the listing. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetListing(google::cloud::bigquery::analyticshub::v1::GetListingRequest const &, Options)
Gets the details of a listing.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::GetListingRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateListing(std::string const &, google::cloud::bigquery::analyticshub::v1::Listing const &, Options)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource path of the listing. e.g. |
listing |
google::cloud::bigquery::analyticshub::v1::Listing const &
Required. The listing to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateListing(google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &, Options)
Creates a new listing.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateListing(google::cloud::bigquery::analyticshub::v1::Listing const &, google::protobuf::FieldMask const &, Options)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
listing |
google::cloud::bigquery::analyticshub::v1::Listing const &
Required. The listing to update. |
update_mask |
google::protobuf::FieldMask const &
Required. Field mask specifies the fields to update in the listing resource. The fields specified in the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateListing(google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &, Options)
Updates an existing listing.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Listing) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteListing(std::string const &, Options)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the listing to delete. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteListing(google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &, Options)
Deletes a listing.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
SubscribeListing(std::string const &, Options)
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 |
std::string const &
Required. Resource name of the listing that you want to subscribe to. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SubscribeListing(google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const &, Options)
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 |
google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SubscribeDataExchange(std::string const &, Options)
Creates a Subscription to a Data Exchange.
This is a long-running operation as it will create one or more linked datasets.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the Data Exchange. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeResponse > > |
A |
SubscribeDataExchange(ExperimentalTag, NoAwaitTag, std::string const &, Options)
Creates a Subscription to a Data Exchange.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
SubscribeDataExchange(google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeRequest const &, Options)
Creates a Subscription to a Data Exchange.
This is a long-running operation as it will create one or more linked datasets.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeResponse > > |
A |
SubscribeDataExchange(ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeRequest const &, Options)
Creates a Subscription to a Data Exchange.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
SubscribeDataExchange(ExperimentalTag, google::longrunning::Operation const &, Options)
Creates a Subscription to a Data Exchange.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeDataExchangeResponse > > |
RefreshSubscription(std::string const &, Options)
Refreshes a Subscription to a Data Exchange.
A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the Subscription to refresh. e.g. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionResponse > > |
A |
RefreshSubscription(ExperimentalTag, NoAwaitTag, std::string const &, Options)
Refreshes a Subscription to a Data Exchange.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
RefreshSubscription(google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const &, Options)
Refreshes a Subscription to a Data Exchange.
A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionResponse > > |
A |
RefreshSubscription(ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const &, Options)
Refreshes a Subscription to a Data Exchange.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
RefreshSubscription(ExperimentalTag, google::longrunning::Operation const &, Options)
Refreshes a Subscription to a Data Exchange.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::RefreshSubscriptionResponse > > |
GetSubscription(std::string const &, Options)
Gets the details of a Subscription.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the subscription. e.g. projects/123/locations/US/subscriptions/456 |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSubscription(google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const &, Options)
Gets the details of a Subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::GetSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListSubscriptions(std::string const &, Options)
Lists all subscriptions in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent resource path of the subscription. e.g. projects/myproject/locations/US |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSubscriptions(google::cloud::bigquery::analyticshub::v1::ListSubscriptionsRequest, Options)
Lists all subscriptions in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::ListSubscriptionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSharedResourceSubscriptions(std::string const &, Options)
Lists all subscriptions on a given Data Exchange or Listing.
Parameters | |
---|---|
Name | Description |
resource |
std::string const &
Required. Resource name of the requested target. This resource may be either a Listing or a DataExchange. e.g. projects/123/locations/US/dataExchanges/456 OR e.g. projects/123/locations/US/dataExchanges/456/listings/789 |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSharedResourceSubscriptions(google::cloud::bigquery::analyticshub::v1::ListSharedResourceSubscriptionsRequest, Options)
Lists all subscriptions on a given Data Exchange or Listing.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::ListSharedResourceSubscriptionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::bigquery::analyticshub::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
RevokeSubscription(std::string const &, Options)
Revokes a given subscription.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the subscription to revoke. e.g. projects/123/locations/US/subscriptions/456 |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::RevokeSubscriptionResponse > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
RevokeSubscription(google::cloud::bigquery::analyticshub::v1::RevokeSubscriptionRequest const &, Options)
Revokes a given subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::RevokeSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::bigquery::analyticshub::v1::RevokeSubscriptionResponse > |
the result of the RPC. The response message type (google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteSubscription(std::string const &, Options)
Deletes a subscription.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of the subscription to delete. e.g. projects/123/locations/US/subscriptions/456 |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::OperationMetadata > > |
A |
DeleteSubscription(ExperimentalTag, NoAwaitTag, std::string const &, Options)
Deletes a subscription.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteSubscription(google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const &, Options)
Deletes a subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::OperationMetadata > > |
A |
DeleteSubscription(ExperimentalTag, NoAwaitTag, google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const &, Options)
Deletes a subscription.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::bigquery::analyticshub::v1::DeleteSubscriptionRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteSubscription(ExperimentalTag, google::longrunning::Operation const &, Options)
Deletes a subscription.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::bigquery::analyticshub::v1::OperationMetadata > > |
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
Gets the IAM policy.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::GetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
Sets the IAM policy.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::SetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
Returns the permissions that a caller has.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::TestIamPermissionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::TestIamPermissionsResponse > |
the result of the RPC. The response message type (google.iam.v1.TestIamPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |