Skip to main content

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