google_cloud_developerconnect_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::DeveloperConnect].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::DeveloperConnect`.  In other use-cases, application developers only
33/// use `client::DeveloperConnect` 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 DeveloperConnect: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::DeveloperConnect::list_connections].
42    fn list_connections(
43        &self,
44        _req: crate::model::ListConnectionsRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<crate::model::ListConnectionsResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::DeveloperConnect::get_connection].
53    fn get_connection(
54        &self,
55        _req: crate::model::GetConnectionRequest,
56        _options: gax::options::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<gax::response::Response<crate::model::Connection>>,
59    > + Send {
60        gaxi::unimplemented::unimplemented_stub()
61    }
62
63    /// Implements [super::client::DeveloperConnect::create_connection].
64    fn create_connection(
65        &self,
66        _req: crate::model::CreateConnectionRequest,
67        _options: gax::options::RequestOptions,
68    ) -> impl std::future::Future<
69        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
70    > + Send {
71        gaxi::unimplemented::unimplemented_stub()
72    }
73
74    /// Implements [super::client::DeveloperConnect::update_connection].
75    fn update_connection(
76        &self,
77        _req: crate::model::UpdateConnectionRequest,
78        _options: gax::options::RequestOptions,
79    ) -> impl std::future::Future<
80        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
81    > + Send {
82        gaxi::unimplemented::unimplemented_stub()
83    }
84
85    /// Implements [super::client::DeveloperConnect::delete_connection].
86    fn delete_connection(
87        &self,
88        _req: crate::model::DeleteConnectionRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::DeveloperConnect::create_git_repository_link].
97    fn create_git_repository_link(
98        &self,
99        _req: crate::model::CreateGitRepositoryLinkRequest,
100        _options: gax::options::RequestOptions,
101    ) -> impl std::future::Future<
102        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
103    > + Send {
104        gaxi::unimplemented::unimplemented_stub()
105    }
106
107    /// Implements [super::client::DeveloperConnect::delete_git_repository_link].
108    fn delete_git_repository_link(
109        &self,
110        _req: crate::model::DeleteGitRepositoryLinkRequest,
111        _options: gax::options::RequestOptions,
112    ) -> impl std::future::Future<
113        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
114    > + Send {
115        gaxi::unimplemented::unimplemented_stub()
116    }
117
118    /// Implements [super::client::DeveloperConnect::list_git_repository_links].
119    fn list_git_repository_links(
120        &self,
121        _req: crate::model::ListGitRepositoryLinksRequest,
122        _options: gax::options::RequestOptions,
123    ) -> impl std::future::Future<
124        Output = crate::Result<
125            gax::response::Response<crate::model::ListGitRepositoryLinksResponse>,
126        >,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::DeveloperConnect::get_git_repository_link].
132    fn get_git_repository_link(
133        &self,
134        _req: crate::model::GetGitRepositoryLinkRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<crate::model::GitRepositoryLink>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::DeveloperConnect::fetch_read_write_token].
143    fn fetch_read_write_token(
144        &self,
145        _req: crate::model::FetchReadWriteTokenRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<gax::response::Response<crate::model::FetchReadWriteTokenResponse>>,
149    > + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::DeveloperConnect::fetch_read_token].
154    fn fetch_read_token(
155        &self,
156        _req: crate::model::FetchReadTokenRequest,
157        _options: gax::options::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<gax::response::Response<crate::model::FetchReadTokenResponse>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::DeveloperConnect::fetch_linkable_git_repositories].
165    fn fetch_linkable_git_repositories(
166        &self,
167        _req: crate::model::FetchLinkableGitRepositoriesRequest,
168        _options: gax::options::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<
171            gax::response::Response<crate::model::FetchLinkableGitRepositoriesResponse>,
172        >,
173    > + Send {
174        gaxi::unimplemented::unimplemented_stub()
175    }
176
177    /// Implements [super::client::DeveloperConnect::fetch_git_hub_installations].
178    fn fetch_git_hub_installations(
179        &self,
180        _req: crate::model::FetchGitHubInstallationsRequest,
181        _options: gax::options::RequestOptions,
182    ) -> impl std::future::Future<
183        Output = crate::Result<
184            gax::response::Response<crate::model::FetchGitHubInstallationsResponse>,
185        >,
186    > + Send {
187        gaxi::unimplemented::unimplemented_stub()
188    }
189
190    /// Implements [super::client::DeveloperConnect::fetch_git_refs].
191    fn fetch_git_refs(
192        &self,
193        _req: crate::model::FetchGitRefsRequest,
194        _options: gax::options::RequestOptions,
195    ) -> impl std::future::Future<
196        Output = crate::Result<gax::response::Response<crate::model::FetchGitRefsResponse>>,
197    > + Send {
198        gaxi::unimplemented::unimplemented_stub()
199    }
200
201    /// Implements [super::client::DeveloperConnect::list_account_connectors].
202    fn list_account_connectors(
203        &self,
204        _req: crate::model::ListAccountConnectorsRequest,
205        _options: gax::options::RequestOptions,
206    ) -> impl std::future::Future<
207        Output = crate::Result<
208            gax::response::Response<crate::model::ListAccountConnectorsResponse>,
209        >,
210    > + Send {
211        gaxi::unimplemented::unimplemented_stub()
212    }
213
214    /// Implements [super::client::DeveloperConnect::get_account_connector].
215    fn get_account_connector(
216        &self,
217        _req: crate::model::GetAccountConnectorRequest,
218        _options: gax::options::RequestOptions,
219    ) -> impl std::future::Future<
220        Output = crate::Result<gax::response::Response<crate::model::AccountConnector>>,
221    > + Send {
222        gaxi::unimplemented::unimplemented_stub()
223    }
224
225    /// Implements [super::client::DeveloperConnect::create_account_connector].
226    fn create_account_connector(
227        &self,
228        _req: crate::model::CreateAccountConnectorRequest,
229        _options: gax::options::RequestOptions,
230    ) -> impl std::future::Future<
231        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
232    > + Send {
233        gaxi::unimplemented::unimplemented_stub()
234    }
235
236    /// Implements [super::client::DeveloperConnect::update_account_connector].
237    fn update_account_connector(
238        &self,
239        _req: crate::model::UpdateAccountConnectorRequest,
240        _options: gax::options::RequestOptions,
241    ) -> impl std::future::Future<
242        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
243    > + Send {
244        gaxi::unimplemented::unimplemented_stub()
245    }
246
247    /// Implements [super::client::DeveloperConnect::delete_account_connector].
248    fn delete_account_connector(
249        &self,
250        _req: crate::model::DeleteAccountConnectorRequest,
251        _options: gax::options::RequestOptions,
252    ) -> impl std::future::Future<
253        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
254    > + Send {
255        gaxi::unimplemented::unimplemented_stub()
256    }
257
258    /// Implements [super::client::DeveloperConnect::fetch_access_token].
259    fn fetch_access_token(
260        &self,
261        _req: crate::model::FetchAccessTokenRequest,
262        _options: gax::options::RequestOptions,
263    ) -> impl std::future::Future<
264        Output = crate::Result<gax::response::Response<crate::model::FetchAccessTokenResponse>>,
265    > + Send {
266        gaxi::unimplemented::unimplemented_stub()
267    }
268
269    /// Implements [super::client::DeveloperConnect::list_users].
270    fn list_users(
271        &self,
272        _req: crate::model::ListUsersRequest,
273        _options: gax::options::RequestOptions,
274    ) -> impl std::future::Future<
275        Output = crate::Result<gax::response::Response<crate::model::ListUsersResponse>>,
276    > + Send {
277        gaxi::unimplemented::unimplemented_stub()
278    }
279
280    /// Implements [super::client::DeveloperConnect::delete_user].
281    fn delete_user(
282        &self,
283        _req: crate::model::DeleteUserRequest,
284        _options: gax::options::RequestOptions,
285    ) -> impl std::future::Future<
286        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
287    > + Send {
288        gaxi::unimplemented::unimplemented_stub()
289    }
290
291    /// Implements [super::client::DeveloperConnect::fetch_self].
292    fn fetch_self(
293        &self,
294        _req: crate::model::FetchSelfRequest,
295        _options: gax::options::RequestOptions,
296    ) -> impl std::future::Future<
297        Output = crate::Result<gax::response::Response<crate::model::User>>,
298    > + Send {
299        gaxi::unimplemented::unimplemented_stub()
300    }
301
302    /// Implements [super::client::DeveloperConnect::delete_self].
303    fn delete_self(
304        &self,
305        _req: crate::model::DeleteSelfRequest,
306        _options: gax::options::RequestOptions,
307    ) -> impl std::future::Future<
308        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
309    > + Send {
310        gaxi::unimplemented::unimplemented_stub()
311    }
312
313    /// Implements [super::client::DeveloperConnect::list_locations].
314    fn list_locations(
315        &self,
316        _req: location::model::ListLocationsRequest,
317        _options: gax::options::RequestOptions,
318    ) -> impl std::future::Future<
319        Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
320    > + Send {
321        gaxi::unimplemented::unimplemented_stub()
322    }
323
324    /// Implements [super::client::DeveloperConnect::get_location].
325    fn get_location(
326        &self,
327        _req: location::model::GetLocationRequest,
328        _options: gax::options::RequestOptions,
329    ) -> impl std::future::Future<
330        Output = crate::Result<gax::response::Response<location::model::Location>>,
331    > + Send {
332        gaxi::unimplemented::unimplemented_stub()
333    }
334
335    /// Implements [super::client::DeveloperConnect::list_operations].
336    fn list_operations(
337        &self,
338        _req: longrunning::model::ListOperationsRequest,
339        _options: gax::options::RequestOptions,
340    ) -> impl std::future::Future<
341        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
342    > + Send {
343        gaxi::unimplemented::unimplemented_stub()
344    }
345
346    /// Implements [super::client::DeveloperConnect::get_operation].
347    fn get_operation(
348        &self,
349        _req: longrunning::model::GetOperationRequest,
350        _options: gax::options::RequestOptions,
351    ) -> impl std::future::Future<
352        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
353    > + Send {
354        gaxi::unimplemented::unimplemented_stub()
355    }
356
357    /// Implements [super::client::DeveloperConnect::delete_operation].
358    fn delete_operation(
359        &self,
360        _req: longrunning::model::DeleteOperationRequest,
361        _options: gax::options::RequestOptions,
362    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
363        gaxi::unimplemented::unimplemented_stub()
364    }
365
366    /// Implements [super::client::DeveloperConnect::cancel_operation].
367    fn cancel_operation(
368        &self,
369        _req: longrunning::model::CancelOperationRequest,
370        _options: gax::options::RequestOptions,
371    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
372        gaxi::unimplemented::unimplemented_stub()
373    }
374
375    /// Returns the polling error policy.
376    ///
377    /// When mocking, this method is typically irrelevant. Do not try to verify
378    /// it is called by your mocks.
379    fn get_polling_error_policy(
380        &self,
381        _options: &gax::options::RequestOptions,
382    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
383        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
384    }
385
386    /// Returns the polling backoff policy.
387    ///
388    /// When mocking, this method is typically irrelevant. Do not try to verify
389    /// it is called by your mocks.
390    fn get_polling_backoff_policy(
391        &self,
392        _options: &gax::options::RequestOptions,
393    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
394        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
395    }
396}
397
398/// Defines the trait used to implement [super::client::InsightsConfigService].
399///
400/// Application developers may need to implement this trait to mock
401/// `client::InsightsConfigService`.  In other use-cases, application developers only
402/// use `client::InsightsConfigService` and need not be concerned with this trait or
403/// its implementations.
404///
405/// Services gain new RPCs routinely. Consequently, this trait gains new methods
406/// too. To avoid breaking applications the trait provides a default
407/// implementation of each method. Most of these implementations just return an
408/// error.
409pub trait InsightsConfigService: std::fmt::Debug + Send + Sync {
410    /// Implements [super::client::InsightsConfigService::list_insights_configs].
411    fn list_insights_configs(
412        &self,
413        _req: crate::model::ListInsightsConfigsRequest,
414        _options: gax::options::RequestOptions,
415    ) -> impl std::future::Future<
416        Output = crate::Result<gax::response::Response<crate::model::ListInsightsConfigsResponse>>,
417    > + Send {
418        gaxi::unimplemented::unimplemented_stub()
419    }
420
421    /// Implements [super::client::InsightsConfigService::create_insights_config].
422    fn create_insights_config(
423        &self,
424        _req: crate::model::CreateInsightsConfigRequest,
425        _options: gax::options::RequestOptions,
426    ) -> impl std::future::Future<
427        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
428    > + Send {
429        gaxi::unimplemented::unimplemented_stub()
430    }
431
432    /// Implements [super::client::InsightsConfigService::get_insights_config].
433    fn get_insights_config(
434        &self,
435        _req: crate::model::GetInsightsConfigRequest,
436        _options: gax::options::RequestOptions,
437    ) -> impl std::future::Future<
438        Output = crate::Result<gax::response::Response<crate::model::InsightsConfig>>,
439    > + Send {
440        gaxi::unimplemented::unimplemented_stub()
441    }
442
443    /// Implements [super::client::InsightsConfigService::update_insights_config].
444    fn update_insights_config(
445        &self,
446        _req: crate::model::UpdateInsightsConfigRequest,
447        _options: gax::options::RequestOptions,
448    ) -> impl std::future::Future<
449        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
450    > + Send {
451        gaxi::unimplemented::unimplemented_stub()
452    }
453
454    /// Implements [super::client::InsightsConfigService::delete_insights_config].
455    fn delete_insights_config(
456        &self,
457        _req: crate::model::DeleteInsightsConfigRequest,
458        _options: gax::options::RequestOptions,
459    ) -> impl std::future::Future<
460        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
461    > + Send {
462        gaxi::unimplemented::unimplemented_stub()
463    }
464
465    /// Implements [super::client::InsightsConfigService::list_locations].
466    fn list_locations(
467        &self,
468        _req: location::model::ListLocationsRequest,
469        _options: gax::options::RequestOptions,
470    ) -> impl std::future::Future<
471        Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
472    > + Send {
473        gaxi::unimplemented::unimplemented_stub()
474    }
475
476    /// Implements [super::client::InsightsConfigService::get_location].
477    fn get_location(
478        &self,
479        _req: location::model::GetLocationRequest,
480        _options: gax::options::RequestOptions,
481    ) -> impl std::future::Future<
482        Output = crate::Result<gax::response::Response<location::model::Location>>,
483    > + Send {
484        gaxi::unimplemented::unimplemented_stub()
485    }
486
487    /// Implements [super::client::InsightsConfigService::list_operations].
488    fn list_operations(
489        &self,
490        _req: longrunning::model::ListOperationsRequest,
491        _options: gax::options::RequestOptions,
492    ) -> impl std::future::Future<
493        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
494    > + Send {
495        gaxi::unimplemented::unimplemented_stub()
496    }
497
498    /// Implements [super::client::InsightsConfigService::get_operation].
499    fn get_operation(
500        &self,
501        _req: longrunning::model::GetOperationRequest,
502        _options: gax::options::RequestOptions,
503    ) -> impl std::future::Future<
504        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
505    > + Send {
506        gaxi::unimplemented::unimplemented_stub()
507    }
508
509    /// Implements [super::client::InsightsConfigService::delete_operation].
510    fn delete_operation(
511        &self,
512        _req: longrunning::model::DeleteOperationRequest,
513        _options: gax::options::RequestOptions,
514    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
515        gaxi::unimplemented::unimplemented_stub()
516    }
517
518    /// Implements [super::client::InsightsConfigService::cancel_operation].
519    fn cancel_operation(
520        &self,
521        _req: longrunning::model::CancelOperationRequest,
522        _options: gax::options::RequestOptions,
523    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
524        gaxi::unimplemented::unimplemented_stub()
525    }
526
527    /// Returns the polling error policy.
528    ///
529    /// When mocking, this method is typically irrelevant. Do not try to verify
530    /// it is called by your mocks.
531    fn get_polling_error_policy(
532        &self,
533        _options: &gax::options::RequestOptions,
534    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
535        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
536    }
537
538    /// Returns the polling backoff policy.
539    ///
540    /// When mocking, this method is typically irrelevant. Do not try to verify
541    /// it is called by your mocks.
542    fn get_polling_backoff_policy(
543        &self,
544        _options: &gax::options::RequestOptions,
545    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
546        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
547    }
548}