Skip to main content

google_cloud_baremetalsolution_v2/
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::BareMetalSolution].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::BareMetalSolution`.  In other use-cases, application developers only
33/// use `client::BareMetalSolution` 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 BareMetalSolution: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::BareMetalSolution::list_instances].
42    fn list_instances(
43        &self,
44        _req: crate::model::ListInstancesRequest,
45        _options: crate::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<crate::Response<crate::model::ListInstancesResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::BareMetalSolution::get_instance].
53    fn get_instance(
54        &self,
55        _req: crate::model::GetInstanceRequest,
56        _options: crate::RequestOptions,
57    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Instance>>> + Send
58    {
59        gaxi::unimplemented::unimplemented_stub()
60    }
61
62    /// Implements [super::client::BareMetalSolution::update_instance].
63    fn update_instance(
64        &self,
65        _req: crate::model::UpdateInstanceRequest,
66        _options: crate::RequestOptions,
67    ) -> impl std::future::Future<
68        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
69    > + Send {
70        gaxi::unimplemented::unimplemented_stub()
71    }
72
73    /// Implements [super::client::BareMetalSolution::rename_instance].
74    fn rename_instance(
75        &self,
76        _req: crate::model::RenameInstanceRequest,
77        _options: crate::RequestOptions,
78    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Instance>>> + Send
79    {
80        gaxi::unimplemented::unimplemented_stub()
81    }
82
83    /// Implements [super::client::BareMetalSolution::reset_instance].
84    fn reset_instance(
85        &self,
86        _req: crate::model::ResetInstanceRequest,
87        _options: crate::RequestOptions,
88    ) -> impl std::future::Future<
89        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
90    > + Send {
91        gaxi::unimplemented::unimplemented_stub()
92    }
93
94    /// Implements [super::client::BareMetalSolution::start_instance].
95    fn start_instance(
96        &self,
97        _req: crate::model::StartInstanceRequest,
98        _options: crate::RequestOptions,
99    ) -> impl std::future::Future<
100        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
101    > + Send {
102        gaxi::unimplemented::unimplemented_stub()
103    }
104
105    /// Implements [super::client::BareMetalSolution::stop_instance].
106    fn stop_instance(
107        &self,
108        _req: crate::model::StopInstanceRequest,
109        _options: crate::RequestOptions,
110    ) -> impl std::future::Future<
111        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
112    > + Send {
113        gaxi::unimplemented::unimplemented_stub()
114    }
115
116    /// Implements [super::client::BareMetalSolution::enable_interactive_serial_console].
117    fn enable_interactive_serial_console(
118        &self,
119        _req: crate::model::EnableInteractiveSerialConsoleRequest,
120        _options: crate::RequestOptions,
121    ) -> impl std::future::Future<
122        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
123    > + Send {
124        gaxi::unimplemented::unimplemented_stub()
125    }
126
127    /// Implements [super::client::BareMetalSolution::disable_interactive_serial_console].
128    fn disable_interactive_serial_console(
129        &self,
130        _req: crate::model::DisableInteractiveSerialConsoleRequest,
131        _options: crate::RequestOptions,
132    ) -> impl std::future::Future<
133        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
134    > + Send {
135        gaxi::unimplemented::unimplemented_stub()
136    }
137
138    /// Implements [super::client::BareMetalSolution::detach_lun].
139    fn detach_lun(
140        &self,
141        _req: crate::model::DetachLunRequest,
142        _options: crate::RequestOptions,
143    ) -> impl std::future::Future<
144        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
145    > + Send {
146        gaxi::unimplemented::unimplemented_stub()
147    }
148
149    /// Implements [super::client::BareMetalSolution::list_ssh_keys].
150    fn list_ssh_keys(
151        &self,
152        _req: crate::model::ListSSHKeysRequest,
153        _options: crate::RequestOptions,
154    ) -> impl std::future::Future<
155        Output = crate::Result<crate::Response<crate::model::ListSSHKeysResponse>>,
156    > + Send {
157        gaxi::unimplemented::unimplemented_stub()
158    }
159
160    /// Implements [super::client::BareMetalSolution::create_ssh_key].
161    fn create_ssh_key(
162        &self,
163        _req: crate::model::CreateSSHKeyRequest,
164        _options: crate::RequestOptions,
165    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::SSHKey>>> + Send
166    {
167        gaxi::unimplemented::unimplemented_stub()
168    }
169
170    /// Implements [super::client::BareMetalSolution::delete_ssh_key].
171    fn delete_ssh_key(
172        &self,
173        _req: crate::model::DeleteSSHKeyRequest,
174        _options: crate::RequestOptions,
175    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
176        gaxi::unimplemented::unimplemented_stub()
177    }
178
179    /// Implements [super::client::BareMetalSolution::list_volumes].
180    fn list_volumes(
181        &self,
182        _req: crate::model::ListVolumesRequest,
183        _options: crate::RequestOptions,
184    ) -> impl std::future::Future<
185        Output = crate::Result<crate::Response<crate::model::ListVolumesResponse>>,
186    > + Send {
187        gaxi::unimplemented::unimplemented_stub()
188    }
189
190    /// Implements [super::client::BareMetalSolution::get_volume].
191    fn get_volume(
192        &self,
193        _req: crate::model::GetVolumeRequest,
194        _options: crate::RequestOptions,
195    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Volume>>> + Send
196    {
197        gaxi::unimplemented::unimplemented_stub()
198    }
199
200    /// Implements [super::client::BareMetalSolution::update_volume].
201    fn update_volume(
202        &self,
203        _req: crate::model::UpdateVolumeRequest,
204        _options: crate::RequestOptions,
205    ) -> impl std::future::Future<
206        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
207    > + Send {
208        gaxi::unimplemented::unimplemented_stub()
209    }
210
211    /// Implements [super::client::BareMetalSolution::rename_volume].
212    fn rename_volume(
213        &self,
214        _req: crate::model::RenameVolumeRequest,
215        _options: crate::RequestOptions,
216    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Volume>>> + Send
217    {
218        gaxi::unimplemented::unimplemented_stub()
219    }
220
221    /// Implements [super::client::BareMetalSolution::evict_volume].
222    fn evict_volume(
223        &self,
224        _req: crate::model::EvictVolumeRequest,
225        _options: crate::RequestOptions,
226    ) -> impl std::future::Future<
227        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
228    > + Send {
229        gaxi::unimplemented::unimplemented_stub()
230    }
231
232    /// Implements [super::client::BareMetalSolution::resize_volume].
233    fn resize_volume(
234        &self,
235        _req: crate::model::ResizeVolumeRequest,
236        _options: crate::RequestOptions,
237    ) -> impl std::future::Future<
238        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
239    > + Send {
240        gaxi::unimplemented::unimplemented_stub()
241    }
242
243    /// Implements [super::client::BareMetalSolution::list_networks].
244    fn list_networks(
245        &self,
246        _req: crate::model::ListNetworksRequest,
247        _options: crate::RequestOptions,
248    ) -> impl std::future::Future<
249        Output = crate::Result<crate::Response<crate::model::ListNetworksResponse>>,
250    > + Send {
251        gaxi::unimplemented::unimplemented_stub()
252    }
253
254    /// Implements [super::client::BareMetalSolution::list_network_usage].
255    fn list_network_usage(
256        &self,
257        _req: crate::model::ListNetworkUsageRequest,
258        _options: crate::RequestOptions,
259    ) -> impl std::future::Future<
260        Output = crate::Result<crate::Response<crate::model::ListNetworkUsageResponse>>,
261    > + Send {
262        gaxi::unimplemented::unimplemented_stub()
263    }
264
265    /// Implements [super::client::BareMetalSolution::get_network].
266    fn get_network(
267        &self,
268        _req: crate::model::GetNetworkRequest,
269        _options: crate::RequestOptions,
270    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Network>>> + Send
271    {
272        gaxi::unimplemented::unimplemented_stub()
273    }
274
275    /// Implements [super::client::BareMetalSolution::update_network].
276    fn update_network(
277        &self,
278        _req: crate::model::UpdateNetworkRequest,
279        _options: crate::RequestOptions,
280    ) -> impl std::future::Future<
281        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
282    > + Send {
283        gaxi::unimplemented::unimplemented_stub()
284    }
285
286    /// Implements [super::client::BareMetalSolution::create_volume_snapshot].
287    fn create_volume_snapshot(
288        &self,
289        _req: crate::model::CreateVolumeSnapshotRequest,
290        _options: crate::RequestOptions,
291    ) -> impl std::future::Future<
292        Output = crate::Result<crate::Response<crate::model::VolumeSnapshot>>,
293    > + Send {
294        gaxi::unimplemented::unimplemented_stub()
295    }
296
297    /// Implements [super::client::BareMetalSolution::restore_volume_snapshot].
298    fn restore_volume_snapshot(
299        &self,
300        _req: crate::model::RestoreVolumeSnapshotRequest,
301        _options: crate::RequestOptions,
302    ) -> impl std::future::Future<
303        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
304    > + Send {
305        gaxi::unimplemented::unimplemented_stub()
306    }
307
308    /// Implements [super::client::BareMetalSolution::delete_volume_snapshot].
309    fn delete_volume_snapshot(
310        &self,
311        _req: crate::model::DeleteVolumeSnapshotRequest,
312        _options: crate::RequestOptions,
313    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
314        gaxi::unimplemented::unimplemented_stub()
315    }
316
317    /// Implements [super::client::BareMetalSolution::get_volume_snapshot].
318    fn get_volume_snapshot(
319        &self,
320        _req: crate::model::GetVolumeSnapshotRequest,
321        _options: crate::RequestOptions,
322    ) -> impl std::future::Future<
323        Output = crate::Result<crate::Response<crate::model::VolumeSnapshot>>,
324    > + Send {
325        gaxi::unimplemented::unimplemented_stub()
326    }
327
328    /// Implements [super::client::BareMetalSolution::list_volume_snapshots].
329    fn list_volume_snapshots(
330        &self,
331        _req: crate::model::ListVolumeSnapshotsRequest,
332        _options: crate::RequestOptions,
333    ) -> impl std::future::Future<
334        Output = crate::Result<crate::Response<crate::model::ListVolumeSnapshotsResponse>>,
335    > + Send {
336        gaxi::unimplemented::unimplemented_stub()
337    }
338
339    /// Implements [super::client::BareMetalSolution::get_lun].
340    fn get_lun(
341        &self,
342        _req: crate::model::GetLunRequest,
343        _options: crate::RequestOptions,
344    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Lun>>> + Send
345    {
346        gaxi::unimplemented::unimplemented_stub()
347    }
348
349    /// Implements [super::client::BareMetalSolution::list_luns].
350    fn list_luns(
351        &self,
352        _req: crate::model::ListLunsRequest,
353        _options: crate::RequestOptions,
354    ) -> impl std::future::Future<
355        Output = crate::Result<crate::Response<crate::model::ListLunsResponse>>,
356    > + Send {
357        gaxi::unimplemented::unimplemented_stub()
358    }
359
360    /// Implements [super::client::BareMetalSolution::evict_lun].
361    fn evict_lun(
362        &self,
363        _req: crate::model::EvictLunRequest,
364        _options: crate::RequestOptions,
365    ) -> impl std::future::Future<
366        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
367    > + Send {
368        gaxi::unimplemented::unimplemented_stub()
369    }
370
371    /// Implements [super::client::BareMetalSolution::get_nfs_share].
372    fn get_nfs_share(
373        &self,
374        _req: crate::model::GetNfsShareRequest,
375        _options: crate::RequestOptions,
376    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::NfsShare>>> + Send
377    {
378        gaxi::unimplemented::unimplemented_stub()
379    }
380
381    /// Implements [super::client::BareMetalSolution::list_nfs_shares].
382    fn list_nfs_shares(
383        &self,
384        _req: crate::model::ListNfsSharesRequest,
385        _options: crate::RequestOptions,
386    ) -> impl std::future::Future<
387        Output = crate::Result<crate::Response<crate::model::ListNfsSharesResponse>>,
388    > + Send {
389        gaxi::unimplemented::unimplemented_stub()
390    }
391
392    /// Implements [super::client::BareMetalSolution::update_nfs_share].
393    fn update_nfs_share(
394        &self,
395        _req: crate::model::UpdateNfsShareRequest,
396        _options: crate::RequestOptions,
397    ) -> impl std::future::Future<
398        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
399    > + Send {
400        gaxi::unimplemented::unimplemented_stub()
401    }
402
403    /// Implements [super::client::BareMetalSolution::create_nfs_share].
404    fn create_nfs_share(
405        &self,
406        _req: crate::model::CreateNfsShareRequest,
407        _options: crate::RequestOptions,
408    ) -> impl std::future::Future<
409        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
410    > + Send {
411        gaxi::unimplemented::unimplemented_stub()
412    }
413
414    /// Implements [super::client::BareMetalSolution::rename_nfs_share].
415    fn rename_nfs_share(
416        &self,
417        _req: crate::model::RenameNfsShareRequest,
418        _options: crate::RequestOptions,
419    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::NfsShare>>> + Send
420    {
421        gaxi::unimplemented::unimplemented_stub()
422    }
423
424    /// Implements [super::client::BareMetalSolution::delete_nfs_share].
425    fn delete_nfs_share(
426        &self,
427        _req: crate::model::DeleteNfsShareRequest,
428        _options: crate::RequestOptions,
429    ) -> impl std::future::Future<
430        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
431    > + Send {
432        gaxi::unimplemented::unimplemented_stub()
433    }
434
435    /// Implements [super::client::BareMetalSolution::list_provisioning_quotas].
436    fn list_provisioning_quotas(
437        &self,
438        _req: crate::model::ListProvisioningQuotasRequest,
439        _options: crate::RequestOptions,
440    ) -> impl std::future::Future<
441        Output = crate::Result<crate::Response<crate::model::ListProvisioningQuotasResponse>>,
442    > + Send {
443        gaxi::unimplemented::unimplemented_stub()
444    }
445
446    /// Implements [super::client::BareMetalSolution::submit_provisioning_config].
447    fn submit_provisioning_config(
448        &self,
449        _req: crate::model::SubmitProvisioningConfigRequest,
450        _options: crate::RequestOptions,
451    ) -> impl std::future::Future<
452        Output = crate::Result<crate::Response<crate::model::SubmitProvisioningConfigResponse>>,
453    > + Send {
454        gaxi::unimplemented::unimplemented_stub()
455    }
456
457    /// Implements [super::client::BareMetalSolution::get_provisioning_config].
458    fn get_provisioning_config(
459        &self,
460        _req: crate::model::GetProvisioningConfigRequest,
461        _options: crate::RequestOptions,
462    ) -> impl std::future::Future<
463        Output = crate::Result<crate::Response<crate::model::ProvisioningConfig>>,
464    > + Send {
465        gaxi::unimplemented::unimplemented_stub()
466    }
467
468    /// Implements [super::client::BareMetalSolution::create_provisioning_config].
469    fn create_provisioning_config(
470        &self,
471        _req: crate::model::CreateProvisioningConfigRequest,
472        _options: crate::RequestOptions,
473    ) -> impl std::future::Future<
474        Output = crate::Result<crate::Response<crate::model::ProvisioningConfig>>,
475    > + Send {
476        gaxi::unimplemented::unimplemented_stub()
477    }
478
479    /// Implements [super::client::BareMetalSolution::update_provisioning_config].
480    fn update_provisioning_config(
481        &self,
482        _req: crate::model::UpdateProvisioningConfigRequest,
483        _options: crate::RequestOptions,
484    ) -> impl std::future::Future<
485        Output = crate::Result<crate::Response<crate::model::ProvisioningConfig>>,
486    > + Send {
487        gaxi::unimplemented::unimplemented_stub()
488    }
489
490    /// Implements [super::client::BareMetalSolution::rename_network].
491    fn rename_network(
492        &self,
493        _req: crate::model::RenameNetworkRequest,
494        _options: crate::RequestOptions,
495    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Network>>> + Send
496    {
497        gaxi::unimplemented::unimplemented_stub()
498    }
499
500    /// Implements [super::client::BareMetalSolution::list_os_images].
501    fn list_os_images(
502        &self,
503        _req: crate::model::ListOSImagesRequest,
504        _options: crate::RequestOptions,
505    ) -> impl std::future::Future<
506        Output = crate::Result<crate::Response<crate::model::ListOSImagesResponse>>,
507    > + Send {
508        gaxi::unimplemented::unimplemented_stub()
509    }
510
511    /// Implements [super::client::BareMetalSolution::list_locations].
512    fn list_locations(
513        &self,
514        _req: google_cloud_location::model::ListLocationsRequest,
515        _options: crate::RequestOptions,
516    ) -> impl std::future::Future<
517        Output = crate::Result<
518            crate::Response<google_cloud_location::model::ListLocationsResponse>,
519        >,
520    > + Send {
521        gaxi::unimplemented::unimplemented_stub()
522    }
523
524    /// Implements [super::client::BareMetalSolution::get_location].
525    fn get_location(
526        &self,
527        _req: google_cloud_location::model::GetLocationRequest,
528        _options: crate::RequestOptions,
529    ) -> impl std::future::Future<
530        Output = crate::Result<crate::Response<google_cloud_location::model::Location>>,
531    > + Send {
532        gaxi::unimplemented::unimplemented_stub()
533    }
534
535    /// Implements [super::client::BareMetalSolution::get_operation].
536    fn get_operation(
537        &self,
538        _req: google_cloud_longrunning::model::GetOperationRequest,
539        _options: crate::RequestOptions,
540    ) -> impl std::future::Future<
541        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
542    > + Send {
543        gaxi::unimplemented::unimplemented_stub()
544    }
545
546    /// Returns the polling error policy.
547    ///
548    /// When mocking, this method is typically irrelevant. Do not try to verify
549    /// it is called by your mocks.
550    fn get_polling_error_policy(
551        &self,
552        _options: &crate::RequestOptions,
553    ) -> std::sync::Arc<dyn google_cloud_gax::polling_error_policy::PollingErrorPolicy> {
554        std::sync::Arc::new(google_cloud_gax::polling_error_policy::Aip194Strict)
555    }
556
557    /// Returns the polling backoff policy.
558    ///
559    /// When mocking, this method is typically irrelevant. Do not try to verify
560    /// it is called by your mocks.
561    fn get_polling_backoff_policy(
562        &self,
563        _options: &crate::RequestOptions,
564    ) -> std::sync::Arc<dyn google_cloud_gax::polling_backoff_policy::PollingBackoffPolicy> {
565        std::sync::Arc::new(google_cloud_gax::exponential_backoff::ExponentialBackoff::default())
566    }
567
568    #[doc(hidden)]
569    /// Returns the poller options.
570    ///
571    /// When mocking, this method is typically irrelevant. Do not try to verify
572    /// it is called by your mocks.
573    fn get_poller_options(
574        &self,
575        _options: &crate::RequestOptions,
576    ) -> google_cloud_lro::PollerOptions {
577        google_cloud_lro::PollerOptions::default()
578    }
579}