Google Cloud BigQuery C++ Client 2.10.1
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
analytics_hub_connection.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/bigquery/analyticshub/v1/analyticshub.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_ANALYTICS_HUB_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_ANALYTICS_HUB_CONNECTION_H
21
22#include "google/cloud/bigquery/analyticshub/v1/analytics_hub_connection_idempotency_policy.h"
23#include "google/cloud/bigquery/analyticshub/v1/internal/analytics_hub_retry_traits.h"
24#include "google/cloud/backoff_policy.h"
25#include "google/cloud/options.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/stream_range.h"
28#include "google/cloud/version.h"
29#include <google/cloud/bigquery/analyticshub/v1/analyticshub.pb.h>
30#include <memory>
31
32namespace google {
33namespace cloud {
35GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
36
37using AnalyticsHubServiceRetryPolicy =
38 ::google::cloud::internal::TraitBasedRetryPolicy<
39 bigquery_analyticshub_v1_internal::AnalyticsHubServiceRetryTraits>;
40
41using AnalyticsHubServiceLimitedTimeRetryPolicy =
42 ::google::cloud::internal::LimitedTimeRetryPolicy<
43 bigquery_analyticshub_v1_internal::AnalyticsHubServiceRetryTraits>;
44
45using AnalyticsHubServiceLimitedErrorCountRetryPolicy =
46 ::google::cloud::internal::LimitedErrorCountRetryPolicy<
47 bigquery_analyticshub_v1_internal::AnalyticsHubServiceRetryTraits>;
48
49/**
50 * The `AnalyticsHubServiceConnection` object for `AnalyticsHubServiceClient`.
51 *
52 * This interface defines virtual methods for each of the user-facing overload
53 * sets in `AnalyticsHubServiceClient`. This allows users to inject custom
54 * behavior (e.g., with a Google Mock object) when writing tests that use
55 * objects of type `AnalyticsHubServiceClient`.
56 *
57 * To create a concrete instance, see `MakeAnalyticsHubServiceConnection()`.
58 *
59 * For mocking, see
60 * `bigquery_analyticshub_v1_mocks::MockAnalyticsHubServiceConnection`.
61 */
63 public:
64 virtual ~AnalyticsHubServiceConnection() = 0;
65
66 virtual Options options() { return Options{}; }
67
68 virtual StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange>
70 google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest
71 request);
72
73 virtual StreamRange<google::cloud::bigquery::analyticshub::v1::DataExchange>
75 google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest
76 request);
77
78 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>
80 google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const&
81 request);
82
83 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>
84 CreateDataExchange(google::cloud::bigquery::analyticshub::v1::
85 CreateDataExchangeRequest const& request);
86
87 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::DataExchange>
88 UpdateDataExchange(google::cloud::bigquery::analyticshub::v1::
89 UpdateDataExchangeRequest const& request);
90
92 google::cloud::bigquery::analyticshub::v1::
93 DeleteDataExchangeRequest const& request);
94
95 virtual StreamRange<google::cloud::bigquery::analyticshub::v1::Listing>
97 google::cloud::bigquery::analyticshub::v1::ListListingsRequest request);
98
99 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>
100 GetListing(google::cloud::bigquery::analyticshub::v1::GetListingRequest const&
101 request);
102
103 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>
105 google::cloud::bigquery::analyticshub::v1::CreateListingRequest const&
106 request);
107
108 virtual StatusOr<google::cloud::bigquery::analyticshub::v1::Listing>
110 google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const&
111 request);
112
113 virtual Status DeleteListing(
114 google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const&
115 request);
116
117 virtual StatusOr<
118 google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse>
120 google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const&
121 request);
122
123 virtual StatusOr<google::iam::v1::Policy> GetIamPolicy(
124 google::iam::v1::GetIamPolicyRequest const& request);
125
126 virtual StatusOr<google::iam::v1::Policy> SetIamPolicy(
127 google::iam::v1::SetIamPolicyRequest const& request);
128
129 virtual StatusOr<google::iam::v1::TestIamPermissionsResponse>
130 TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const& request);
131};
132
133/**
134 * A factory function to construct an object of type
135 * `AnalyticsHubServiceConnection`.
136 *
137 * The returned connection object should not be used directly; instead it
138 * should be passed as an argument to the constructor of
139 * AnalyticsHubServiceClient.
140 *
141 * The optional @p options argument may be used to configure aspects of the
142 * returned `AnalyticsHubServiceConnection`. Expected options are any of the
143 * types in the following option lists:
144 *
145 * - `google::cloud::CommonOptionList`
146 * - `google::cloud::GrpcOptionList`
147 * - `google::cloud::UnifiedCredentialsOptionList`
148 * -
149 * `google::cloud::bigquery_analyticshub_v1::AnalyticsHubServicePolicyOptionList`
150 *
151 * @note Unexpected options will be ignored. To log unexpected options instead,
152 * set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.
153 *
154 * @param options (optional) Configure the `AnalyticsHubServiceConnection`
155 * created by this function.
156 */
157std::shared_ptr<AnalyticsHubServiceConnection>
159
160GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
161} // namespace bigquery_analyticshub_v1
162} // namespace cloud
163} // namespace google
164
165#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_ANALYTICSHUB_V1_ANALYTICS_HUB_CONNECTION_H
The AnalyticsHubServiceConnection object for AnalyticsHubServiceClient.
Definition: analytics_hub_connection.h:62
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::SubscribeListingResponse > SubscribeListing(google::cloud::bigquery::analyticshub::v1::SubscribeListingRequest const &request)
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > CreateDataExchange(google::cloud::bigquery::analyticshub::v1::CreateDataExchangeRequest const &request)
virtual Options options()
Definition: analytics_hub_connection.h:66
virtual Status DeleteListing(google::cloud::bigquery::analyticshub::v1::DeleteListingRequest const &request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > UpdateDataExchange(google::cloud::bigquery::analyticshub::v1::UpdateDataExchangeRequest const &request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::DataExchange > GetDataExchange(google::cloud::bigquery::analyticshub::v1::GetDataExchangeRequest const &request)
virtual Status DeleteDataExchange(google::cloud::bigquery::analyticshub::v1::DeleteDataExchangeRequest const &request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > UpdateListing(google::cloud::bigquery::analyticshub::v1::UpdateListingRequest const &request)
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request)
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > CreateListing(google::cloud::bigquery::analyticshub::v1::CreateListingRequest const &request)
virtual StreamRange< google::cloud::bigquery::analyticshub::v1::Listing > ListListings(google::cloud::bigquery::analyticshub::v1::ListListingsRequest request)
virtual StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > ListOrgDataExchanges(google::cloud::bigquery::analyticshub::v1::ListOrgDataExchangesRequest request)
virtual StatusOr< google::cloud::bigquery::analyticshub::v1::Listing > GetListing(google::cloud::bigquery::analyticshub::v1::GetListingRequest const &request)
virtual StreamRange< google::cloud::bigquery::analyticshub::v1::DataExchange > ListDataExchanges(google::cloud::bigquery::analyticshub::v1::ListDataExchangesRequest request)
Definition: analytics_hub_client.h:32
std::shared_ptr< AnalyticsHubServiceConnection > MakeAnalyticsHubServiceConnection(Options options={})
A factory function to construct an object of type AnalyticsHubServiceConnection.
Definition: analytics_hub_client.h:30