google_cloud_sql_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
27use gax::error::Error;
28
29pub(crate) mod dynamic;
30
31/// Defines the trait used to implement [super::client::SqlBackupRunsService].
32///
33/// Application developers may need to implement this trait to mock
34/// `client::SqlBackupRunsService`.  In other use-cases, application developers only
35/// use `client::SqlBackupRunsService` and need not be concerned with this trait or
36/// its implementations.
37///
38/// Services gain new RPCs routinely. Consequently, this trait gains new methods
39/// too. To avoid breaking applications the trait provides a default
40/// implementation of each method. Most of these implementations just return an
41/// error.
42pub trait SqlBackupRunsService: std::fmt::Debug + Send + Sync {
43    /// Implements [super::client::SqlBackupRunsService::delete].
44    fn delete(
45        &self,
46        _req: crate::model::SqlBackupRunsDeleteRequest,
47        _options: gax::options::RequestOptions,
48    ) -> impl std::future::Future<
49        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
50    > + Send {
51        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
52            Error::other("unimplemented"),
53        ))
54    }
55
56    /// Implements [super::client::SqlBackupRunsService::get].
57    fn get(
58        &self,
59        _req: crate::model::SqlBackupRunsGetRequest,
60        _options: gax::options::RequestOptions,
61    ) -> impl std::future::Future<
62        Output = crate::Result<gax::response::Response<crate::model::BackupRun>>,
63    > + Send {
64        std::future::ready::<crate::Result<gax::response::Response<crate::model::BackupRun>>>(Err(
65            Error::other("unimplemented"),
66        ))
67    }
68
69    /// Implements [super::client::SqlBackupRunsService::insert].
70    fn insert(
71        &self,
72        _req: crate::model::SqlBackupRunsInsertRequest,
73        _options: gax::options::RequestOptions,
74    ) -> impl std::future::Future<
75        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
76    > + Send {
77        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
78            Error::other("unimplemented"),
79        ))
80    }
81
82    /// Implements [super::client::SqlBackupRunsService::list].
83    fn list(
84        &self,
85        _req: crate::model::SqlBackupRunsListRequest,
86        _options: gax::options::RequestOptions,
87    ) -> impl std::future::Future<
88        Output = crate::Result<gax::response::Response<crate::model::BackupRunsListResponse>>,
89    > + Send {
90        std::future::ready::<
91            crate::Result<gax::response::Response<crate::model::BackupRunsListResponse>>,
92        >(Err(Error::other("unimplemented")))
93    }
94}
95
96/// Defines the trait used to implement [super::client::SqlConnectService].
97///
98/// Application developers may need to implement this trait to mock
99/// `client::SqlConnectService`.  In other use-cases, application developers only
100/// use `client::SqlConnectService` and need not be concerned with this trait or
101/// its implementations.
102///
103/// Services gain new RPCs routinely. Consequently, this trait gains new methods
104/// too. To avoid breaking applications the trait provides a default
105/// implementation of each method. Most of these implementations just return an
106/// error.
107pub trait SqlConnectService: std::fmt::Debug + Send + Sync {
108    /// Implements [super::client::SqlConnectService::get_connect_settings].
109    fn get_connect_settings(
110        &self,
111        _req: crate::model::GetConnectSettingsRequest,
112        _options: gax::options::RequestOptions,
113    ) -> impl std::future::Future<
114        Output = crate::Result<gax::response::Response<crate::model::ConnectSettings>>,
115    > + Send {
116        std::future::ready::<crate::Result<gax::response::Response<crate::model::ConnectSettings>>>(
117            Err(Error::other("unimplemented")),
118        )
119    }
120
121    /// Implements [super::client::SqlConnectService::generate_ephemeral_cert].
122    fn generate_ephemeral_cert(
123        &self,
124        _req: crate::model::GenerateEphemeralCertRequest,
125        _options: gax::options::RequestOptions,
126    ) -> impl std::future::Future<
127        Output = crate::Result<
128            gax::response::Response<crate::model::GenerateEphemeralCertResponse>,
129        >,
130    > + Send {
131        std::future::ready::<
132            crate::Result<gax::response::Response<crate::model::GenerateEphemeralCertResponse>>,
133        >(Err(Error::other("unimplemented")))
134    }
135}
136
137/// Defines the trait used to implement [super::client::SqlDatabasesService].
138///
139/// Application developers may need to implement this trait to mock
140/// `client::SqlDatabasesService`.  In other use-cases, application developers only
141/// use `client::SqlDatabasesService` and need not be concerned with this trait or
142/// its implementations.
143///
144/// Services gain new RPCs routinely. Consequently, this trait gains new methods
145/// too. To avoid breaking applications the trait provides a default
146/// implementation of each method. Most of these implementations just return an
147/// error.
148pub trait SqlDatabasesService: std::fmt::Debug + Send + Sync {
149    /// Implements [super::client::SqlDatabasesService::delete].
150    fn delete(
151        &self,
152        _req: crate::model::SqlDatabasesDeleteRequest,
153        _options: gax::options::RequestOptions,
154    ) -> impl std::future::Future<
155        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
156    > + Send {
157        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
158            Error::other("unimplemented"),
159        ))
160    }
161
162    /// Implements [super::client::SqlDatabasesService::get].
163    fn get(
164        &self,
165        _req: crate::model::SqlDatabasesGetRequest,
166        _options: gax::options::RequestOptions,
167    ) -> impl std::future::Future<
168        Output = crate::Result<gax::response::Response<crate::model::Database>>,
169    > + Send {
170        std::future::ready::<crate::Result<gax::response::Response<crate::model::Database>>>(Err(
171            Error::other("unimplemented"),
172        ))
173    }
174
175    /// Implements [super::client::SqlDatabasesService::insert].
176    fn insert(
177        &self,
178        _req: crate::model::SqlDatabasesInsertRequest,
179        _options: gax::options::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
182    > + Send {
183        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
184            Error::other("unimplemented"),
185        ))
186    }
187
188    /// Implements [super::client::SqlDatabasesService::list].
189    fn list(
190        &self,
191        _req: crate::model::SqlDatabasesListRequest,
192        _options: gax::options::RequestOptions,
193    ) -> impl std::future::Future<
194        Output = crate::Result<gax::response::Response<crate::model::DatabasesListResponse>>,
195    > + Send {
196        std::future::ready::<
197            crate::Result<gax::response::Response<crate::model::DatabasesListResponse>>,
198        >(Err(Error::other("unimplemented")))
199    }
200
201    /// Implements [super::client::SqlDatabasesService::patch].
202    fn patch(
203        &self,
204        _req: crate::model::SqlDatabasesUpdateRequest,
205        _options: gax::options::RequestOptions,
206    ) -> impl std::future::Future<
207        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
208    > + Send {
209        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
210            Error::other("unimplemented"),
211        ))
212    }
213
214    /// Implements [super::client::SqlDatabasesService::update].
215    fn update(
216        &self,
217        _req: crate::model::SqlDatabasesUpdateRequest,
218        _options: gax::options::RequestOptions,
219    ) -> impl std::future::Future<
220        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
221    > + Send {
222        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
223            Error::other("unimplemented"),
224        ))
225    }
226}
227
228/// Defines the trait used to implement [super::client::SqlFlagsService].
229///
230/// Application developers may need to implement this trait to mock
231/// `client::SqlFlagsService`.  In other use-cases, application developers only
232/// use `client::SqlFlagsService` and need not be concerned with this trait or
233/// its implementations.
234///
235/// Services gain new RPCs routinely. Consequently, this trait gains new methods
236/// too. To avoid breaking applications the trait provides a default
237/// implementation of each method. Most of these implementations just return an
238/// error.
239pub trait SqlFlagsService: std::fmt::Debug + Send + Sync {
240    /// Implements [super::client::SqlFlagsService::list].
241    fn list(
242        &self,
243        _req: crate::model::SqlFlagsListRequest,
244        _options: gax::options::RequestOptions,
245    ) -> impl std::future::Future<
246        Output = crate::Result<gax::response::Response<crate::model::FlagsListResponse>>,
247    > + Send {
248        std::future::ready::<crate::Result<gax::response::Response<crate::model::FlagsListResponse>>>(
249            Err(Error::other("unimplemented")),
250        )
251    }
252}
253
254/// Defines the trait used to implement [super::client::SqlInstancesService].
255///
256/// Application developers may need to implement this trait to mock
257/// `client::SqlInstancesService`.  In other use-cases, application developers only
258/// use `client::SqlInstancesService` and need not be concerned with this trait or
259/// its implementations.
260///
261/// Services gain new RPCs routinely. Consequently, this trait gains new methods
262/// too. To avoid breaking applications the trait provides a default
263/// implementation of each method. Most of these implementations just return an
264/// error.
265pub trait SqlInstancesService: std::fmt::Debug + Send + Sync {
266    /// Implements [super::client::SqlInstancesService::add_server_ca].
267    fn add_server_ca(
268        &self,
269        _req: crate::model::SqlInstancesAddServerCaRequest,
270        _options: gax::options::RequestOptions,
271    ) -> impl std::future::Future<
272        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
273    > + Send {
274        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
275            Error::other("unimplemented"),
276        ))
277    }
278
279    /// Implements [super::client::SqlInstancesService::clone].
280    fn clone(
281        &self,
282        _req: crate::model::SqlInstancesCloneRequest,
283        _options: gax::options::RequestOptions,
284    ) -> impl std::future::Future<
285        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
286    > + Send {
287        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
288            Error::other("unimplemented"),
289        ))
290    }
291
292    /// Implements [super::client::SqlInstancesService::delete].
293    fn delete(
294        &self,
295        _req: crate::model::SqlInstancesDeleteRequest,
296        _options: gax::options::RequestOptions,
297    ) -> impl std::future::Future<
298        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
299    > + Send {
300        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
301            Error::other("unimplemented"),
302        ))
303    }
304
305    /// Implements [super::client::SqlInstancesService::demote_master].
306    fn demote_master(
307        &self,
308        _req: crate::model::SqlInstancesDemoteMasterRequest,
309        _options: gax::options::RequestOptions,
310    ) -> impl std::future::Future<
311        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
312    > + Send {
313        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
314            Error::other("unimplemented"),
315        ))
316    }
317
318    /// Implements [super::client::SqlInstancesService::demote].
319    fn demote(
320        &self,
321        _req: crate::model::SqlInstancesDemoteRequest,
322        _options: gax::options::RequestOptions,
323    ) -> impl std::future::Future<
324        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
325    > + Send {
326        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
327            Error::other("unimplemented"),
328        ))
329    }
330
331    /// Implements [super::client::SqlInstancesService::export].
332    fn export(
333        &self,
334        _req: crate::model::SqlInstancesExportRequest,
335        _options: gax::options::RequestOptions,
336    ) -> impl std::future::Future<
337        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
338    > + Send {
339        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
340            Error::other("unimplemented"),
341        ))
342    }
343
344    /// Implements [super::client::SqlInstancesService::failover].
345    fn failover(
346        &self,
347        _req: crate::model::SqlInstancesFailoverRequest,
348        _options: gax::options::RequestOptions,
349    ) -> impl std::future::Future<
350        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
351    > + Send {
352        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
353            Error::other("unimplemented"),
354        ))
355    }
356
357    /// Implements [super::client::SqlInstancesService::reencrypt].
358    fn reencrypt(
359        &self,
360        _req: crate::model::SqlInstancesReencryptRequest,
361        _options: gax::options::RequestOptions,
362    ) -> impl std::future::Future<
363        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
364    > + Send {
365        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
366            Error::other("unimplemented"),
367        ))
368    }
369
370    /// Implements [super::client::SqlInstancesService::get].
371    fn get(
372        &self,
373        _req: crate::model::SqlInstancesGetRequest,
374        _options: gax::options::RequestOptions,
375    ) -> impl std::future::Future<
376        Output = crate::Result<gax::response::Response<crate::model::DatabaseInstance>>,
377    > + Send {
378        std::future::ready::<crate::Result<gax::response::Response<crate::model::DatabaseInstance>>>(
379            Err(Error::other("unimplemented")),
380        )
381    }
382
383    /// Implements [super::client::SqlInstancesService::import].
384    fn import(
385        &self,
386        _req: crate::model::SqlInstancesImportRequest,
387        _options: gax::options::RequestOptions,
388    ) -> impl std::future::Future<
389        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
390    > + Send {
391        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
392            Error::other("unimplemented"),
393        ))
394    }
395
396    /// Implements [super::client::SqlInstancesService::insert].
397    fn insert(
398        &self,
399        _req: crate::model::SqlInstancesInsertRequest,
400        _options: gax::options::RequestOptions,
401    ) -> impl std::future::Future<
402        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
403    > + Send {
404        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
405            Error::other("unimplemented"),
406        ))
407    }
408
409    /// Implements [super::client::SqlInstancesService::list].
410    fn list(
411        &self,
412        _req: crate::model::SqlInstancesListRequest,
413        _options: gax::options::RequestOptions,
414    ) -> impl std::future::Future<
415        Output = crate::Result<gax::response::Response<crate::model::InstancesListResponse>>,
416    > + Send {
417        std::future::ready::<
418            crate::Result<gax::response::Response<crate::model::InstancesListResponse>>,
419        >(Err(Error::other("unimplemented")))
420    }
421
422    /// Implements [super::client::SqlInstancesService::list_server_cas].
423    fn list_server_cas(
424        &self,
425        _req: crate::model::SqlInstancesListServerCasRequest,
426        _options: gax::options::RequestOptions,
427    ) -> impl std::future::Future<
428        Output = crate::Result<
429            gax::response::Response<crate::model::InstancesListServerCasResponse>,
430        >,
431    > + Send {
432        std::future::ready::<
433            crate::Result<gax::response::Response<crate::model::InstancesListServerCasResponse>>,
434        >(Err(Error::other("unimplemented")))
435    }
436
437    /// Implements [super::client::SqlInstancesService::patch].
438    fn patch(
439        &self,
440        _req: crate::model::SqlInstancesPatchRequest,
441        _options: gax::options::RequestOptions,
442    ) -> impl std::future::Future<
443        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
444    > + Send {
445        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
446            Error::other("unimplemented"),
447        ))
448    }
449
450    /// Implements [super::client::SqlInstancesService::promote_replica].
451    fn promote_replica(
452        &self,
453        _req: crate::model::SqlInstancesPromoteReplicaRequest,
454        _options: gax::options::RequestOptions,
455    ) -> impl std::future::Future<
456        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
457    > + Send {
458        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
459            Error::other("unimplemented"),
460        ))
461    }
462
463    /// Implements [super::client::SqlInstancesService::switchover].
464    fn switchover(
465        &self,
466        _req: crate::model::SqlInstancesSwitchoverRequest,
467        _options: gax::options::RequestOptions,
468    ) -> impl std::future::Future<
469        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
470    > + Send {
471        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
472            Error::other("unimplemented"),
473        ))
474    }
475
476    /// Implements [super::client::SqlInstancesService::reset_ssl_config].
477    fn reset_ssl_config(
478        &self,
479        _req: crate::model::SqlInstancesResetSslConfigRequest,
480        _options: gax::options::RequestOptions,
481    ) -> impl std::future::Future<
482        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
483    > + Send {
484        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
485            Error::other("unimplemented"),
486        ))
487    }
488
489    /// Implements [super::client::SqlInstancesService::restart].
490    fn restart(
491        &self,
492        _req: crate::model::SqlInstancesRestartRequest,
493        _options: gax::options::RequestOptions,
494    ) -> impl std::future::Future<
495        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
496    > + Send {
497        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
498            Error::other("unimplemented"),
499        ))
500    }
501
502    /// Implements [super::client::SqlInstancesService::restore_backup].
503    fn restore_backup(
504        &self,
505        _req: crate::model::SqlInstancesRestoreBackupRequest,
506        _options: gax::options::RequestOptions,
507    ) -> impl std::future::Future<
508        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
509    > + Send {
510        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
511            Error::other("unimplemented"),
512        ))
513    }
514
515    /// Implements [super::client::SqlInstancesService::rotate_server_ca].
516    fn rotate_server_ca(
517        &self,
518        _req: crate::model::SqlInstancesRotateServerCaRequest,
519        _options: gax::options::RequestOptions,
520    ) -> impl std::future::Future<
521        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
522    > + Send {
523        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
524            Error::other("unimplemented"),
525        ))
526    }
527
528    /// Implements [super::client::SqlInstancesService::start_replica].
529    fn start_replica(
530        &self,
531        _req: crate::model::SqlInstancesStartReplicaRequest,
532        _options: gax::options::RequestOptions,
533    ) -> impl std::future::Future<
534        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
535    > + Send {
536        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
537            Error::other("unimplemented"),
538        ))
539    }
540
541    /// Implements [super::client::SqlInstancesService::stop_replica].
542    fn stop_replica(
543        &self,
544        _req: crate::model::SqlInstancesStopReplicaRequest,
545        _options: gax::options::RequestOptions,
546    ) -> impl std::future::Future<
547        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
548    > + Send {
549        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
550            Error::other("unimplemented"),
551        ))
552    }
553
554    /// Implements [super::client::SqlInstancesService::truncate_log].
555    fn truncate_log(
556        &self,
557        _req: crate::model::SqlInstancesTruncateLogRequest,
558        _options: gax::options::RequestOptions,
559    ) -> impl std::future::Future<
560        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
561    > + Send {
562        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
563            Error::other("unimplemented"),
564        ))
565    }
566
567    /// Implements [super::client::SqlInstancesService::update].
568    fn update(
569        &self,
570        _req: crate::model::SqlInstancesUpdateRequest,
571        _options: gax::options::RequestOptions,
572    ) -> impl std::future::Future<
573        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
574    > + Send {
575        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
576            Error::other("unimplemented"),
577        ))
578    }
579
580    /// Implements [super::client::SqlInstancesService::create_ephemeral].
581    fn create_ephemeral(
582        &self,
583        _req: crate::model::SqlInstancesCreateEphemeralCertRequest,
584        _options: gax::options::RequestOptions,
585    ) -> impl std::future::Future<
586        Output = crate::Result<gax::response::Response<crate::model::SslCert>>,
587    > + Send {
588        std::future::ready::<crate::Result<gax::response::Response<crate::model::SslCert>>>(Err(
589            Error::other("unimplemented"),
590        ))
591    }
592
593    /// Implements [super::client::SqlInstancesService::reschedule_maintenance].
594    fn reschedule_maintenance(
595        &self,
596        _req: crate::model::SqlInstancesRescheduleMaintenanceRequest,
597        _options: gax::options::RequestOptions,
598    ) -> impl std::future::Future<
599        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
600    > + Send {
601        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
602            Error::other("unimplemented"),
603        ))
604    }
605
606    /// Implements [super::client::SqlInstancesService::verify_external_sync_settings].
607    fn verify_external_sync_settings(
608        &self,
609        _req: crate::model::SqlInstancesVerifyExternalSyncSettingsRequest,
610        _options: gax::options::RequestOptions,
611    ) -> impl std::future::Future<
612        Output = crate::Result<
613            gax::response::Response<crate::model::SqlInstancesVerifyExternalSyncSettingsResponse>,
614        >,
615    > + Send {
616        std::future::ready::<
617            crate::Result<
618                gax::response::Response<
619                    crate::model::SqlInstancesVerifyExternalSyncSettingsResponse,
620                >,
621            >,
622        >(Err(Error::other("unimplemented")))
623    }
624
625    /// Implements [super::client::SqlInstancesService::start_external_sync].
626    fn start_external_sync(
627        &self,
628        _req: crate::model::SqlInstancesStartExternalSyncRequest,
629        _options: gax::options::RequestOptions,
630    ) -> impl std::future::Future<
631        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
632    > + Send {
633        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
634            Error::other("unimplemented"),
635        ))
636    }
637
638    /// Implements [super::client::SqlInstancesService::perform_disk_shrink].
639    fn perform_disk_shrink(
640        &self,
641        _req: crate::model::SqlInstancesPerformDiskShrinkRequest,
642        _options: gax::options::RequestOptions,
643    ) -> impl std::future::Future<
644        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
645    > + Send {
646        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
647            Error::other("unimplemented"),
648        ))
649    }
650
651    /// Implements [super::client::SqlInstancesService::get_disk_shrink_config].
652    fn get_disk_shrink_config(
653        &self,
654        _req: crate::model::SqlInstancesGetDiskShrinkConfigRequest,
655        _options: gax::options::RequestOptions,
656    ) -> impl std::future::Future<
657        Output = crate::Result<
658            gax::response::Response<crate::model::SqlInstancesGetDiskShrinkConfigResponse>,
659        >,
660    > + Send {
661        std::future::ready::<
662            crate::Result<
663                gax::response::Response<crate::model::SqlInstancesGetDiskShrinkConfigResponse>,
664            >,
665        >(Err(Error::other("unimplemented")))
666    }
667
668    /// Implements [super::client::SqlInstancesService::reset_replica_size].
669    fn reset_replica_size(
670        &self,
671        _req: crate::model::SqlInstancesResetReplicaSizeRequest,
672        _options: gax::options::RequestOptions,
673    ) -> impl std::future::Future<
674        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
675    > + Send {
676        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
677            Error::other("unimplemented"),
678        ))
679    }
680
681    /// Implements [super::client::SqlInstancesService::get_latest_recovery_time].
682    fn get_latest_recovery_time(
683        &self,
684        _req: crate::model::SqlInstancesGetLatestRecoveryTimeRequest,
685        _options: gax::options::RequestOptions,
686    ) -> impl std::future::Future<
687        Output = crate::Result<
688            gax::response::Response<crate::model::SqlInstancesGetLatestRecoveryTimeResponse>,
689        >,
690    > + Send {
691        std::future::ready::<
692            crate::Result<
693                gax::response::Response<crate::model::SqlInstancesGetLatestRecoveryTimeResponse>,
694            >,
695        >(Err(Error::other("unimplemented")))
696    }
697
698    /// Implements [super::client::SqlInstancesService::acquire_ssrs_lease].
699    fn acquire_ssrs_lease(
700        &self,
701        _req: crate::model::SqlInstancesAcquireSsrsLeaseRequest,
702        _options: gax::options::RequestOptions,
703    ) -> impl std::future::Future<
704        Output = crate::Result<
705            gax::response::Response<crate::model::SqlInstancesAcquireSsrsLeaseResponse>,
706        >,
707    > + Send {
708        std::future::ready::<
709            crate::Result<
710                gax::response::Response<crate::model::SqlInstancesAcquireSsrsLeaseResponse>,
711            >,
712        >(Err(Error::other("unimplemented")))
713    }
714
715    /// Implements [super::client::SqlInstancesService::release_ssrs_lease].
716    fn release_ssrs_lease(
717        &self,
718        _req: crate::model::SqlInstancesReleaseSsrsLeaseRequest,
719        _options: gax::options::RequestOptions,
720    ) -> impl std::future::Future<
721        Output = crate::Result<
722            gax::response::Response<crate::model::SqlInstancesReleaseSsrsLeaseResponse>,
723        >,
724    > + Send {
725        std::future::ready::<
726            crate::Result<
727                gax::response::Response<crate::model::SqlInstancesReleaseSsrsLeaseResponse>,
728            >,
729        >(Err(Error::other("unimplemented")))
730    }
731}
732
733/// Defines the trait used to implement [super::client::SqlOperationsService].
734///
735/// Application developers may need to implement this trait to mock
736/// `client::SqlOperationsService`.  In other use-cases, application developers only
737/// use `client::SqlOperationsService` and need not be concerned with this trait or
738/// its implementations.
739///
740/// Services gain new RPCs routinely. Consequently, this trait gains new methods
741/// too. To avoid breaking applications the trait provides a default
742/// implementation of each method. Most of these implementations just return an
743/// error.
744pub trait SqlOperationsService: std::fmt::Debug + Send + Sync {
745    /// Implements [super::client::SqlOperationsService::get].
746    fn get(
747        &self,
748        _req: crate::model::SqlOperationsGetRequest,
749        _options: gax::options::RequestOptions,
750    ) -> impl std::future::Future<
751        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
752    > + Send {
753        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
754            Error::other("unimplemented"),
755        ))
756    }
757
758    /// Implements [super::client::SqlOperationsService::list].
759    fn list(
760        &self,
761        _req: crate::model::SqlOperationsListRequest,
762        _options: gax::options::RequestOptions,
763    ) -> impl std::future::Future<
764        Output = crate::Result<gax::response::Response<crate::model::OperationsListResponse>>,
765    > + Send {
766        std::future::ready::<
767            crate::Result<gax::response::Response<crate::model::OperationsListResponse>>,
768        >(Err(Error::other("unimplemented")))
769    }
770
771    /// Implements [super::client::SqlOperationsService::cancel].
772    fn cancel(
773        &self,
774        _req: crate::model::SqlOperationsCancelRequest,
775        _options: gax::options::RequestOptions,
776    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
777        std::future::ready::<crate::Result<gax::response::Response<()>>>(Err(Error::other(
778            "unimplemented",
779        )))
780    }
781}
782
783/// Defines the trait used to implement [super::client::SqlSslCertsService].
784///
785/// Application developers may need to implement this trait to mock
786/// `client::SqlSslCertsService`.  In other use-cases, application developers only
787/// use `client::SqlSslCertsService` and need not be concerned with this trait or
788/// its implementations.
789///
790/// Services gain new RPCs routinely. Consequently, this trait gains new methods
791/// too. To avoid breaking applications the trait provides a default
792/// implementation of each method. Most of these implementations just return an
793/// error.
794pub trait SqlSslCertsService: std::fmt::Debug + Send + Sync {
795    /// Implements [super::client::SqlSslCertsService::delete].
796    fn delete(
797        &self,
798        _req: crate::model::SqlSslCertsDeleteRequest,
799        _options: gax::options::RequestOptions,
800    ) -> impl std::future::Future<
801        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
802    > + Send {
803        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
804            Error::other("unimplemented"),
805        ))
806    }
807
808    /// Implements [super::client::SqlSslCertsService::get].
809    fn get(
810        &self,
811        _req: crate::model::SqlSslCertsGetRequest,
812        _options: gax::options::RequestOptions,
813    ) -> impl std::future::Future<
814        Output = crate::Result<gax::response::Response<crate::model::SslCert>>,
815    > + Send {
816        std::future::ready::<crate::Result<gax::response::Response<crate::model::SslCert>>>(Err(
817            Error::other("unimplemented"),
818        ))
819    }
820
821    /// Implements [super::client::SqlSslCertsService::insert].
822    fn insert(
823        &self,
824        _req: crate::model::SqlSslCertsInsertRequest,
825        _options: gax::options::RequestOptions,
826    ) -> impl std::future::Future<
827        Output = crate::Result<gax::response::Response<crate::model::SslCertsInsertResponse>>,
828    > + Send {
829        std::future::ready::<
830            crate::Result<gax::response::Response<crate::model::SslCertsInsertResponse>>,
831        >(Err(Error::other("unimplemented")))
832    }
833
834    /// Implements [super::client::SqlSslCertsService::list].
835    fn list(
836        &self,
837        _req: crate::model::SqlSslCertsListRequest,
838        _options: gax::options::RequestOptions,
839    ) -> impl std::future::Future<
840        Output = crate::Result<gax::response::Response<crate::model::SslCertsListResponse>>,
841    > + Send {
842        std::future::ready::<
843            crate::Result<gax::response::Response<crate::model::SslCertsListResponse>>,
844        >(Err(Error::other("unimplemented")))
845    }
846}
847
848/// Defines the trait used to implement [super::client::SqlTiersService].
849///
850/// Application developers may need to implement this trait to mock
851/// `client::SqlTiersService`.  In other use-cases, application developers only
852/// use `client::SqlTiersService` and need not be concerned with this trait or
853/// its implementations.
854///
855/// Services gain new RPCs routinely. Consequently, this trait gains new methods
856/// too. To avoid breaking applications the trait provides a default
857/// implementation of each method. Most of these implementations just return an
858/// error.
859pub trait SqlTiersService: std::fmt::Debug + Send + Sync {
860    /// Implements [super::client::SqlTiersService::list].
861    fn list(
862        &self,
863        _req: crate::model::SqlTiersListRequest,
864        _options: gax::options::RequestOptions,
865    ) -> impl std::future::Future<
866        Output = crate::Result<gax::response::Response<crate::model::TiersListResponse>>,
867    > + Send {
868        std::future::ready::<crate::Result<gax::response::Response<crate::model::TiersListResponse>>>(
869            Err(Error::other("unimplemented")),
870        )
871    }
872}
873
874/// Defines the trait used to implement [super::client::SqlUsersService].
875///
876/// Application developers may need to implement this trait to mock
877/// `client::SqlUsersService`.  In other use-cases, application developers only
878/// use `client::SqlUsersService` and need not be concerned with this trait or
879/// its implementations.
880///
881/// Services gain new RPCs routinely. Consequently, this trait gains new methods
882/// too. To avoid breaking applications the trait provides a default
883/// implementation of each method. Most of these implementations just return an
884/// error.
885pub trait SqlUsersService: std::fmt::Debug + Send + Sync {
886    /// Implements [super::client::SqlUsersService::delete].
887    fn delete(
888        &self,
889        _req: crate::model::SqlUsersDeleteRequest,
890        _options: gax::options::RequestOptions,
891    ) -> impl std::future::Future<
892        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
893    > + Send {
894        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
895            Error::other("unimplemented"),
896        ))
897    }
898
899    /// Implements [super::client::SqlUsersService::get].
900    fn get(
901        &self,
902        _req: crate::model::SqlUsersGetRequest,
903        _options: gax::options::RequestOptions,
904    ) -> impl std::future::Future<
905        Output = crate::Result<gax::response::Response<crate::model::User>>,
906    > + Send {
907        std::future::ready::<crate::Result<gax::response::Response<crate::model::User>>>(Err(
908            Error::other("unimplemented"),
909        ))
910    }
911
912    /// Implements [super::client::SqlUsersService::insert].
913    fn insert(
914        &self,
915        _req: crate::model::SqlUsersInsertRequest,
916        _options: gax::options::RequestOptions,
917    ) -> impl std::future::Future<
918        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
919    > + Send {
920        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
921            Error::other("unimplemented"),
922        ))
923    }
924
925    /// Implements [super::client::SqlUsersService::list].
926    fn list(
927        &self,
928        _req: crate::model::SqlUsersListRequest,
929        _options: gax::options::RequestOptions,
930    ) -> impl std::future::Future<
931        Output = crate::Result<gax::response::Response<crate::model::UsersListResponse>>,
932    > + Send {
933        std::future::ready::<crate::Result<gax::response::Response<crate::model::UsersListResponse>>>(
934            Err(Error::other("unimplemented")),
935        )
936    }
937
938    /// Implements [super::client::SqlUsersService::update].
939    fn update(
940        &self,
941        _req: crate::model::SqlUsersUpdateRequest,
942        _options: gax::options::RequestOptions,
943    ) -> impl std::future::Future<
944        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
945    > + Send {
946        std::future::ready::<crate::Result<gax::response::Response<crate::model::Operation>>>(Err(
947            Error::other("unimplemented"),
948        ))
949    }
950}