google_cloud_bigquery_analyticshub_v1/
stub.rs

1// Copyright 2025 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// Code generated by sidekick. DO NOT EDIT.
16
17//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::AnalyticsHubService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::AnalyticsHubService`.  In other use-cases, application developers only
33/// use `client::AnalyticsHubService` and need not be concerned with this trait or
34/// its implementations.
35///
36/// Services gain new RPCs routinely. Consequently, this trait gains new methods
37/// too. To avoid breaking applications the trait provides a default
38/// implementation of each method. Most of these implementations just return an
39/// error.
40pub trait AnalyticsHubService: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::AnalyticsHubService::list_data_exchanges].
42    fn list_data_exchanges(
43        &self,
44        _req: crate::model::ListDataExchangesRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<crate::model::ListDataExchangesResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::AnalyticsHubService::list_org_data_exchanges].
53    fn list_org_data_exchanges(
54        &self,
55        _req: crate::model::ListOrgDataExchangesRequest,
56        _options: gax::options::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<gax::response::Response<crate::model::ListOrgDataExchangesResponse>>,
59    > + Send {
60        gaxi::unimplemented::unimplemented_stub()
61    }
62
63    /// Implements [super::client::AnalyticsHubService::get_data_exchange].
64    fn get_data_exchange(
65        &self,
66        _req: crate::model::GetDataExchangeRequest,
67        _options: gax::options::RequestOptions,
68    ) -> impl std::future::Future<
69        Output = crate::Result<gax::response::Response<crate::model::DataExchange>>,
70    > + Send {
71        gaxi::unimplemented::unimplemented_stub()
72    }
73
74    /// Implements [super::client::AnalyticsHubService::create_data_exchange].
75    fn create_data_exchange(
76        &self,
77        _req: crate::model::CreateDataExchangeRequest,
78        _options: gax::options::RequestOptions,
79    ) -> impl std::future::Future<
80        Output = crate::Result<gax::response::Response<crate::model::DataExchange>>,
81    > + Send {
82        gaxi::unimplemented::unimplemented_stub()
83    }
84
85    /// Implements [super::client::AnalyticsHubService::update_data_exchange].
86    fn update_data_exchange(
87        &self,
88        _req: crate::model::UpdateDataExchangeRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<crate::model::DataExchange>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::AnalyticsHubService::delete_data_exchange].
97    fn delete_data_exchange(
98        &self,
99        _req: crate::model::DeleteDataExchangeRequest,
100        _options: gax::options::RequestOptions,
101    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
102        gaxi::unimplemented::unimplemented_stub()
103    }
104
105    /// Implements [super::client::AnalyticsHubService::list_listings].
106    fn list_listings(
107        &self,
108        _req: crate::model::ListListingsRequest,
109        _options: gax::options::RequestOptions,
110    ) -> impl std::future::Future<
111        Output = crate::Result<gax::response::Response<crate::model::ListListingsResponse>>,
112    > + Send {
113        gaxi::unimplemented::unimplemented_stub()
114    }
115
116    /// Implements [super::client::AnalyticsHubService::get_listing].
117    fn get_listing(
118        &self,
119        _req: crate::model::GetListingRequest,
120        _options: gax::options::RequestOptions,
121    ) -> impl std::future::Future<
122        Output = crate::Result<gax::response::Response<crate::model::Listing>>,
123    > + Send {
124        gaxi::unimplemented::unimplemented_stub()
125    }
126
127    /// Implements [super::client::AnalyticsHubService::create_listing].
128    fn create_listing(
129        &self,
130        _req: crate::model::CreateListingRequest,
131        _options: gax::options::RequestOptions,
132    ) -> impl std::future::Future<
133        Output = crate::Result<gax::response::Response<crate::model::Listing>>,
134    > + Send {
135        gaxi::unimplemented::unimplemented_stub()
136    }
137
138    /// Implements [super::client::AnalyticsHubService::update_listing].
139    fn update_listing(
140        &self,
141        _req: crate::model::UpdateListingRequest,
142        _options: gax::options::RequestOptions,
143    ) -> impl std::future::Future<
144        Output = crate::Result<gax::response::Response<crate::model::Listing>>,
145    > + Send {
146        gaxi::unimplemented::unimplemented_stub()
147    }
148
149    /// Implements [super::client::AnalyticsHubService::delete_listing].
150    fn delete_listing(
151        &self,
152        _req: crate::model::DeleteListingRequest,
153        _options: gax::options::RequestOptions,
154    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
155        gaxi::unimplemented::unimplemented_stub()
156    }
157
158    /// Implements [super::client::AnalyticsHubService::subscribe_listing].
159    fn subscribe_listing(
160        &self,
161        _req: crate::model::SubscribeListingRequest,
162        _options: gax::options::RequestOptions,
163    ) -> impl std::future::Future<
164        Output = crate::Result<gax::response::Response<crate::model::SubscribeListingResponse>>,
165    > + Send {
166        gaxi::unimplemented::unimplemented_stub()
167    }
168
169    /// Implements [super::client::AnalyticsHubService::subscribe_data_exchange].
170    fn subscribe_data_exchange(
171        &self,
172        _req: crate::model::SubscribeDataExchangeRequest,
173        _options: gax::options::RequestOptions,
174    ) -> impl std::future::Future<
175        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
176    > + Send {
177        gaxi::unimplemented::unimplemented_stub()
178    }
179
180    /// Implements [super::client::AnalyticsHubService::refresh_subscription].
181    fn refresh_subscription(
182        &self,
183        _req: crate::model::RefreshSubscriptionRequest,
184        _options: gax::options::RequestOptions,
185    ) -> impl std::future::Future<
186        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
187    > + Send {
188        gaxi::unimplemented::unimplemented_stub()
189    }
190
191    /// Implements [super::client::AnalyticsHubService::get_subscription].
192    fn get_subscription(
193        &self,
194        _req: crate::model::GetSubscriptionRequest,
195        _options: gax::options::RequestOptions,
196    ) -> impl std::future::Future<
197        Output = crate::Result<gax::response::Response<crate::model::Subscription>>,
198    > + Send {
199        gaxi::unimplemented::unimplemented_stub()
200    }
201
202    /// Implements [super::client::AnalyticsHubService::list_subscriptions].
203    fn list_subscriptions(
204        &self,
205        _req: crate::model::ListSubscriptionsRequest,
206        _options: gax::options::RequestOptions,
207    ) -> impl std::future::Future<
208        Output = crate::Result<gax::response::Response<crate::model::ListSubscriptionsResponse>>,
209    > + Send {
210        gaxi::unimplemented::unimplemented_stub()
211    }
212
213    /// Implements [super::client::AnalyticsHubService::list_shared_resource_subscriptions].
214    fn list_shared_resource_subscriptions(
215        &self,
216        _req: crate::model::ListSharedResourceSubscriptionsRequest,
217        _options: gax::options::RequestOptions,
218    ) -> impl std::future::Future<
219        Output = crate::Result<
220            gax::response::Response<crate::model::ListSharedResourceSubscriptionsResponse>,
221        >,
222    > + Send {
223        gaxi::unimplemented::unimplemented_stub()
224    }
225
226    /// Implements [super::client::AnalyticsHubService::revoke_subscription].
227    fn revoke_subscription(
228        &self,
229        _req: crate::model::RevokeSubscriptionRequest,
230        _options: gax::options::RequestOptions,
231    ) -> impl std::future::Future<
232        Output = crate::Result<gax::response::Response<crate::model::RevokeSubscriptionResponse>>,
233    > + Send {
234        gaxi::unimplemented::unimplemented_stub()
235    }
236
237    /// Implements [super::client::AnalyticsHubService::delete_subscription].
238    fn delete_subscription(
239        &self,
240        _req: crate::model::DeleteSubscriptionRequest,
241        _options: gax::options::RequestOptions,
242    ) -> impl std::future::Future<
243        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
244    > + Send {
245        gaxi::unimplemented::unimplemented_stub()
246    }
247
248    /// Implements [super::client::AnalyticsHubService::get_iam_policy].
249    fn get_iam_policy(
250        &self,
251        _req: iam_v1::model::GetIamPolicyRequest,
252        _options: gax::options::RequestOptions,
253    ) -> impl std::future::Future<
254        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
255    > + Send {
256        gaxi::unimplemented::unimplemented_stub()
257    }
258
259    /// Implements [super::client::AnalyticsHubService::set_iam_policy].
260    fn set_iam_policy(
261        &self,
262        _req: iam_v1::model::SetIamPolicyRequest,
263        _options: gax::options::RequestOptions,
264    ) -> impl std::future::Future<
265        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
266    > + Send {
267        gaxi::unimplemented::unimplemented_stub()
268    }
269
270    /// Implements [super::client::AnalyticsHubService::test_iam_permissions].
271    fn test_iam_permissions(
272        &self,
273        _req: iam_v1::model::TestIamPermissionsRequest,
274        _options: gax::options::RequestOptions,
275    ) -> impl std::future::Future<
276        Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
277    > + Send {
278        gaxi::unimplemented::unimplemented_stub()
279    }
280
281    /// Implements [super::client::AnalyticsHubService::create_query_template].
282    fn create_query_template(
283        &self,
284        _req: crate::model::CreateQueryTemplateRequest,
285        _options: gax::options::RequestOptions,
286    ) -> impl std::future::Future<
287        Output = crate::Result<gax::response::Response<crate::model::QueryTemplate>>,
288    > + Send {
289        gaxi::unimplemented::unimplemented_stub()
290    }
291
292    /// Implements [super::client::AnalyticsHubService::get_query_template].
293    fn get_query_template(
294        &self,
295        _req: crate::model::GetQueryTemplateRequest,
296        _options: gax::options::RequestOptions,
297    ) -> impl std::future::Future<
298        Output = crate::Result<gax::response::Response<crate::model::QueryTemplate>>,
299    > + Send {
300        gaxi::unimplemented::unimplemented_stub()
301    }
302
303    /// Implements [super::client::AnalyticsHubService::list_query_templates].
304    fn list_query_templates(
305        &self,
306        _req: crate::model::ListQueryTemplatesRequest,
307        _options: gax::options::RequestOptions,
308    ) -> impl std::future::Future<
309        Output = crate::Result<gax::response::Response<crate::model::ListQueryTemplatesResponse>>,
310    > + Send {
311        gaxi::unimplemented::unimplemented_stub()
312    }
313
314    /// Implements [super::client::AnalyticsHubService::update_query_template].
315    fn update_query_template(
316        &self,
317        _req: crate::model::UpdateQueryTemplateRequest,
318        _options: gax::options::RequestOptions,
319    ) -> impl std::future::Future<
320        Output = crate::Result<gax::response::Response<crate::model::QueryTemplate>>,
321    > + Send {
322        gaxi::unimplemented::unimplemented_stub()
323    }
324
325    /// Implements [super::client::AnalyticsHubService::delete_query_template].
326    fn delete_query_template(
327        &self,
328        _req: crate::model::DeleteQueryTemplateRequest,
329        _options: gax::options::RequestOptions,
330    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
331        gaxi::unimplemented::unimplemented_stub()
332    }
333
334    /// Implements [super::client::AnalyticsHubService::submit_query_template].
335    fn submit_query_template(
336        &self,
337        _req: crate::model::SubmitQueryTemplateRequest,
338        _options: gax::options::RequestOptions,
339    ) -> impl std::future::Future<
340        Output = crate::Result<gax::response::Response<crate::model::QueryTemplate>>,
341    > + Send {
342        gaxi::unimplemented::unimplemented_stub()
343    }
344
345    /// Implements [super::client::AnalyticsHubService::approve_query_template].
346    fn approve_query_template(
347        &self,
348        _req: crate::model::ApproveQueryTemplateRequest,
349        _options: gax::options::RequestOptions,
350    ) -> impl std::future::Future<
351        Output = crate::Result<gax::response::Response<crate::model::QueryTemplate>>,
352    > + Send {
353        gaxi::unimplemented::unimplemented_stub()
354    }
355
356    /// Implements [super::client::AnalyticsHubService::get_operation].
357    fn get_operation(
358        &self,
359        _req: longrunning::model::GetOperationRequest,
360        _options: gax::options::RequestOptions,
361    ) -> impl std::future::Future<
362        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
363    > + Send {
364        gaxi::unimplemented::unimplemented_stub()
365    }
366
367    /// Returns the polling error policy.
368    ///
369    /// When mocking, this method is typically irrelevant. Do not try to verify
370    /// it is called by your mocks.
371    fn get_polling_error_policy(
372        &self,
373        _options: &gax::options::RequestOptions,
374    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
375        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
376    }
377
378    /// Returns the polling backoff policy.
379    ///
380    /// When mocking, this method is typically irrelevant. Do not try to verify
381    /// it is called by your mocks.
382    fn get_polling_backoff_policy(
383        &self,
384        _options: &gax::options::RequestOptions,
385    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
386        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
387    }
388}