google_cloud_storage/control/
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//! Traits to mock the clients in this library.
16//!
17//! Application developers may need to mock the clients in this library to test
18//! how their application works with different (and sometimes hard to trigger)
19//! client and service behavior. Such test can define mocks implementing the
20//! trait(s) defined in this module, initialize the client with an instance of
21//! this mock in their tests, and verify their application responds as expected.
22
23#![allow(rustdoc::broken_intra_doc_links)]
24
25/// Defines the trait used to implement [super::client::StorageControl].
26///
27/// Application developers may need to implement this trait to mock
28/// `client::StorageControl`. In other use-cases, application developers only
29/// use `client::StorageControl` and need not be concerned with this trait or
30/// its implementations.
31///
32/// Services gain new RPCs routinely. Consequently, this trait gains new methods
33/// too. To avoid breaking applications the trait provides a default
34/// implementation of each method. Most of these implementations just return an
35/// error.
36pub trait StorageControl: std::fmt::Debug + Send + Sync {
37    /// Implements [super::client::StorageControl::delete_bucket].
38    fn delete_bucket(
39        &self,
40        _req: crate::model::DeleteBucketRequest,
41        _options: gax::options::RequestOptions,
42    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
43        gaxi::unimplemented::unimplemented_stub()
44    }
45
46    /// Implements [super::client::StorageControl::get_bucket].
47    fn get_bucket(
48        &self,
49        _req: crate::model::GetBucketRequest,
50        _options: gax::options::RequestOptions,
51    ) -> impl std::future::Future<
52        Output = crate::Result<gax::response::Response<crate::model::Bucket>>,
53    > + Send {
54        gaxi::unimplemented::unimplemented_stub()
55    }
56
57    /// Implements [super::client::StorageControl::create_bucket].
58    fn create_bucket(
59        &self,
60        _req: crate::model::CreateBucketRequest,
61        _options: gax::options::RequestOptions,
62    ) -> impl std::future::Future<
63        Output = crate::Result<gax::response::Response<crate::model::Bucket>>,
64    > + Send {
65        gaxi::unimplemented::unimplemented_stub()
66    }
67
68    /// Implements [super::client::StorageControl::list_buckets].
69    fn list_buckets(
70        &self,
71        _req: crate::model::ListBucketsRequest,
72        _options: gax::options::RequestOptions,
73    ) -> impl std::future::Future<
74        Output = crate::Result<gax::response::Response<crate::model::ListBucketsResponse>>,
75    > + Send {
76        gaxi::unimplemented::unimplemented_stub()
77    }
78
79    /// Implements [super::client::StorageControl::lock_bucket_retention_policy].
80    fn lock_bucket_retention_policy(
81        &self,
82        _req: crate::model::LockBucketRetentionPolicyRequest,
83        _options: gax::options::RequestOptions,
84    ) -> impl std::future::Future<
85        Output = crate::Result<gax::response::Response<crate::model::Bucket>>,
86    > + Send {
87        gaxi::unimplemented::unimplemented_stub()
88    }
89
90    /// Implements [super::client::StorageControl::get_iam_policy].
91    fn get_iam_policy(
92        &self,
93        _req: iam_v1::model::GetIamPolicyRequest,
94        _options: gax::options::RequestOptions,
95    ) -> impl std::future::Future<
96        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
97    > + Send {
98        gaxi::unimplemented::unimplemented_stub()
99    }
100
101    /// Implements [super::client::StorageControl::set_iam_policy].
102    fn set_iam_policy(
103        &self,
104        _req: iam_v1::model::SetIamPolicyRequest,
105        _options: gax::options::RequestOptions,
106    ) -> impl std::future::Future<
107        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
108    > + Send {
109        gaxi::unimplemented::unimplemented_stub()
110    }
111
112    /// Implements [super::client::StorageControl::test_iam_permissions].
113    fn test_iam_permissions(
114        &self,
115        _req: iam_v1::model::TestIamPermissionsRequest,
116        _options: gax::options::RequestOptions,
117    ) -> impl std::future::Future<
118        Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
119    > + Send {
120        gaxi::unimplemented::unimplemented_stub()
121    }
122
123    /// Implements [super::client::StorageControl::update_bucket].
124    fn update_bucket(
125        &self,
126        _req: crate::model::UpdateBucketRequest,
127        _options: gax::options::RequestOptions,
128    ) -> impl std::future::Future<
129        Output = crate::Result<gax::response::Response<crate::model::Bucket>>,
130    > + Send {
131        gaxi::unimplemented::unimplemented_stub()
132    }
133
134    /// Implements [super::client::StorageControl::compose_object].
135    fn compose_object(
136        &self,
137        _req: crate::model::ComposeObjectRequest,
138        _options: gax::options::RequestOptions,
139    ) -> impl std::future::Future<
140        Output = crate::Result<gax::response::Response<crate::model::Object>>,
141    > + Send {
142        gaxi::unimplemented::unimplemented_stub()
143    }
144
145    /// Implements [super::client::StorageControl::delete_object].
146    fn delete_object(
147        &self,
148        _req: crate::model::DeleteObjectRequest,
149        _options: gax::options::RequestOptions,
150    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
151        gaxi::unimplemented::unimplemented_stub()
152    }
153
154    /// Implements [super::client::StorageControl::restore_object].
155    fn restore_object(
156        &self,
157        _req: crate::model::RestoreObjectRequest,
158        _options: gax::options::RequestOptions,
159    ) -> impl std::future::Future<
160        Output = crate::Result<gax::response::Response<crate::model::Object>>,
161    > + Send {
162        gaxi::unimplemented::unimplemented_stub()
163    }
164
165    /// Implements [super::client::StorageControl::get_object].
166    fn get_object(
167        &self,
168        _req: crate::model::GetObjectRequest,
169        _options: gax::options::RequestOptions,
170    ) -> impl std::future::Future<
171        Output = crate::Result<gax::response::Response<crate::model::Object>>,
172    > + Send {
173        gaxi::unimplemented::unimplemented_stub()
174    }
175
176    /// Implements [super::client::StorageControl::update_object].
177    fn update_object(
178        &self,
179        _req: crate::model::UpdateObjectRequest,
180        _options: gax::options::RequestOptions,
181    ) -> impl std::future::Future<
182        Output = crate::Result<gax::response::Response<crate::model::Object>>,
183    > + Send {
184        gaxi::unimplemented::unimplemented_stub()
185    }
186
187    /// Implements [super::client::StorageControl::list_objects].
188    fn list_objects(
189        &self,
190        _req: crate::model::ListObjectsRequest,
191        _options: gax::options::RequestOptions,
192    ) -> impl std::future::Future<
193        Output = crate::Result<gax::response::Response<crate::model::ListObjectsResponse>>,
194    > + Send {
195        gaxi::unimplemented::unimplemented_stub()
196    }
197
198    /// Implements [super::client::StorageControl::rewrite_object].
199    fn rewrite_object(
200        &self,
201        _req: crate::model::RewriteObjectRequest,
202        _options: gax::options::RequestOptions,
203    ) -> impl std::future::Future<
204        Output = crate::Result<gax::response::Response<crate::model::RewriteResponse>>,
205    > + Send {
206        gaxi::unimplemented::unimplemented_stub()
207    }
208
209    /// Implements [super::client::StorageControl::move_object].
210    fn move_object(
211        &self,
212        _req: crate::model::MoveObjectRequest,
213        _options: gax::options::RequestOptions,
214    ) -> impl std::future::Future<
215        Output = crate::Result<gax::response::Response<crate::model::Object>>,
216    > + Send {
217        gaxi::unimplemented::unimplemented_stub()
218    }
219
220    /// Implements [super::client::StorageControl::create_folder].
221    fn create_folder(
222        &self,
223        _req: crate::model::CreateFolderRequest,
224        _options: gax::options::RequestOptions,
225    ) -> impl std::future::Future<
226        Output = crate::Result<gax::response::Response<crate::model::Folder>>,
227    > + Send {
228        gaxi::unimplemented::unimplemented_stub()
229    }
230
231    /// Implements [super::client::StorageControl::delete_folder].
232    fn delete_folder(
233        &self,
234        _req: crate::model::DeleteFolderRequest,
235        _options: gax::options::RequestOptions,
236    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
237        gaxi::unimplemented::unimplemented_stub()
238    }
239
240    /// Implements [super::client::StorageControl::get_folder].
241    fn get_folder(
242        &self,
243        _req: crate::model::GetFolderRequest,
244        _options: gax::options::RequestOptions,
245    ) -> impl std::future::Future<
246        Output = crate::Result<gax::response::Response<crate::model::Folder>>,
247    > + Send {
248        gaxi::unimplemented::unimplemented_stub()
249    }
250
251    /// Implements [super::client::StorageControl::list_folders].
252    fn list_folders(
253        &self,
254        _req: crate::model::ListFoldersRequest,
255        _options: gax::options::RequestOptions,
256    ) -> impl std::future::Future<
257        Output = crate::Result<gax::response::Response<crate::model::ListFoldersResponse>>,
258    > + Send {
259        gaxi::unimplemented::unimplemented_stub()
260    }
261
262    /// Implements [super::client::StorageControl::rename_folder].
263    fn rename_folder(
264        &self,
265        _req: crate::model::RenameFolderRequest,
266        _options: gax::options::RequestOptions,
267    ) -> impl std::future::Future<
268        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
269    > + Send {
270        gaxi::unimplemented::unimplemented_stub()
271    }
272
273    /// Implements [super::client::StorageControl::get_storage_layout].
274    fn get_storage_layout(
275        &self,
276        _req: crate::model::GetStorageLayoutRequest,
277        _options: gax::options::RequestOptions,
278    ) -> impl std::future::Future<
279        Output = crate::Result<gax::response::Response<crate::model::StorageLayout>>,
280    > + Send {
281        gaxi::unimplemented::unimplemented_stub()
282    }
283
284    /// Implements [super::client::StorageControl::create_managed_folder].
285    fn create_managed_folder(
286        &self,
287        _req: crate::model::CreateManagedFolderRequest,
288        _options: gax::options::RequestOptions,
289    ) -> impl std::future::Future<
290        Output = crate::Result<gax::response::Response<crate::model::ManagedFolder>>,
291    > + Send {
292        gaxi::unimplemented::unimplemented_stub()
293    }
294
295    /// Implements [super::client::StorageControl::delete_managed_folder].
296    fn delete_managed_folder(
297        &self,
298        _req: crate::model::DeleteManagedFolderRequest,
299        _options: gax::options::RequestOptions,
300    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
301        gaxi::unimplemented::unimplemented_stub()
302    }
303
304    /// Implements [super::client::StorageControl::get_managed_folder].
305    fn get_managed_folder(
306        &self,
307        _req: crate::model::GetManagedFolderRequest,
308        _options: gax::options::RequestOptions,
309    ) -> impl std::future::Future<
310        Output = crate::Result<gax::response::Response<crate::model::ManagedFolder>>,
311    > + Send {
312        gaxi::unimplemented::unimplemented_stub()
313    }
314
315    /// Implements [super::client::StorageControl::list_managed_folders].
316    fn list_managed_folders(
317        &self,
318        _req: crate::model::ListManagedFoldersRequest,
319        _options: gax::options::RequestOptions,
320    ) -> impl std::future::Future<
321        Output = crate::Result<gax::response::Response<crate::model::ListManagedFoldersResponse>>,
322    > + Send {
323        gaxi::unimplemented::unimplemented_stub()
324    }
325
326    /// Implements [super::client::StorageControl::create_anywhere_cache].
327    fn create_anywhere_cache(
328        &self,
329        _req: crate::model::CreateAnywhereCacheRequest,
330        _options: gax::options::RequestOptions,
331    ) -> impl std::future::Future<
332        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
333    > + Send {
334        gaxi::unimplemented::unimplemented_stub()
335    }
336
337    /// Implements [super::client::StorageControl::update_anywhere_cache].
338    fn update_anywhere_cache(
339        &self,
340        _req: crate::model::UpdateAnywhereCacheRequest,
341        _options: gax::options::RequestOptions,
342    ) -> impl std::future::Future<
343        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
344    > + Send {
345        gaxi::unimplemented::unimplemented_stub()
346    }
347
348    /// Implements [super::client::StorageControl::disable_anywhere_cache].
349    fn disable_anywhere_cache(
350        &self,
351        _req: crate::model::DisableAnywhereCacheRequest,
352        _options: gax::options::RequestOptions,
353    ) -> impl std::future::Future<
354        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
355    > + Send {
356        gaxi::unimplemented::unimplemented_stub()
357    }
358
359    /// Implements [super::client::StorageControl::pause_anywhere_cache].
360    fn pause_anywhere_cache(
361        &self,
362        _req: crate::model::PauseAnywhereCacheRequest,
363        _options: gax::options::RequestOptions,
364    ) -> impl std::future::Future<
365        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
366    > + Send {
367        gaxi::unimplemented::unimplemented_stub()
368    }
369
370    /// Implements [super::client::StorageControl::resume_anywhere_cache].
371    fn resume_anywhere_cache(
372        &self,
373        _req: crate::model::ResumeAnywhereCacheRequest,
374        _options: gax::options::RequestOptions,
375    ) -> impl std::future::Future<
376        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
377    > + Send {
378        gaxi::unimplemented::unimplemented_stub()
379    }
380
381    /// Implements [super::client::StorageControl::get_anywhere_cache].
382    fn get_anywhere_cache(
383        &self,
384        _req: crate::model::GetAnywhereCacheRequest,
385        _options: gax::options::RequestOptions,
386    ) -> impl std::future::Future<
387        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
388    > + Send {
389        gaxi::unimplemented::unimplemented_stub()
390    }
391
392    /// Implements [super::client::StorageControl::list_anywhere_caches].
393    fn list_anywhere_caches(
394        &self,
395        _req: crate::model::ListAnywhereCachesRequest,
396        _options: gax::options::RequestOptions,
397    ) -> impl std::future::Future<
398        Output = crate::Result<gax::response::Response<crate::model::ListAnywhereCachesResponse>>,
399    > + Send {
400        gaxi::unimplemented::unimplemented_stub()
401    }
402
403    /// Implements [super::client::StorageControl::get_project_intelligence_config].
404    fn get_project_intelligence_config(
405        &self,
406        _req: crate::model::GetProjectIntelligenceConfigRequest,
407        _options: gax::options::RequestOptions,
408    ) -> impl std::future::Future<
409        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
410    > + Send {
411        gaxi::unimplemented::unimplemented_stub()
412    }
413
414    /// Implements [super::client::StorageControl::update_project_intelligence_config].
415    fn update_project_intelligence_config(
416        &self,
417        _req: crate::model::UpdateProjectIntelligenceConfigRequest,
418        _options: gax::options::RequestOptions,
419    ) -> impl std::future::Future<
420        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
421    > + Send {
422        gaxi::unimplemented::unimplemented_stub()
423    }
424
425    /// Implements [super::client::StorageControl::get_folder_intelligence_config].
426    fn get_folder_intelligence_config(
427        &self,
428        _req: crate::model::GetFolderIntelligenceConfigRequest,
429        _options: gax::options::RequestOptions,
430    ) -> impl std::future::Future<
431        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
432    > + Send {
433        gaxi::unimplemented::unimplemented_stub()
434    }
435
436    /// Implements [super::client::StorageControl::update_folder_intelligence_config].
437    fn update_folder_intelligence_config(
438        &self,
439        _req: crate::model::UpdateFolderIntelligenceConfigRequest,
440        _options: gax::options::RequestOptions,
441    ) -> impl std::future::Future<
442        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
443    > + Send {
444        gaxi::unimplemented::unimplemented_stub()
445    }
446
447    /// Implements [super::client::StorageControl::get_organization_intelligence_config].
448    fn get_organization_intelligence_config(
449        &self,
450        _req: crate::model::GetOrganizationIntelligenceConfigRequest,
451        _options: gax::options::RequestOptions,
452    ) -> impl std::future::Future<
453        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
454    > + Send {
455        gaxi::unimplemented::unimplemented_stub()
456    }
457
458    /// Implements [super::client::StorageControl::update_organization_intelligence_config].
459    fn update_organization_intelligence_config(
460        &self,
461        _req: crate::model::UpdateOrganizationIntelligenceConfigRequest,
462        _options: gax::options::RequestOptions,
463    ) -> impl std::future::Future<
464        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
465    > + Send {
466        gaxi::unimplemented::unimplemented_stub()
467    }
468
469    /// Implements [super::client::StorageControl::get_operation].
470    fn get_operation(
471        &self,
472        _req: longrunning::model::GetOperationRequest,
473        _options: gax::options::RequestOptions,
474    ) -> impl std::future::Future<
475        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
476    > + Send {
477        gaxi::unimplemented::unimplemented_stub()
478    }
479}
480
481impl<T> crate::generated::gapic::stub::StorageControl for std::sync::Arc<T>
482where
483    T: StorageControl,
484{
485    fn delete_bucket(
486        &self,
487        req: crate::model::DeleteBucketRequest,
488        options: gax::options::RequestOptions,
489    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> {
490        T::delete_bucket(self, req, options)
491    }
492
493    fn get_bucket(
494        &self,
495        req: crate::model::GetBucketRequest,
496        options: gax::options::RequestOptions,
497    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Bucket>>>
498    {
499        T::get_bucket(self, req, options)
500    }
501
502    fn create_bucket(
503        &self,
504        req: crate::model::CreateBucketRequest,
505        options: gax::options::RequestOptions,
506    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Bucket>>>
507    {
508        T::create_bucket(self, req, options)
509    }
510
511    fn list_buckets(
512        &self,
513        req: crate::model::ListBucketsRequest,
514        options: gax::options::RequestOptions,
515    ) -> impl std::future::Future<
516        Output = crate::Result<gax::response::Response<crate::model::ListBucketsResponse>>,
517    > {
518        T::list_buckets(self, req, options)
519    }
520
521    fn lock_bucket_retention_policy(
522        &self,
523        req: crate::model::LockBucketRetentionPolicyRequest,
524        options: gax::options::RequestOptions,
525    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Bucket>>>
526    {
527        T::lock_bucket_retention_policy(self, req, options)
528    }
529
530    fn get_iam_policy(
531        &self,
532        req: iam_v1::model::GetIamPolicyRequest,
533        options: gax::options::RequestOptions,
534    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>>
535    {
536        T::get_iam_policy(self, req, options)
537    }
538
539    fn set_iam_policy(
540        &self,
541        req: iam_v1::model::SetIamPolicyRequest,
542        options: gax::options::RequestOptions,
543    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>>
544    {
545        T::set_iam_policy(self, req, options)
546    }
547
548    fn test_iam_permissions(
549        &self,
550        req: iam_v1::model::TestIamPermissionsRequest,
551        options: gax::options::RequestOptions,
552    ) -> impl std::future::Future<
553        Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
554    > {
555        T::test_iam_permissions(self, req, options)
556    }
557
558    fn update_bucket(
559        &self,
560        req: crate::model::UpdateBucketRequest,
561        options: gax::options::RequestOptions,
562    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Bucket>>>
563    {
564        T::update_bucket(self, req, options)
565    }
566
567    fn compose_object(
568        &self,
569        req: crate::model::ComposeObjectRequest,
570        options: gax::options::RequestOptions,
571    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Object>>>
572    {
573        T::compose_object(self, req, options)
574    }
575
576    fn delete_object(
577        &self,
578        req: crate::model::DeleteObjectRequest,
579        options: gax::options::RequestOptions,
580    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> {
581        T::delete_object(self, req, options)
582    }
583
584    fn restore_object(
585        &self,
586        req: crate::model::RestoreObjectRequest,
587        options: gax::options::RequestOptions,
588    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Object>>>
589    {
590        T::restore_object(self, req, options)
591    }
592
593    fn get_object(
594        &self,
595        req: crate::model::GetObjectRequest,
596        options: gax::options::RequestOptions,
597    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Object>>>
598    {
599        T::get_object(self, req, options)
600    }
601
602    fn update_object(
603        &self,
604        req: crate::model::UpdateObjectRequest,
605        options: gax::options::RequestOptions,
606    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Object>>>
607    {
608        T::update_object(self, req, options)
609    }
610
611    fn list_objects(
612        &self,
613        req: crate::model::ListObjectsRequest,
614        options: gax::options::RequestOptions,
615    ) -> impl std::future::Future<
616        Output = crate::Result<gax::response::Response<crate::model::ListObjectsResponse>>,
617    > {
618        T::list_objects(self, req, options)
619    }
620
621    fn rewrite_object(
622        &self,
623        req: crate::model::RewriteObjectRequest,
624        options: gax::options::RequestOptions,
625    ) -> impl std::future::Future<
626        Output = crate::Result<gax::response::Response<crate::model::RewriteResponse>>,
627    > {
628        T::rewrite_object(self, req, options)
629    }
630
631    fn move_object(
632        &self,
633        req: crate::model::MoveObjectRequest,
634        options: gax::options::RequestOptions,
635    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Object>>>
636    {
637        T::move_object(self, req, options)
638    }
639}
640
641impl<T> crate::generated::gapic_control::stub::StorageControl for std::sync::Arc<T>
642where
643    T: StorageControl,
644{
645    fn create_folder(
646        &self,
647        req: crate::model::CreateFolderRequest,
648        options: gax::options::RequestOptions,
649    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Folder>>>
650    {
651        T::create_folder(self, req, options)
652    }
653
654    fn delete_folder(
655        &self,
656        req: crate::model::DeleteFolderRequest,
657        options: gax::options::RequestOptions,
658    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> {
659        T::delete_folder(self, req, options)
660    }
661
662    fn get_folder(
663        &self,
664        req: crate::model::GetFolderRequest,
665        options: gax::options::RequestOptions,
666    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<crate::model::Folder>>>
667    {
668        T::get_folder(self, req, options)
669    }
670
671    fn list_folders(
672        &self,
673        req: crate::model::ListFoldersRequest,
674        options: gax::options::RequestOptions,
675    ) -> impl std::future::Future<
676        Output = crate::Result<gax::response::Response<crate::model::ListFoldersResponse>>,
677    > {
678        T::list_folders(self, req, options)
679    }
680
681    fn rename_folder(
682        &self,
683        req: crate::model::RenameFolderRequest,
684        options: gax::options::RequestOptions,
685    ) -> impl std::future::Future<
686        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
687    > {
688        T::rename_folder(self, req, options)
689    }
690
691    fn get_storage_layout(
692        &self,
693        req: crate::model::GetStorageLayoutRequest,
694        options: gax::options::RequestOptions,
695    ) -> impl std::future::Future<
696        Output = crate::Result<gax::response::Response<crate::model::StorageLayout>>,
697    > {
698        T::get_storage_layout(self, req, options)
699    }
700
701    fn create_managed_folder(
702        &self,
703        req: crate::model::CreateManagedFolderRequest,
704        options: gax::options::RequestOptions,
705    ) -> impl std::future::Future<
706        Output = crate::Result<gax::response::Response<crate::model::ManagedFolder>>,
707    > {
708        T::create_managed_folder(self, req, options)
709    }
710
711    fn delete_managed_folder(
712        &self,
713        req: crate::model::DeleteManagedFolderRequest,
714        options: gax::options::RequestOptions,
715    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> {
716        T::delete_managed_folder(self, req, options)
717    }
718
719    fn get_managed_folder(
720        &self,
721        req: crate::model::GetManagedFolderRequest,
722        options: gax::options::RequestOptions,
723    ) -> impl std::future::Future<
724        Output = crate::Result<gax::response::Response<crate::model::ManagedFolder>>,
725    > {
726        T::get_managed_folder(self, req, options)
727    }
728
729    fn list_managed_folders(
730        &self,
731        req: crate::model::ListManagedFoldersRequest,
732        options: gax::options::RequestOptions,
733    ) -> impl std::future::Future<
734        Output = crate::Result<gax::response::Response<crate::model::ListManagedFoldersResponse>>,
735    > {
736        T::list_managed_folders(self, req, options)
737    }
738
739    fn create_anywhere_cache(
740        &self,
741        req: crate::model::CreateAnywhereCacheRequest,
742        options: gax::options::RequestOptions,
743    ) -> impl std::future::Future<
744        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
745    > {
746        T::create_anywhere_cache(self, req, options)
747    }
748
749    fn update_anywhere_cache(
750        &self,
751        req: crate::model::UpdateAnywhereCacheRequest,
752        options: gax::options::RequestOptions,
753    ) -> impl std::future::Future<
754        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
755    > {
756        T::update_anywhere_cache(self, req, options)
757    }
758
759    fn disable_anywhere_cache(
760        &self,
761        req: crate::model::DisableAnywhereCacheRequest,
762        options: gax::options::RequestOptions,
763    ) -> impl std::future::Future<
764        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
765    > {
766        T::disable_anywhere_cache(self, req, options)
767    }
768
769    fn pause_anywhere_cache(
770        &self,
771        req: crate::model::PauseAnywhereCacheRequest,
772        options: gax::options::RequestOptions,
773    ) -> impl std::future::Future<
774        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
775    > {
776        T::pause_anywhere_cache(self, req, options)
777    }
778
779    fn resume_anywhere_cache(
780        &self,
781        req: crate::model::ResumeAnywhereCacheRequest,
782        options: gax::options::RequestOptions,
783    ) -> impl std::future::Future<
784        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
785    > {
786        T::resume_anywhere_cache(self, req, options)
787    }
788
789    fn get_anywhere_cache(
790        &self,
791        req: crate::model::GetAnywhereCacheRequest,
792        options: gax::options::RequestOptions,
793    ) -> impl std::future::Future<
794        Output = crate::Result<gax::response::Response<crate::model::AnywhereCache>>,
795    > {
796        T::get_anywhere_cache(self, req, options)
797    }
798
799    fn list_anywhere_caches(
800        &self,
801        req: crate::model::ListAnywhereCachesRequest,
802        options: gax::options::RequestOptions,
803    ) -> impl std::future::Future<
804        Output = crate::Result<gax::response::Response<crate::model::ListAnywhereCachesResponse>>,
805    > {
806        T::list_anywhere_caches(self, req, options)
807    }
808
809    fn get_project_intelligence_config(
810        &self,
811        req: crate::model::GetProjectIntelligenceConfigRequest,
812        options: gax::options::RequestOptions,
813    ) -> impl std::future::Future<
814        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
815    > {
816        T::get_project_intelligence_config(self, req, options)
817    }
818
819    fn update_project_intelligence_config(
820        &self,
821        req: crate::model::UpdateProjectIntelligenceConfigRequest,
822        options: gax::options::RequestOptions,
823    ) -> impl std::future::Future<
824        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
825    > {
826        T::update_project_intelligence_config(self, req, options)
827    }
828
829    fn get_folder_intelligence_config(
830        &self,
831        req: crate::model::GetFolderIntelligenceConfigRequest,
832        options: gax::options::RequestOptions,
833    ) -> impl std::future::Future<
834        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
835    > {
836        T::get_folder_intelligence_config(self, req, options)
837    }
838
839    fn update_folder_intelligence_config(
840        &self,
841        req: crate::model::UpdateFolderIntelligenceConfigRequest,
842        options: gax::options::RequestOptions,
843    ) -> impl std::future::Future<
844        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
845    > {
846        T::update_folder_intelligence_config(self, req, options)
847    }
848
849    fn get_organization_intelligence_config(
850        &self,
851        req: crate::model::GetOrganizationIntelligenceConfigRequest,
852        options: gax::options::RequestOptions,
853    ) -> impl std::future::Future<
854        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
855    > {
856        T::get_organization_intelligence_config(self, req, options)
857    }
858
859    fn update_organization_intelligence_config(
860        &self,
861        req: crate::model::UpdateOrganizationIntelligenceConfigRequest,
862        options: gax::options::RequestOptions,
863    ) -> impl std::future::Future<
864        Output = crate::Result<gax::response::Response<crate::model::IntelligenceConfig>>,
865    > {
866        T::update_organization_intelligence_config(self, req, options)
867    }
868
869    fn get_operation(
870        &self,
871        req: longrunning::model::GetOperationRequest,
872        options: gax::options::RequestOptions,
873    ) -> impl std::future::Future<
874        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
875    > {
876        T::get_operation(self, req, options)
877    }
878}