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::start_o_auth].
304    fn start_o_auth(
305        &self,
306        _req: crate::model::StartOAuthRequest,
307        _options: crate::RequestOptions,
308    ) -> impl std::future::Future<
309        Output = crate::Result<crate::Response<crate::model::StartOAuthResponse>>,
310    > + Send {
311        gaxi::unimplemented::unimplemented_stub()
312    }
313
314    /// Implements [super::client::DeveloperConnect::finish_o_auth].
315    fn finish_o_auth(
316        &self,
317        _req: crate::model::FinishOAuthRequest,
318        _options: crate::RequestOptions,
319    ) -> impl std::future::Future<
320        Output = crate::Result<crate::Response<crate::model::FinishOAuthResponse>>,
321    > + Send {
322        gaxi::unimplemented::unimplemented_stub()
323    }
324
325    /// Implements [super::client::DeveloperConnect::list_locations].
326    fn list_locations(
327        &self,
328        _req: google_cloud_location::model::ListLocationsRequest,
329        _options: crate::RequestOptions,
330    ) -> impl std::future::Future<
331        Output = crate::Result<
332            crate::Response<google_cloud_location::model::ListLocationsResponse>,
333        >,
334    > + Send {
335        gaxi::unimplemented::unimplemented_stub()
336    }
337
338    /// Implements [super::client::DeveloperConnect::get_location].
339    fn get_location(
340        &self,
341        _req: google_cloud_location::model::GetLocationRequest,
342        _options: crate::RequestOptions,
343    ) -> impl std::future::Future<
344        Output = crate::Result<crate::Response<google_cloud_location::model::Location>>,
345    > + Send {
346        gaxi::unimplemented::unimplemented_stub()
347    }
348
349    /// Implements [super::client::DeveloperConnect::list_operations].
350    fn list_operations(
351        &self,
352        _req: google_cloud_longrunning::model::ListOperationsRequest,
353        _options: crate::RequestOptions,
354    ) -> impl std::future::Future<
355        Output = crate::Result<
356            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
357        >,
358    > + Send {
359        gaxi::unimplemented::unimplemented_stub()
360    }
361
362    /// Implements [super::client::DeveloperConnect::get_operation].
363    fn get_operation(
364        &self,
365        _req: google_cloud_longrunning::model::GetOperationRequest,
366        _options: crate::RequestOptions,
367    ) -> impl std::future::Future<
368        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
369    > + Send {
370        gaxi::unimplemented::unimplemented_stub()
371    }
372
373    /// Implements [super::client::DeveloperConnect::delete_operation].
374    fn delete_operation(
375        &self,
376        _req: google_cloud_longrunning::model::DeleteOperationRequest,
377        _options: crate::RequestOptions,
378    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
379        gaxi::unimplemented::unimplemented_stub()
380    }
381
382    /// Implements [super::client::DeveloperConnect::cancel_operation].
383    fn cancel_operation(
384        &self,
385        _req: google_cloud_longrunning::model::CancelOperationRequest,
386        _options: crate::RequestOptions,
387    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
388        gaxi::unimplemented::unimplemented_stub()
389    }
390
391    /// Returns the polling error policy.
392    ///
393    /// When mocking, this method is typically irrelevant. Do not try to verify
394    /// it is called by your mocks.
395    fn get_polling_error_policy(
396        &self,
397        _options: &crate::RequestOptions,
398    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
399        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
400    }
401
402    /// Returns the polling backoff policy.
403    ///
404    /// When mocking, this method is typically irrelevant. Do not try to verify
405    /// it is called by your mocks.
406    fn get_polling_backoff_policy(
407        &self,
408        _options: &crate::RequestOptions,
409    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
410        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
411    }
412}
413
414/// Defines the trait used to implement [super::client::InsightsConfigService].
415///
416/// Application developers may need to implement this trait to mock
417/// `client::InsightsConfigService`.  In other use-cases, application developers only
418/// use `client::InsightsConfigService` and need not be concerned with this trait or
419/// its implementations.
420///
421/// Services gain new RPCs routinely. Consequently, this trait gains new methods
422/// too. To avoid breaking applications the trait provides a default
423/// implementation of each method. Most of these implementations just return an
424/// error.
425pub trait InsightsConfigService: std::fmt::Debug + Send + Sync {
426    /// Implements [super::client::InsightsConfigService::list_insights_configs].
427    fn list_insights_configs(
428        &self,
429        _req: crate::model::ListInsightsConfigsRequest,
430        _options: crate::RequestOptions,
431    ) -> impl std::future::Future<
432        Output = crate::Result<crate::Response<crate::model::ListInsightsConfigsResponse>>,
433    > + Send {
434        gaxi::unimplemented::unimplemented_stub()
435    }
436
437    /// Implements [super::client::InsightsConfigService::create_insights_config].
438    fn create_insights_config(
439        &self,
440        _req: crate::model::CreateInsightsConfigRequest,
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::get_insights_config].
449    fn get_insights_config(
450        &self,
451        _req: crate::model::GetInsightsConfigRequest,
452        _options: crate::RequestOptions,
453    ) -> impl std::future::Future<
454        Output = crate::Result<crate::Response<crate::model::InsightsConfig>>,
455    > + Send {
456        gaxi::unimplemented::unimplemented_stub()
457    }
458
459    /// Implements [super::client::InsightsConfigService::update_insights_config].
460    fn update_insights_config(
461        &self,
462        _req: crate::model::UpdateInsightsConfigRequest,
463        _options: crate::RequestOptions,
464    ) -> impl std::future::Future<
465        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
466    > + Send {
467        gaxi::unimplemented::unimplemented_stub()
468    }
469
470    /// Implements [super::client::InsightsConfigService::delete_insights_config].
471    fn delete_insights_config(
472        &self,
473        _req: crate::model::DeleteInsightsConfigRequest,
474        _options: crate::RequestOptions,
475    ) -> impl std::future::Future<
476        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
477    > + Send {
478        gaxi::unimplemented::unimplemented_stub()
479    }
480
481    /// Implements [super::client::InsightsConfigService::get_deployment_event].
482    fn get_deployment_event(
483        &self,
484        _req: crate::model::GetDeploymentEventRequest,
485        _options: crate::RequestOptions,
486    ) -> impl std::future::Future<
487        Output = crate::Result<crate::Response<crate::model::DeploymentEvent>>,
488    > + Send {
489        gaxi::unimplemented::unimplemented_stub()
490    }
491
492    /// Implements [super::client::InsightsConfigService::list_deployment_events].
493    fn list_deployment_events(
494        &self,
495        _req: crate::model::ListDeploymentEventsRequest,
496        _options: crate::RequestOptions,
497    ) -> impl std::future::Future<
498        Output = crate::Result<crate::Response<crate::model::ListDeploymentEventsResponse>>,
499    > + Send {
500        gaxi::unimplemented::unimplemented_stub()
501    }
502
503    /// Implements [super::client::InsightsConfigService::list_locations].
504    fn list_locations(
505        &self,
506        _req: google_cloud_location::model::ListLocationsRequest,
507        _options: crate::RequestOptions,
508    ) -> impl std::future::Future<
509        Output = crate::Result<
510            crate::Response<google_cloud_location::model::ListLocationsResponse>,
511        >,
512    > + Send {
513        gaxi::unimplemented::unimplemented_stub()
514    }
515
516    /// Implements [super::client::InsightsConfigService::get_location].
517    fn get_location(
518        &self,
519        _req: google_cloud_location::model::GetLocationRequest,
520        _options: crate::RequestOptions,
521    ) -> impl std::future::Future<
522        Output = crate::Result<crate::Response<google_cloud_location::model::Location>>,
523    > + Send {
524        gaxi::unimplemented::unimplemented_stub()
525    }
526
527    /// Implements [super::client::InsightsConfigService::list_operations].
528    fn list_operations(
529        &self,
530        _req: google_cloud_longrunning::model::ListOperationsRequest,
531        _options: crate::RequestOptions,
532    ) -> impl std::future::Future<
533        Output = crate::Result<
534            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
535        >,
536    > + Send {
537        gaxi::unimplemented::unimplemented_stub()
538    }
539
540    /// Implements [super::client::InsightsConfigService::get_operation].
541    fn get_operation(
542        &self,
543        _req: google_cloud_longrunning::model::GetOperationRequest,
544        _options: crate::RequestOptions,
545    ) -> impl std::future::Future<
546        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
547    > + Send {
548        gaxi::unimplemented::unimplemented_stub()
549    }
550
551    /// Implements [super::client::InsightsConfigService::delete_operation].
552    fn delete_operation(
553        &self,
554        _req: google_cloud_longrunning::model::DeleteOperationRequest,
555        _options: crate::RequestOptions,
556    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
557        gaxi::unimplemented::unimplemented_stub()
558    }
559
560    /// Implements [super::client::InsightsConfigService::cancel_operation].
561    fn cancel_operation(
562        &self,
563        _req: google_cloud_longrunning::model::CancelOperationRequest,
564        _options: crate::RequestOptions,
565    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
566        gaxi::unimplemented::unimplemented_stub()
567    }
568
569    /// Returns the polling error policy.
570    ///
571    /// When mocking, this method is typically irrelevant. Do not try to verify
572    /// it is called by your mocks.
573    fn get_polling_error_policy(
574        &self,
575        _options: &crate::RequestOptions,
576    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
577        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
578    }
579
580    /// Returns the polling backoff policy.
581    ///
582    /// When mocking, this method is typically irrelevant. Do not try to verify
583    /// it is called by your mocks.
584    fn get_polling_backoff_policy(
585        &self,
586        _options: &crate::RequestOptions,
587    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
588        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
589    }
590}