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