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