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