google_cloud_oracledatabase_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::OracleDatabase].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::OracleDatabase`.  In other use-cases, application developers only
33/// use `client::OracleDatabase` 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 OracleDatabase: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::OracleDatabase::list_cloud_exadata_infrastructures].
42    fn list_cloud_exadata_infrastructures(
43        &self,
44        _req: crate::model::ListCloudExadataInfrastructuresRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<
48            gax::response::Response<crate::model::ListCloudExadataInfrastructuresResponse>,
49        >,
50    > + Send {
51        gaxi::unimplemented::unimplemented_stub()
52    }
53
54    /// Implements [super::client::OracleDatabase::get_cloud_exadata_infrastructure].
55    fn get_cloud_exadata_infrastructure(
56        &self,
57        _req: crate::model::GetCloudExadataInfrastructureRequest,
58        _options: gax::options::RequestOptions,
59    ) -> impl std::future::Future<
60        Output = crate::Result<gax::response::Response<crate::model::CloudExadataInfrastructure>>,
61    > + Send {
62        gaxi::unimplemented::unimplemented_stub()
63    }
64
65    /// Implements [super::client::OracleDatabase::create_cloud_exadata_infrastructure].
66    fn create_cloud_exadata_infrastructure(
67        &self,
68        _req: crate::model::CreateCloudExadataInfrastructureRequest,
69        _options: gax::options::RequestOptions,
70    ) -> impl std::future::Future<
71        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
72    > + Send {
73        gaxi::unimplemented::unimplemented_stub()
74    }
75
76    /// Implements [super::client::OracleDatabase::delete_cloud_exadata_infrastructure].
77    fn delete_cloud_exadata_infrastructure(
78        &self,
79        _req: crate::model::DeleteCloudExadataInfrastructureRequest,
80        _options: gax::options::RequestOptions,
81    ) -> impl std::future::Future<
82        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
83    > + Send {
84        gaxi::unimplemented::unimplemented_stub()
85    }
86
87    /// Implements [super::client::OracleDatabase::list_cloud_vm_clusters].
88    fn list_cloud_vm_clusters(
89        &self,
90        _req: crate::model::ListCloudVmClustersRequest,
91        _options: gax::options::RequestOptions,
92    ) -> impl std::future::Future<
93        Output = crate::Result<gax::response::Response<crate::model::ListCloudVmClustersResponse>>,
94    > + Send {
95        gaxi::unimplemented::unimplemented_stub()
96    }
97
98    /// Implements [super::client::OracleDatabase::get_cloud_vm_cluster].
99    fn get_cloud_vm_cluster(
100        &self,
101        _req: crate::model::GetCloudVmClusterRequest,
102        _options: gax::options::RequestOptions,
103    ) -> impl std::future::Future<
104        Output = crate::Result<gax::response::Response<crate::model::CloudVmCluster>>,
105    > + Send {
106        gaxi::unimplemented::unimplemented_stub()
107    }
108
109    /// Implements [super::client::OracleDatabase::create_cloud_vm_cluster].
110    fn create_cloud_vm_cluster(
111        &self,
112        _req: crate::model::CreateCloudVmClusterRequest,
113        _options: gax::options::RequestOptions,
114    ) -> impl std::future::Future<
115        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
116    > + Send {
117        gaxi::unimplemented::unimplemented_stub()
118    }
119
120    /// Implements [super::client::OracleDatabase::delete_cloud_vm_cluster].
121    fn delete_cloud_vm_cluster(
122        &self,
123        _req: crate::model::DeleteCloudVmClusterRequest,
124        _options: gax::options::RequestOptions,
125    ) -> impl std::future::Future<
126        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::OracleDatabase::list_entitlements].
132    fn list_entitlements(
133        &self,
134        _req: crate::model::ListEntitlementsRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<crate::model::ListEntitlementsResponse>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::OracleDatabase::list_db_servers].
143    fn list_db_servers(
144        &self,
145        _req: crate::model::ListDbServersRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<gax::response::Response<crate::model::ListDbServersResponse>>,
149    > + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::OracleDatabase::list_db_nodes].
154    fn list_db_nodes(
155        &self,
156        _req: crate::model::ListDbNodesRequest,
157        _options: gax::options::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<gax::response::Response<crate::model::ListDbNodesResponse>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::OracleDatabase::list_gi_versions].
165    fn list_gi_versions(
166        &self,
167        _req: crate::model::ListGiVersionsRequest,
168        _options: gax::options::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<gax::response::Response<crate::model::ListGiVersionsResponse>>,
171    > + Send {
172        gaxi::unimplemented::unimplemented_stub()
173    }
174
175    /// Implements [super::client::OracleDatabase::list_db_system_shapes].
176    fn list_db_system_shapes(
177        &self,
178        _req: crate::model::ListDbSystemShapesRequest,
179        _options: gax::options::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<gax::response::Response<crate::model::ListDbSystemShapesResponse>>,
182    > + Send {
183        gaxi::unimplemented::unimplemented_stub()
184    }
185
186    /// Implements [super::client::OracleDatabase::list_autonomous_databases].
187    fn list_autonomous_databases(
188        &self,
189        _req: crate::model::ListAutonomousDatabasesRequest,
190        _options: gax::options::RequestOptions,
191    ) -> impl std::future::Future<
192        Output = crate::Result<
193            gax::response::Response<crate::model::ListAutonomousDatabasesResponse>,
194        >,
195    > + Send {
196        gaxi::unimplemented::unimplemented_stub()
197    }
198
199    /// Implements [super::client::OracleDatabase::get_autonomous_database].
200    fn get_autonomous_database(
201        &self,
202        _req: crate::model::GetAutonomousDatabaseRequest,
203        _options: gax::options::RequestOptions,
204    ) -> impl std::future::Future<
205        Output = crate::Result<gax::response::Response<crate::model::AutonomousDatabase>>,
206    > + Send {
207        gaxi::unimplemented::unimplemented_stub()
208    }
209
210    /// Implements [super::client::OracleDatabase::create_autonomous_database].
211    fn create_autonomous_database(
212        &self,
213        _req: crate::model::CreateAutonomousDatabaseRequest,
214        _options: gax::options::RequestOptions,
215    ) -> impl std::future::Future<
216        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
217    > + Send {
218        gaxi::unimplemented::unimplemented_stub()
219    }
220
221    /// Implements [super::client::OracleDatabase::delete_autonomous_database].
222    fn delete_autonomous_database(
223        &self,
224        _req: crate::model::DeleteAutonomousDatabaseRequest,
225        _options: gax::options::RequestOptions,
226    ) -> impl std::future::Future<
227        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
228    > + Send {
229        gaxi::unimplemented::unimplemented_stub()
230    }
231
232    /// Implements [super::client::OracleDatabase::restore_autonomous_database].
233    fn restore_autonomous_database(
234        &self,
235        _req: crate::model::RestoreAutonomousDatabaseRequest,
236        _options: gax::options::RequestOptions,
237    ) -> impl std::future::Future<
238        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
239    > + Send {
240        gaxi::unimplemented::unimplemented_stub()
241    }
242
243    /// Implements [super::client::OracleDatabase::generate_autonomous_database_wallet].
244    fn generate_autonomous_database_wallet(
245        &self,
246        _req: crate::model::GenerateAutonomousDatabaseWalletRequest,
247        _options: gax::options::RequestOptions,
248    ) -> impl std::future::Future<
249        Output = crate::Result<
250            gax::response::Response<crate::model::GenerateAutonomousDatabaseWalletResponse>,
251        >,
252    > + Send {
253        gaxi::unimplemented::unimplemented_stub()
254    }
255
256    /// Implements [super::client::OracleDatabase::list_autonomous_db_versions].
257    fn list_autonomous_db_versions(
258        &self,
259        _req: crate::model::ListAutonomousDbVersionsRequest,
260        _options: gax::options::RequestOptions,
261    ) -> impl std::future::Future<
262        Output = crate::Result<
263            gax::response::Response<crate::model::ListAutonomousDbVersionsResponse>,
264        >,
265    > + Send {
266        gaxi::unimplemented::unimplemented_stub()
267    }
268
269    /// Implements [super::client::OracleDatabase::list_autonomous_database_character_sets].
270    fn list_autonomous_database_character_sets(
271        &self,
272        _req: crate::model::ListAutonomousDatabaseCharacterSetsRequest,
273        _options: gax::options::RequestOptions,
274    ) -> impl std::future::Future<
275        Output = crate::Result<
276            gax::response::Response<crate::model::ListAutonomousDatabaseCharacterSetsResponse>,
277        >,
278    > + Send {
279        gaxi::unimplemented::unimplemented_stub()
280    }
281
282    /// Implements [super::client::OracleDatabase::list_autonomous_database_backups].
283    fn list_autonomous_database_backups(
284        &self,
285        _req: crate::model::ListAutonomousDatabaseBackupsRequest,
286        _options: gax::options::RequestOptions,
287    ) -> impl std::future::Future<
288        Output = crate::Result<
289            gax::response::Response<crate::model::ListAutonomousDatabaseBackupsResponse>,
290        >,
291    > + Send {
292        gaxi::unimplemented::unimplemented_stub()
293    }
294
295    /// Implements [super::client::OracleDatabase::stop_autonomous_database].
296    fn stop_autonomous_database(
297        &self,
298        _req: crate::model::StopAutonomousDatabaseRequest,
299        _options: gax::options::RequestOptions,
300    ) -> impl std::future::Future<
301        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
302    > + Send {
303        gaxi::unimplemented::unimplemented_stub()
304    }
305
306    /// Implements [super::client::OracleDatabase::start_autonomous_database].
307    fn start_autonomous_database(
308        &self,
309        _req: crate::model::StartAutonomousDatabaseRequest,
310        _options: gax::options::RequestOptions,
311    ) -> impl std::future::Future<
312        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
313    > + Send {
314        gaxi::unimplemented::unimplemented_stub()
315    }
316
317    /// Implements [super::client::OracleDatabase::restart_autonomous_database].
318    fn restart_autonomous_database(
319        &self,
320        _req: crate::model::RestartAutonomousDatabaseRequest,
321        _options: gax::options::RequestOptions,
322    ) -> impl std::future::Future<
323        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
324    > + Send {
325        gaxi::unimplemented::unimplemented_stub()
326    }
327
328    /// Implements [super::client::OracleDatabase::list_locations].
329    fn list_locations(
330        &self,
331        _req: location::model::ListLocationsRequest,
332        _options: gax::options::RequestOptions,
333    ) -> impl std::future::Future<
334        Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
335    > + Send {
336        gaxi::unimplemented::unimplemented_stub()
337    }
338
339    /// Implements [super::client::OracleDatabase::get_location].
340    fn get_location(
341        &self,
342        _req: location::model::GetLocationRequest,
343        _options: gax::options::RequestOptions,
344    ) -> impl std::future::Future<
345        Output = crate::Result<gax::response::Response<location::model::Location>>,
346    > + Send {
347        gaxi::unimplemented::unimplemented_stub()
348    }
349
350    /// Implements [super::client::OracleDatabase::list_operations].
351    fn list_operations(
352        &self,
353        _req: longrunning::model::ListOperationsRequest,
354        _options: gax::options::RequestOptions,
355    ) -> impl std::future::Future<
356        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
357    > + Send {
358        gaxi::unimplemented::unimplemented_stub()
359    }
360
361    /// Implements [super::client::OracleDatabase::get_operation].
362    fn get_operation(
363        &self,
364        _req: longrunning::model::GetOperationRequest,
365        _options: gax::options::RequestOptions,
366    ) -> impl std::future::Future<
367        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
368    > + Send {
369        gaxi::unimplemented::unimplemented_stub()
370    }
371
372    /// Implements [super::client::OracleDatabase::delete_operation].
373    fn delete_operation(
374        &self,
375        _req: longrunning::model::DeleteOperationRequest,
376        _options: gax::options::RequestOptions,
377    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
378        gaxi::unimplemented::unimplemented_stub()
379    }
380
381    /// Implements [super::client::OracleDatabase::cancel_operation].
382    fn cancel_operation(
383        &self,
384        _req: longrunning::model::CancelOperationRequest,
385        _options: gax::options::RequestOptions,
386    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
387        gaxi::unimplemented::unimplemented_stub()
388    }
389
390    /// Returns the polling error policy.
391    ///
392    /// When mocking, this method is typically irrelevant. Do not try to verify
393    /// it is called by your mocks.
394    fn get_polling_error_policy(
395        &self,
396        _options: &gax::options::RequestOptions,
397    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
398        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
399    }
400
401    /// Returns the polling backoff policy.
402    ///
403    /// When mocking, this method is typically irrelevant. Do not try to verify
404    /// it is called by your mocks.
405    fn get_polling_backoff_policy(
406        &self,
407        _options: &gax::options::RequestOptions,
408    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
409        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
410    }
411}