google_cloud_appengine_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::Applications].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::Applications`.  In other use-cases, application developers only
33/// use `client::Applications` 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 Applications: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::Applications::get_application].
42    fn get_application(
43        &self,
44        _req: crate::model::GetApplicationRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<crate::model::Application>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::Applications::create_application].
53    fn create_application(
54        &self,
55        _req: crate::model::CreateApplicationRequest,
56        _options: gax::options::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
59    > + Send {
60        gaxi::unimplemented::unimplemented_stub()
61    }
62
63    /// Implements [super::client::Applications::update_application].
64    fn update_application(
65        &self,
66        _req: crate::model::UpdateApplicationRequest,
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::Applications::repair_application].
75    fn repair_application(
76        &self,
77        _req: crate::model::RepairApplicationRequest,
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::Applications::list_operations].
86    fn list_operations(
87        &self,
88        _req: longrunning::model::ListOperationsRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::Applications::get_operation].
97    fn get_operation(
98        &self,
99        _req: longrunning::model::GetOperationRequest,
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    /// Returns the polling error policy.
108    ///
109    /// When mocking, this method is typically irrelevant. Do not try to verify
110    /// it is called by your mocks.
111    fn get_polling_error_policy(
112        &self,
113        _options: &gax::options::RequestOptions,
114    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
115        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
116    }
117
118    /// Returns the polling backoff policy.
119    ///
120    /// When mocking, this method is typically irrelevant. Do not try to verify
121    /// it is called by your mocks.
122    fn get_polling_backoff_policy(
123        &self,
124        _options: &gax::options::RequestOptions,
125    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
126        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
127    }
128}
129
130/// Defines the trait used to implement [super::client::Services].
131///
132/// Application developers may need to implement this trait to mock
133/// `client::Services`.  In other use-cases, application developers only
134/// use `client::Services` and need not be concerned with this trait or
135/// its implementations.
136///
137/// Services gain new RPCs routinely. Consequently, this trait gains new methods
138/// too. To avoid breaking applications the trait provides a default
139/// implementation of each method. Most of these implementations just return an
140/// error.
141pub trait Services: std::fmt::Debug + Send + Sync {
142    /// Implements [super::client::Services::list_services].
143    fn list_services(
144        &self,
145        _req: crate::model::ListServicesRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<gax::response::Response<crate::model::ListServicesResponse>>,
149    > + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::Services::get_service].
154    fn get_service(
155        &self,
156        _req: crate::model::GetServiceRequest,
157        _options: gax::options::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<gax::response::Response<crate::model::Service>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::Services::update_service].
165    fn update_service(
166        &self,
167        _req: crate::model::UpdateServiceRequest,
168        _options: gax::options::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
171    > + Send {
172        gaxi::unimplemented::unimplemented_stub()
173    }
174
175    /// Implements [super::client::Services::delete_service].
176    fn delete_service(
177        &self,
178        _req: crate::model::DeleteServiceRequest,
179        _options: gax::options::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
182    > + Send {
183        gaxi::unimplemented::unimplemented_stub()
184    }
185
186    /// Implements [super::client::Services::list_operations].
187    fn list_operations(
188        &self,
189        _req: longrunning::model::ListOperationsRequest,
190        _options: gax::options::RequestOptions,
191    ) -> impl std::future::Future<
192        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
193    > + Send {
194        gaxi::unimplemented::unimplemented_stub()
195    }
196
197    /// Implements [super::client::Services::get_operation].
198    fn get_operation(
199        &self,
200        _req: longrunning::model::GetOperationRequest,
201        _options: gax::options::RequestOptions,
202    ) -> impl std::future::Future<
203        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
204    > + Send {
205        gaxi::unimplemented::unimplemented_stub()
206    }
207
208    /// Returns the polling error policy.
209    ///
210    /// When mocking, this method is typically irrelevant. Do not try to verify
211    /// it is called by your mocks.
212    fn get_polling_error_policy(
213        &self,
214        _options: &gax::options::RequestOptions,
215    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
216        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
217    }
218
219    /// Returns the polling backoff policy.
220    ///
221    /// When mocking, this method is typically irrelevant. Do not try to verify
222    /// it is called by your mocks.
223    fn get_polling_backoff_policy(
224        &self,
225        _options: &gax::options::RequestOptions,
226    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
227        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
228    }
229}
230
231/// Defines the trait used to implement [super::client::Versions].
232///
233/// Application developers may need to implement this trait to mock
234/// `client::Versions`.  In other use-cases, application developers only
235/// use `client::Versions` and need not be concerned with this trait or
236/// its implementations.
237///
238/// Services gain new RPCs routinely. Consequently, this trait gains new methods
239/// too. To avoid breaking applications the trait provides a default
240/// implementation of each method. Most of these implementations just return an
241/// error.
242pub trait Versions: std::fmt::Debug + Send + Sync {
243    /// Implements [super::client::Versions::list_versions].
244    fn list_versions(
245        &self,
246        _req: crate::model::ListVersionsRequest,
247        _options: gax::options::RequestOptions,
248    ) -> impl std::future::Future<
249        Output = crate::Result<gax::response::Response<crate::model::ListVersionsResponse>>,
250    > + Send {
251        gaxi::unimplemented::unimplemented_stub()
252    }
253
254    /// Implements [super::client::Versions::get_version].
255    fn get_version(
256        &self,
257        _req: crate::model::GetVersionRequest,
258        _options: gax::options::RequestOptions,
259    ) -> impl std::future::Future<
260        Output = crate::Result<gax::response::Response<crate::model::Version>>,
261    > + Send {
262        gaxi::unimplemented::unimplemented_stub()
263    }
264
265    /// Implements [super::client::Versions::create_version].
266    fn create_version(
267        &self,
268        _req: crate::model::CreateVersionRequest,
269        _options: gax::options::RequestOptions,
270    ) -> impl std::future::Future<
271        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
272    > + Send {
273        gaxi::unimplemented::unimplemented_stub()
274    }
275
276    /// Implements [super::client::Versions::update_version].
277    fn update_version(
278        &self,
279        _req: crate::model::UpdateVersionRequest,
280        _options: gax::options::RequestOptions,
281    ) -> impl std::future::Future<
282        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
283    > + Send {
284        gaxi::unimplemented::unimplemented_stub()
285    }
286
287    /// Implements [super::client::Versions::delete_version].
288    fn delete_version(
289        &self,
290        _req: crate::model::DeleteVersionRequest,
291        _options: gax::options::RequestOptions,
292    ) -> impl std::future::Future<
293        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
294    > + Send {
295        gaxi::unimplemented::unimplemented_stub()
296    }
297
298    /// Implements [super::client::Versions::list_operations].
299    fn list_operations(
300        &self,
301        _req: longrunning::model::ListOperationsRequest,
302        _options: gax::options::RequestOptions,
303    ) -> impl std::future::Future<
304        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
305    > + Send {
306        gaxi::unimplemented::unimplemented_stub()
307    }
308
309    /// Implements [super::client::Versions::get_operation].
310    fn get_operation(
311        &self,
312        _req: longrunning::model::GetOperationRequest,
313        _options: gax::options::RequestOptions,
314    ) -> impl std::future::Future<
315        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
316    > + Send {
317        gaxi::unimplemented::unimplemented_stub()
318    }
319
320    /// Returns the polling error policy.
321    ///
322    /// When mocking, this method is typically irrelevant. Do not try to verify
323    /// it is called by your mocks.
324    fn get_polling_error_policy(
325        &self,
326        _options: &gax::options::RequestOptions,
327    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
328        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
329    }
330
331    /// Returns the polling backoff policy.
332    ///
333    /// When mocking, this method is typically irrelevant. Do not try to verify
334    /// it is called by your mocks.
335    fn get_polling_backoff_policy(
336        &self,
337        _options: &gax::options::RequestOptions,
338    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
339        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
340    }
341}
342
343/// Defines the trait used to implement [super::client::Instances].
344///
345/// Application developers may need to implement this trait to mock
346/// `client::Instances`.  In other use-cases, application developers only
347/// use `client::Instances` and need not be concerned with this trait or
348/// its implementations.
349///
350/// Services gain new RPCs routinely. Consequently, this trait gains new methods
351/// too. To avoid breaking applications the trait provides a default
352/// implementation of each method. Most of these implementations just return an
353/// error.
354pub trait Instances: std::fmt::Debug + Send + Sync {
355    /// Implements [super::client::Instances::list_instances].
356    fn list_instances(
357        &self,
358        _req: crate::model::ListInstancesRequest,
359        _options: gax::options::RequestOptions,
360    ) -> impl std::future::Future<
361        Output = crate::Result<gax::response::Response<crate::model::ListInstancesResponse>>,
362    > + Send {
363        gaxi::unimplemented::unimplemented_stub()
364    }
365
366    /// Implements [super::client::Instances::get_instance].
367    fn get_instance(
368        &self,
369        _req: crate::model::GetInstanceRequest,
370        _options: gax::options::RequestOptions,
371    ) -> impl std::future::Future<
372        Output = crate::Result<gax::response::Response<crate::model::Instance>>,
373    > + Send {
374        gaxi::unimplemented::unimplemented_stub()
375    }
376
377    /// Implements [super::client::Instances::delete_instance].
378    fn delete_instance(
379        &self,
380        _req: crate::model::DeleteInstanceRequest,
381        _options: gax::options::RequestOptions,
382    ) -> impl std::future::Future<
383        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
384    > + Send {
385        gaxi::unimplemented::unimplemented_stub()
386    }
387
388    /// Implements [super::client::Instances::debug_instance].
389    fn debug_instance(
390        &self,
391        _req: crate::model::DebugInstanceRequest,
392        _options: gax::options::RequestOptions,
393    ) -> impl std::future::Future<
394        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
395    > + Send {
396        gaxi::unimplemented::unimplemented_stub()
397    }
398
399    /// Implements [super::client::Instances::list_operations].
400    fn list_operations(
401        &self,
402        _req: longrunning::model::ListOperationsRequest,
403        _options: gax::options::RequestOptions,
404    ) -> impl std::future::Future<
405        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
406    > + Send {
407        gaxi::unimplemented::unimplemented_stub()
408    }
409
410    /// Implements [super::client::Instances::get_operation].
411    fn get_operation(
412        &self,
413        _req: longrunning::model::GetOperationRequest,
414        _options: gax::options::RequestOptions,
415    ) -> impl std::future::Future<
416        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
417    > + Send {
418        gaxi::unimplemented::unimplemented_stub()
419    }
420
421    /// Returns the polling error policy.
422    ///
423    /// When mocking, this method is typically irrelevant. Do not try to verify
424    /// it is called by your mocks.
425    fn get_polling_error_policy(
426        &self,
427        _options: &gax::options::RequestOptions,
428    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
429        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
430    }
431
432    /// Returns the polling backoff policy.
433    ///
434    /// When mocking, this method is typically irrelevant. Do not try to verify
435    /// it is called by your mocks.
436    fn get_polling_backoff_policy(
437        &self,
438        _options: &gax::options::RequestOptions,
439    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
440        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
441    }
442}
443
444/// Defines the trait used to implement [super::client::Firewall].
445///
446/// Application developers may need to implement this trait to mock
447/// `client::Firewall`.  In other use-cases, application developers only
448/// use `client::Firewall` and need not be concerned with this trait or
449/// its implementations.
450///
451/// Services gain new RPCs routinely. Consequently, this trait gains new methods
452/// too. To avoid breaking applications the trait provides a default
453/// implementation of each method. Most of these implementations just return an
454/// error.
455pub trait Firewall: std::fmt::Debug + Send + Sync {
456    /// Implements [super::client::Firewall::list_ingress_rules].
457    fn list_ingress_rules(
458        &self,
459        _req: crate::model::ListIngressRulesRequest,
460        _options: gax::options::RequestOptions,
461    ) -> impl std::future::Future<
462        Output = crate::Result<gax::response::Response<crate::model::ListIngressRulesResponse>>,
463    > + Send {
464        gaxi::unimplemented::unimplemented_stub()
465    }
466
467    /// Implements [super::client::Firewall::batch_update_ingress_rules].
468    fn batch_update_ingress_rules(
469        &self,
470        _req: crate::model::BatchUpdateIngressRulesRequest,
471        _options: gax::options::RequestOptions,
472    ) -> impl std::future::Future<
473        Output = crate::Result<
474            gax::response::Response<crate::model::BatchUpdateIngressRulesResponse>,
475        >,
476    > + Send {
477        gaxi::unimplemented::unimplemented_stub()
478    }
479
480    /// Implements [super::client::Firewall::create_ingress_rule].
481    fn create_ingress_rule(
482        &self,
483        _req: crate::model::CreateIngressRuleRequest,
484        _options: gax::options::RequestOptions,
485    ) -> impl std::future::Future<
486        Output = crate::Result<gax::response::Response<crate::model::FirewallRule>>,
487    > + Send {
488        gaxi::unimplemented::unimplemented_stub()
489    }
490
491    /// Implements [super::client::Firewall::get_ingress_rule].
492    fn get_ingress_rule(
493        &self,
494        _req: crate::model::GetIngressRuleRequest,
495        _options: gax::options::RequestOptions,
496    ) -> impl std::future::Future<
497        Output = crate::Result<gax::response::Response<crate::model::FirewallRule>>,
498    > + Send {
499        gaxi::unimplemented::unimplemented_stub()
500    }
501
502    /// Implements [super::client::Firewall::update_ingress_rule].
503    fn update_ingress_rule(
504        &self,
505        _req: crate::model::UpdateIngressRuleRequest,
506        _options: gax::options::RequestOptions,
507    ) -> impl std::future::Future<
508        Output = crate::Result<gax::response::Response<crate::model::FirewallRule>>,
509    > + Send {
510        gaxi::unimplemented::unimplemented_stub()
511    }
512
513    /// Implements [super::client::Firewall::delete_ingress_rule].
514    fn delete_ingress_rule(
515        &self,
516        _req: crate::model::DeleteIngressRuleRequest,
517        _options: gax::options::RequestOptions,
518    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
519        gaxi::unimplemented::unimplemented_stub()
520    }
521
522    /// Implements [super::client::Firewall::list_operations].
523    fn list_operations(
524        &self,
525        _req: longrunning::model::ListOperationsRequest,
526        _options: gax::options::RequestOptions,
527    ) -> impl std::future::Future<
528        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
529    > + Send {
530        gaxi::unimplemented::unimplemented_stub()
531    }
532
533    /// Implements [super::client::Firewall::get_operation].
534    fn get_operation(
535        &self,
536        _req: longrunning::model::GetOperationRequest,
537        _options: gax::options::RequestOptions,
538    ) -> impl std::future::Future<
539        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
540    > + Send {
541        gaxi::unimplemented::unimplemented_stub()
542    }
543}
544
545/// Defines the trait used to implement [super::client::AuthorizedDomains].
546///
547/// Application developers may need to implement this trait to mock
548/// `client::AuthorizedDomains`.  In other use-cases, application developers only
549/// use `client::AuthorizedDomains` and need not be concerned with this trait or
550/// its implementations.
551///
552/// Services gain new RPCs routinely. Consequently, this trait gains new methods
553/// too. To avoid breaking applications the trait provides a default
554/// implementation of each method. Most of these implementations just return an
555/// error.
556pub trait AuthorizedDomains: std::fmt::Debug + Send + Sync {
557    /// Implements [super::client::AuthorizedDomains::list_authorized_domains].
558    fn list_authorized_domains(
559        &self,
560        _req: crate::model::ListAuthorizedDomainsRequest,
561        _options: gax::options::RequestOptions,
562    ) -> impl std::future::Future<
563        Output = crate::Result<
564            gax::response::Response<crate::model::ListAuthorizedDomainsResponse>,
565        >,
566    > + Send {
567        gaxi::unimplemented::unimplemented_stub()
568    }
569
570    /// Implements [super::client::AuthorizedDomains::list_operations].
571    fn list_operations(
572        &self,
573        _req: longrunning::model::ListOperationsRequest,
574        _options: gax::options::RequestOptions,
575    ) -> impl std::future::Future<
576        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
577    > + Send {
578        gaxi::unimplemented::unimplemented_stub()
579    }
580
581    /// Implements [super::client::AuthorizedDomains::get_operation].
582    fn get_operation(
583        &self,
584        _req: longrunning::model::GetOperationRequest,
585        _options: gax::options::RequestOptions,
586    ) -> impl std::future::Future<
587        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
588    > + Send {
589        gaxi::unimplemented::unimplemented_stub()
590    }
591}
592
593/// Defines the trait used to implement [super::client::AuthorizedCertificates].
594///
595/// Application developers may need to implement this trait to mock
596/// `client::AuthorizedCertificates`.  In other use-cases, application developers only
597/// use `client::AuthorizedCertificates` and need not be concerned with this trait or
598/// its implementations.
599///
600/// Services gain new RPCs routinely. Consequently, this trait gains new methods
601/// too. To avoid breaking applications the trait provides a default
602/// implementation of each method. Most of these implementations just return an
603/// error.
604pub trait AuthorizedCertificates: std::fmt::Debug + Send + Sync {
605    /// Implements [super::client::AuthorizedCertificates::list_authorized_certificates].
606    fn list_authorized_certificates(
607        &self,
608        _req: crate::model::ListAuthorizedCertificatesRequest,
609        _options: gax::options::RequestOptions,
610    ) -> impl std::future::Future<
611        Output = crate::Result<
612            gax::response::Response<crate::model::ListAuthorizedCertificatesResponse>,
613        >,
614    > + Send {
615        gaxi::unimplemented::unimplemented_stub()
616    }
617
618    /// Implements [super::client::AuthorizedCertificates::get_authorized_certificate].
619    fn get_authorized_certificate(
620        &self,
621        _req: crate::model::GetAuthorizedCertificateRequest,
622        _options: gax::options::RequestOptions,
623    ) -> impl std::future::Future<
624        Output = crate::Result<gax::response::Response<crate::model::AuthorizedCertificate>>,
625    > + Send {
626        gaxi::unimplemented::unimplemented_stub()
627    }
628
629    /// Implements [super::client::AuthorizedCertificates::create_authorized_certificate].
630    fn create_authorized_certificate(
631        &self,
632        _req: crate::model::CreateAuthorizedCertificateRequest,
633        _options: gax::options::RequestOptions,
634    ) -> impl std::future::Future<
635        Output = crate::Result<gax::response::Response<crate::model::AuthorizedCertificate>>,
636    > + Send {
637        gaxi::unimplemented::unimplemented_stub()
638    }
639
640    /// Implements [super::client::AuthorizedCertificates::update_authorized_certificate].
641    fn update_authorized_certificate(
642        &self,
643        _req: crate::model::UpdateAuthorizedCertificateRequest,
644        _options: gax::options::RequestOptions,
645    ) -> impl std::future::Future<
646        Output = crate::Result<gax::response::Response<crate::model::AuthorizedCertificate>>,
647    > + Send {
648        gaxi::unimplemented::unimplemented_stub()
649    }
650
651    /// Implements [super::client::AuthorizedCertificates::delete_authorized_certificate].
652    fn delete_authorized_certificate(
653        &self,
654        _req: crate::model::DeleteAuthorizedCertificateRequest,
655        _options: gax::options::RequestOptions,
656    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
657        gaxi::unimplemented::unimplemented_stub()
658    }
659
660    /// Implements [super::client::AuthorizedCertificates::list_operations].
661    fn list_operations(
662        &self,
663        _req: longrunning::model::ListOperationsRequest,
664        _options: gax::options::RequestOptions,
665    ) -> impl std::future::Future<
666        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
667    > + Send {
668        gaxi::unimplemented::unimplemented_stub()
669    }
670
671    /// Implements [super::client::AuthorizedCertificates::get_operation].
672    fn get_operation(
673        &self,
674        _req: longrunning::model::GetOperationRequest,
675        _options: gax::options::RequestOptions,
676    ) -> impl std::future::Future<
677        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
678    > + Send {
679        gaxi::unimplemented::unimplemented_stub()
680    }
681}
682
683/// Defines the trait used to implement [super::client::DomainMappings].
684///
685/// Application developers may need to implement this trait to mock
686/// `client::DomainMappings`.  In other use-cases, application developers only
687/// use `client::DomainMappings` and need not be concerned with this trait or
688/// its implementations.
689///
690/// Services gain new RPCs routinely. Consequently, this trait gains new methods
691/// too. To avoid breaking applications the trait provides a default
692/// implementation of each method. Most of these implementations just return an
693/// error.
694pub trait DomainMappings: std::fmt::Debug + Send + Sync {
695    /// Implements [super::client::DomainMappings::list_domain_mappings].
696    fn list_domain_mappings(
697        &self,
698        _req: crate::model::ListDomainMappingsRequest,
699        _options: gax::options::RequestOptions,
700    ) -> impl std::future::Future<
701        Output = crate::Result<gax::response::Response<crate::model::ListDomainMappingsResponse>>,
702    > + Send {
703        gaxi::unimplemented::unimplemented_stub()
704    }
705
706    /// Implements [super::client::DomainMappings::get_domain_mapping].
707    fn get_domain_mapping(
708        &self,
709        _req: crate::model::GetDomainMappingRequest,
710        _options: gax::options::RequestOptions,
711    ) -> impl std::future::Future<
712        Output = crate::Result<gax::response::Response<crate::model::DomainMapping>>,
713    > + Send {
714        gaxi::unimplemented::unimplemented_stub()
715    }
716
717    /// Implements [super::client::DomainMappings::create_domain_mapping].
718    fn create_domain_mapping(
719        &self,
720        _req: crate::model::CreateDomainMappingRequest,
721        _options: gax::options::RequestOptions,
722    ) -> impl std::future::Future<
723        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
724    > + Send {
725        gaxi::unimplemented::unimplemented_stub()
726    }
727
728    /// Implements [super::client::DomainMappings::update_domain_mapping].
729    fn update_domain_mapping(
730        &self,
731        _req: crate::model::UpdateDomainMappingRequest,
732        _options: gax::options::RequestOptions,
733    ) -> impl std::future::Future<
734        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
735    > + Send {
736        gaxi::unimplemented::unimplemented_stub()
737    }
738
739    /// Implements [super::client::DomainMappings::delete_domain_mapping].
740    fn delete_domain_mapping(
741        &self,
742        _req: crate::model::DeleteDomainMappingRequest,
743        _options: gax::options::RequestOptions,
744    ) -> impl std::future::Future<
745        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
746    > + Send {
747        gaxi::unimplemented::unimplemented_stub()
748    }
749
750    /// Implements [super::client::DomainMappings::list_operations].
751    fn list_operations(
752        &self,
753        _req: longrunning::model::ListOperationsRequest,
754        _options: gax::options::RequestOptions,
755    ) -> impl std::future::Future<
756        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
757    > + Send {
758        gaxi::unimplemented::unimplemented_stub()
759    }
760
761    /// Implements [super::client::DomainMappings::get_operation].
762    fn get_operation(
763        &self,
764        _req: longrunning::model::GetOperationRequest,
765        _options: gax::options::RequestOptions,
766    ) -> impl std::future::Future<
767        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
768    > + Send {
769        gaxi::unimplemented::unimplemented_stub()
770    }
771
772    /// Returns the polling error policy.
773    ///
774    /// When mocking, this method is typically irrelevant. Do not try to verify
775    /// it is called by your mocks.
776    fn get_polling_error_policy(
777        &self,
778        _options: &gax::options::RequestOptions,
779    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
780        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
781    }
782
783    /// Returns the polling backoff policy.
784    ///
785    /// When mocking, this method is typically irrelevant. Do not try to verify
786    /// it is called by your mocks.
787    fn get_polling_backoff_policy(
788        &self,
789        _options: &gax::options::RequestOptions,
790    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
791        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
792    }
793}