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    #[doc(hidden)]
414    /// Returns the poller options.
415    ///
416    /// When mocking, this method is typically irrelevant. Do not try to verify
417    /// it is called by your mocks.
418    fn get_poller_options(
419        &self,
420        _options: &crate::RequestOptions,
421    ) -> google_cloud_lro::PollerOptions {
422        google_cloud_lro::PollerOptions::default()
423    }
424}
425
426/// Defines the trait used to implement [super::client::InsightsConfigService].
427///
428/// Application developers may need to implement this trait to mock
429/// `client::InsightsConfigService`.  In other use-cases, application developers only
430/// use `client::InsightsConfigService` and need not be concerned with this trait or
431/// its implementations.
432///
433/// Services gain new RPCs routinely. Consequently, this trait gains new methods
434/// too. To avoid breaking applications the trait provides a default
435/// implementation of each method. Most of these implementations just return an
436/// error.
437pub trait InsightsConfigService: std::fmt::Debug + Send + Sync {
438    /// Implements [super::client::InsightsConfigService::list_insights_configs].
439    fn list_insights_configs(
440        &self,
441        _req: crate::model::ListInsightsConfigsRequest,
442        _options: crate::RequestOptions,
443    ) -> impl std::future::Future<
444        Output = crate::Result<crate::Response<crate::model::ListInsightsConfigsResponse>>,
445    > + Send {
446        gaxi::unimplemented::unimplemented_stub()
447    }
448
449    /// Implements [super::client::InsightsConfigService::create_insights_config].
450    fn create_insights_config(
451        &self,
452        _req: crate::model::CreateInsightsConfigRequest,
453        _options: crate::RequestOptions,
454    ) -> impl std::future::Future<
455        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
456    > + Send {
457        gaxi::unimplemented::unimplemented_stub()
458    }
459
460    /// Implements [super::client::InsightsConfigService::get_insights_config].
461    fn get_insights_config(
462        &self,
463        _req: crate::model::GetInsightsConfigRequest,
464        _options: crate::RequestOptions,
465    ) -> impl std::future::Future<
466        Output = crate::Result<crate::Response<crate::model::InsightsConfig>>,
467    > + Send {
468        gaxi::unimplemented::unimplemented_stub()
469    }
470
471    /// Implements [super::client::InsightsConfigService::update_insights_config].
472    fn update_insights_config(
473        &self,
474        _req: crate::model::UpdateInsightsConfigRequest,
475        _options: crate::RequestOptions,
476    ) -> impl std::future::Future<
477        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
478    > + Send {
479        gaxi::unimplemented::unimplemented_stub()
480    }
481
482    /// Implements [super::client::InsightsConfigService::delete_insights_config].
483    fn delete_insights_config(
484        &self,
485        _req: crate::model::DeleteInsightsConfigRequest,
486        _options: crate::RequestOptions,
487    ) -> impl std::future::Future<
488        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
489    > + Send {
490        gaxi::unimplemented::unimplemented_stub()
491    }
492
493    /// Implements [super::client::InsightsConfigService::get_deployment_event].
494    fn get_deployment_event(
495        &self,
496        _req: crate::model::GetDeploymentEventRequest,
497        _options: crate::RequestOptions,
498    ) -> impl std::future::Future<
499        Output = crate::Result<crate::Response<crate::model::DeploymentEvent>>,
500    > + Send {
501        gaxi::unimplemented::unimplemented_stub()
502    }
503
504    /// Implements [super::client::InsightsConfigService::list_deployment_events].
505    fn list_deployment_events(
506        &self,
507        _req: crate::model::ListDeploymentEventsRequest,
508        _options: crate::RequestOptions,
509    ) -> impl std::future::Future<
510        Output = crate::Result<crate::Response<crate::model::ListDeploymentEventsResponse>>,
511    > + Send {
512        gaxi::unimplemented::unimplemented_stub()
513    }
514
515    /// Implements [super::client::InsightsConfigService::list_locations].
516    fn list_locations(
517        &self,
518        _req: google_cloud_location::model::ListLocationsRequest,
519        _options: crate::RequestOptions,
520    ) -> impl std::future::Future<
521        Output = crate::Result<
522            crate::Response<google_cloud_location::model::ListLocationsResponse>,
523        >,
524    > + Send {
525        gaxi::unimplemented::unimplemented_stub()
526    }
527
528    /// Implements [super::client::InsightsConfigService::get_location].
529    fn get_location(
530        &self,
531        _req: google_cloud_location::model::GetLocationRequest,
532        _options: crate::RequestOptions,
533    ) -> impl std::future::Future<
534        Output = crate::Result<crate::Response<google_cloud_location::model::Location>>,
535    > + Send {
536        gaxi::unimplemented::unimplemented_stub()
537    }
538
539    /// Implements [super::client::InsightsConfigService::list_operations].
540    fn list_operations(
541        &self,
542        _req: google_cloud_longrunning::model::ListOperationsRequest,
543        _options: crate::RequestOptions,
544    ) -> impl std::future::Future<
545        Output = crate::Result<
546            crate::Response<google_cloud_longrunning::model::ListOperationsResponse>,
547        >,
548    > + Send {
549        gaxi::unimplemented::unimplemented_stub()
550    }
551
552    /// Implements [super::client::InsightsConfigService::get_operation].
553    fn get_operation(
554        &self,
555        _req: google_cloud_longrunning::model::GetOperationRequest,
556        _options: crate::RequestOptions,
557    ) -> impl std::future::Future<
558        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
559    > + Send {
560        gaxi::unimplemented::unimplemented_stub()
561    }
562
563    /// Implements [super::client::InsightsConfigService::delete_operation].
564    fn delete_operation(
565        &self,
566        _req: google_cloud_longrunning::model::DeleteOperationRequest,
567        _options: crate::RequestOptions,
568    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
569        gaxi::unimplemented::unimplemented_stub()
570    }
571
572    /// Implements [super::client::InsightsConfigService::cancel_operation].
573    fn cancel_operation(
574        &self,
575        _req: google_cloud_longrunning::model::CancelOperationRequest,
576        _options: crate::RequestOptions,
577    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
578        gaxi::unimplemented::unimplemented_stub()
579    }
580
581    /// Returns the polling error policy.
582    ///
583    /// When mocking, this method is typically irrelevant. Do not try to verify
584    /// it is called by your mocks.
585    fn get_polling_error_policy(
586        &self,
587        _options: &crate::RequestOptions,
588    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
589        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
590    }
591
592    /// Returns the polling backoff policy.
593    ///
594    /// When mocking, this method is typically irrelevant. Do not try to verify
595    /// it is called by your mocks.
596    fn get_polling_backoff_policy(
597        &self,
598        _options: &crate::RequestOptions,
599    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
600        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
601    }
602
603    #[doc(hidden)]
604    /// Returns the poller options.
605    ///
606    /// When mocking, this method is typically irrelevant. Do not try to verify
607    /// it is called by your mocks.
608    fn get_poller_options(
609        &self,
610        _options: &crate::RequestOptions,
611    ) -> google_cloud_lro::PollerOptions {
612        google_cloud_lro::PollerOptions::default()
613    }
614}