Skip to main content

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