Skip to main content

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