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::update_managed_folder].
286    fn update_managed_folder(
287        &self,
288        _req: crate::model::UpdateManagedFolderRequest,
289        _options: crate::RequestOptions,
290    ) -> impl std::future::Future<
291        Output = crate::Result<crate::Response<crate::model::ManagedFolder>>,
292    > + Send {
293        gaxi::unimplemented::unimplemented_stub()
294    }
295
296    /// Implements [crate::client::StorageControl::create_anywhere_cache].
297    fn create_anywhere_cache(
298        &self,
299        _req: crate::model::CreateAnywhereCacheRequest,
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::update_anywhere_cache].
308    fn update_anywhere_cache(
309        &self,
310        _req: crate::model::UpdateAnywhereCacheRequest,
311        _options: crate::RequestOptions,
312    ) -> impl std::future::Future<
313        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
314    > + Send {
315        gaxi::unimplemented::unimplemented_stub()
316    }
317
318    /// Implements [crate::client::StorageControl::disable_anywhere_cache].
319    fn disable_anywhere_cache(
320        &self,
321        _req: crate::model::DisableAnywhereCacheRequest,
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::pause_anywhere_cache].
330    fn pause_anywhere_cache(
331        &self,
332        _req: crate::model::PauseAnywhereCacheRequest,
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::resume_anywhere_cache].
341    fn resume_anywhere_cache(
342        &self,
343        _req: crate::model::ResumeAnywhereCacheRequest,
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::get_anywhere_cache].
352    fn get_anywhere_cache(
353        &self,
354        _req: crate::model::GetAnywhereCacheRequest,
355        _options: crate::RequestOptions,
356    ) -> impl std::future::Future<
357        Output = crate::Result<crate::Response<crate::model::AnywhereCache>>,
358    > + Send {
359        gaxi::unimplemented::unimplemented_stub()
360    }
361
362    /// Implements [crate::client::StorageControl::list_anywhere_caches].
363    fn list_anywhere_caches(
364        &self,
365        _req: crate::model::ListAnywhereCachesRequest,
366        _options: crate::RequestOptions,
367    ) -> impl std::future::Future<
368        Output = crate::Result<crate::Response<crate::model::ListAnywhereCachesResponse>>,
369    > + Send {
370        gaxi::unimplemented::unimplemented_stub()
371    }
372
373    /// Implements [crate::client::StorageControl::create_rapid_cache].
374    fn create_rapid_cache(
375        &self,
376        _req: crate::model::CreateRapidCacheRequest,
377        _options: crate::RequestOptions,
378    ) -> impl std::future::Future<
379        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
380    > + Send {
381        gaxi::unimplemented::unimplemented_stub()
382    }
383
384    /// Implements [crate::client::StorageControl::update_rapid_cache].
385    fn update_rapid_cache(
386        &self,
387        _req: crate::model::UpdateRapidCacheRequest,
388        _options: crate::RequestOptions,
389    ) -> impl std::future::Future<
390        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
391    > + Send {
392        gaxi::unimplemented::unimplemented_stub()
393    }
394
395    /// Implements [crate::client::StorageControl::disable_rapid_cache].
396    fn disable_rapid_cache(
397        &self,
398        _req: crate::model::DisableRapidCacheRequest,
399        _options: crate::RequestOptions,
400    ) -> impl std::future::Future<
401        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
402    > + Send {
403        gaxi::unimplemented::unimplemented_stub()
404    }
405
406    /// Implements [crate::client::StorageControl::get_rapid_cache].
407    fn get_rapid_cache(
408        &self,
409        _req: crate::model::GetRapidCacheRequest,
410        _options: crate::RequestOptions,
411    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::RapidCache>>> + Send
412    {
413        gaxi::unimplemented::unimplemented_stub()
414    }
415
416    /// Implements [crate::client::StorageControl::list_rapid_caches].
417    fn list_rapid_caches(
418        &self,
419        _req: crate::model::ListRapidCachesRequest,
420        _options: crate::RequestOptions,
421    ) -> impl std::future::Future<
422        Output = crate::Result<crate::Response<crate::model::ListRapidCachesResponse>>,
423    > + Send {
424        gaxi::unimplemented::unimplemented_stub()
425    }
426
427    /// Implements [crate::client::StorageControl::get_project_intelligence_config].
428    fn get_project_intelligence_config(
429        &self,
430        _req: crate::model::GetProjectIntelligenceConfigRequest,
431        _options: crate::RequestOptions,
432    ) -> impl std::future::Future<
433        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
434    > + Send {
435        gaxi::unimplemented::unimplemented_stub()
436    }
437
438    /// Implements [crate::client::StorageControl::update_project_intelligence_config].
439    fn update_project_intelligence_config(
440        &self,
441        _req: crate::model::UpdateProjectIntelligenceConfigRequest,
442        _options: crate::RequestOptions,
443    ) -> impl std::future::Future<
444        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
445    > + Send {
446        gaxi::unimplemented::unimplemented_stub()
447    }
448
449    /// Implements [crate::client::StorageControl::get_folder_intelligence_config].
450    fn get_folder_intelligence_config(
451        &self,
452        _req: crate::model::GetFolderIntelligenceConfigRequest,
453        _options: crate::RequestOptions,
454    ) -> impl std::future::Future<
455        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
456    > + Send {
457        gaxi::unimplemented::unimplemented_stub()
458    }
459
460    /// Implements [crate::client::StorageControl::update_folder_intelligence_config].
461    fn update_folder_intelligence_config(
462        &self,
463        _req: crate::model::UpdateFolderIntelligenceConfigRequest,
464        _options: crate::RequestOptions,
465    ) -> impl std::future::Future<
466        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
467    > + Send {
468        gaxi::unimplemented::unimplemented_stub()
469    }
470
471    /// Implements [crate::client::StorageControl::get_organization_intelligence_config].
472    fn get_organization_intelligence_config(
473        &self,
474        _req: crate::model::GetOrganizationIntelligenceConfigRequest,
475        _options: crate::RequestOptions,
476    ) -> impl std::future::Future<
477        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
478    > + Send {
479        gaxi::unimplemented::unimplemented_stub()
480    }
481
482    /// Implements [crate::client::StorageControl::update_organization_intelligence_config].
483    fn update_organization_intelligence_config(
484        &self,
485        _req: crate::model::UpdateOrganizationIntelligenceConfigRequest,
486        _options: crate::RequestOptions,
487    ) -> impl std::future::Future<
488        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
489    > + Send {
490        gaxi::unimplemented::unimplemented_stub()
491    }
492
493    /// Implements [crate::client::StorageControl::get_iam_policy].
494    fn get_iam_policy(
495        &self,
496        _req: google_cloud_iam_v1::model::GetIamPolicyRequest,
497        _options: crate::RequestOptions,
498    ) -> impl std::future::Future<
499        Output = crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>,
500    > + Send {
501        gaxi::unimplemented::unimplemented_stub()
502    }
503
504    /// Implements [crate::client::StorageControl::set_iam_policy].
505    fn set_iam_policy(
506        &self,
507        _req: google_cloud_iam_v1::model::SetIamPolicyRequest,
508        _options: crate::RequestOptions,
509    ) -> impl std::future::Future<
510        Output = crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>,
511    > + Send {
512        gaxi::unimplemented::unimplemented_stub()
513    }
514
515    /// Implements [crate::client::StorageControl::test_iam_permissions].
516    fn test_iam_permissions(
517        &self,
518        _req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
519        _options: crate::RequestOptions,
520    ) -> impl std::future::Future<
521        Output = crate::Result<
522            crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>,
523        >,
524    > + Send {
525        gaxi::unimplemented::unimplemented_stub()
526    }
527
528    /// Implements [crate::client::StorageControl::get_intelligence_finding].
529    fn get_intelligence_finding(
530        &self,
531        _req: crate::model::GetIntelligenceFindingRequest,
532        _options: crate::RequestOptions,
533    ) -> impl std::future::Future<
534        Output = crate::Result<crate::Response<crate::model::IntelligenceFinding>>,
535    > + Send {
536        gaxi::unimplemented::unimplemented_stub()
537    }
538
539    /// Implements [crate::client::StorageControl::list_intelligence_findings].
540    fn list_intelligence_findings(
541        &self,
542        _req: crate::model::ListIntelligenceFindingsRequest,
543        _options: crate::RequestOptions,
544    ) -> impl std::future::Future<
545        Output = crate::Result<crate::Response<crate::model::ListIntelligenceFindingsResponse>>,
546    > + Send {
547        gaxi::unimplemented::unimplemented_stub()
548    }
549
550    /// Implements [crate::client::StorageControl::summarize_intelligence_findings].
551    fn summarize_intelligence_findings(
552        &self,
553        _req: crate::model::SummarizeIntelligenceFindingsRequest,
554        _options: crate::RequestOptions,
555    ) -> impl std::future::Future<
556        Output = crate::Result<
557            crate::Response<crate::model::SummarizeIntelligenceFindingsResponse>,
558        >,
559    > + Send {
560        gaxi::unimplemented::unimplemented_stub()
561    }
562
563    /// Implements [crate::client::StorageControl::get_intelligence_finding_revision].
564    fn get_intelligence_finding_revision(
565        &self,
566        _req: crate::model::GetIntelligenceFindingRevisionRequest,
567        _options: crate::RequestOptions,
568    ) -> impl std::future::Future<
569        Output = crate::Result<crate::Response<crate::model::IntelligenceFindingRevision>>,
570    > + Send {
571        gaxi::unimplemented::unimplemented_stub()
572    }
573
574    /// Implements [crate::client::StorageControl::list_intelligence_finding_revisions].
575    fn list_intelligence_finding_revisions(
576        &self,
577        _req: crate::model::ListIntelligenceFindingRevisionsRequest,
578        _options: crate::RequestOptions,
579    ) -> impl std::future::Future<
580        Output = crate::Result<
581            crate::Response<crate::model::ListIntelligenceFindingRevisionsResponse>,
582        >,
583    > + Send {
584        gaxi::unimplemented::unimplemented_stub()
585    }
586
587    /// Implements [crate::client::StorageControl::view_object_full_context].
588    fn view_object_full_context(
589        &self,
590        _req: crate::model::ViewObjectFullContextRequest,
591        _options: crate::RequestOptions,
592    ) -> impl std::future::Future<
593        Output = crate::Result<crate::Response<crate::model::ObjectFullContext>>,
594    > + Send {
595        gaxi::unimplemented::unimplemented_stub()
596    }
597
598    /// Implements [crate::client::StorageControl::get_operation].
599    fn get_operation(
600        &self,
601        _req: google_cloud_longrunning::model::GetOperationRequest,
602        _options: crate::RequestOptions,
603    ) -> impl std::future::Future<
604        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
605    > + Send {
606        gaxi::unimplemented::unimplemented_stub()
607    }
608}
609
610impl<T> crate::generated::gapic::stub::StorageControl for std::sync::Arc<T>
611where
612    T: StorageControl,
613{
614    fn delete_bucket(
615        &self,
616        req: crate::model::DeleteBucketRequest,
617        options: crate::RequestOptions,
618    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
619        T::delete_bucket(self, req, options)
620    }
621
622    fn get_bucket(
623        &self,
624        req: crate::model::GetBucketRequest,
625        options: crate::RequestOptions,
626    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Bucket>>> + Send
627    {
628        T::get_bucket(self, req, options)
629    }
630
631    fn create_bucket(
632        &self,
633        req: crate::model::CreateBucketRequest,
634        options: crate::RequestOptions,
635    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Bucket>>> + Send
636    {
637        T::create_bucket(self, req, options)
638    }
639
640    fn list_buckets(
641        &self,
642        req: crate::model::ListBucketsRequest,
643        options: crate::RequestOptions,
644    ) -> impl std::future::Future<
645        Output = crate::Result<crate::Response<crate::model::ListBucketsResponse>>,
646    > + Send {
647        T::list_buckets(self, req, options)
648    }
649
650    fn lock_bucket_retention_policy(
651        &self,
652        req: crate::model::LockBucketRetentionPolicyRequest,
653        options: crate::RequestOptions,
654    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Bucket>>> + Send
655    {
656        T::lock_bucket_retention_policy(self, req, options)
657    }
658
659    fn update_bucket(
660        &self,
661        req: crate::model::UpdateBucketRequest,
662        options: crate::RequestOptions,
663    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Bucket>>> + Send
664    {
665        T::update_bucket(self, req, options)
666    }
667
668    fn compose_object(
669        &self,
670        req: crate::model::ComposeObjectRequest,
671        options: crate::RequestOptions,
672    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Object>>> + Send
673    {
674        T::compose_object(self, req, options)
675    }
676
677    fn delete_object(
678        &self,
679        req: crate::model::DeleteObjectRequest,
680        options: crate::RequestOptions,
681    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
682        T::delete_object(self, req, options)
683    }
684
685    fn restore_object(
686        &self,
687        req: crate::model::RestoreObjectRequest,
688        options: crate::RequestOptions,
689    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Object>>> + Send
690    {
691        T::restore_object(self, req, options)
692    }
693
694    fn get_object(
695        &self,
696        req: crate::model::GetObjectRequest,
697        options: crate::RequestOptions,
698    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Object>>> + Send
699    {
700        T::get_object(self, req, options)
701    }
702
703    fn update_object(
704        &self,
705        req: crate::model::UpdateObjectRequest,
706        options: crate::RequestOptions,
707    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Object>>> + Send
708    {
709        T::update_object(self, req, options)
710    }
711
712    fn list_objects(
713        &self,
714        req: crate::model::ListObjectsRequest,
715        options: crate::RequestOptions,
716    ) -> impl std::future::Future<
717        Output = crate::Result<crate::Response<crate::model::ListObjectsResponse>>,
718    > + Send {
719        T::list_objects(self, req, options)
720    }
721
722    fn rewrite_object(
723        &self,
724        req: crate::model::RewriteObjectRequest,
725        options: crate::RequestOptions,
726    ) -> impl std::future::Future<
727        Output = crate::Result<crate::Response<crate::model::RewriteResponse>>,
728    > + Send {
729        T::rewrite_object(self, req, options)
730    }
731
732    fn move_object(
733        &self,
734        req: crate::model::MoveObjectRequest,
735        options: crate::RequestOptions,
736    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Object>>> + Send
737    {
738        T::move_object(self, req, options)
739    }
740}
741
742impl<T> crate::generated::gapic_control::stub::StorageControl for std::sync::Arc<T>
743where
744    T: StorageControl,
745{
746    fn create_folder(
747        &self,
748        req: crate::model::CreateFolderRequest,
749        options: crate::RequestOptions,
750    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Folder>>> + Send
751    {
752        T::create_folder(self, req, options)
753    }
754
755    fn delete_folder(
756        &self,
757        req: crate::model::DeleteFolderRequest,
758        options: crate::RequestOptions,
759    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
760        T::delete_folder(self, req, options)
761    }
762
763    fn get_folder(
764        &self,
765        req: crate::model::GetFolderRequest,
766        options: crate::RequestOptions,
767    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Folder>>> + Send
768    {
769        T::get_folder(self, req, options)
770    }
771
772    fn list_folders(
773        &self,
774        req: crate::model::ListFoldersRequest,
775        options: crate::RequestOptions,
776    ) -> impl std::future::Future<
777        Output = crate::Result<crate::Response<crate::model::ListFoldersResponse>>,
778    > + Send {
779        T::list_folders(self, req, options)
780    }
781
782    fn rename_folder(
783        &self,
784        req: crate::model::RenameFolderRequest,
785        options: crate::RequestOptions,
786    ) -> impl std::future::Future<
787        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
788    > + Send {
789        T::rename_folder(self, req, options)
790    }
791
792    fn delete_folder_recursive(
793        &self,
794        req: crate::model::DeleteFolderRecursiveRequest,
795        options: crate::RequestOptions,
796    ) -> impl std::future::Future<
797        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
798    > + Send {
799        T::delete_folder_recursive(self, req, options)
800    }
801
802    fn get_storage_layout(
803        &self,
804        req: crate::model::GetStorageLayoutRequest,
805        options: crate::RequestOptions,
806    ) -> impl std::future::Future<
807        Output = crate::Result<crate::Response<crate::model::StorageLayout>>,
808    > + Send {
809        T::get_storage_layout(self, req, options)
810    }
811
812    fn create_managed_folder(
813        &self,
814        req: crate::model::CreateManagedFolderRequest,
815        options: crate::RequestOptions,
816    ) -> impl std::future::Future<
817        Output = crate::Result<crate::Response<crate::model::ManagedFolder>>,
818    > + Send {
819        T::create_managed_folder(self, req, options)
820    }
821
822    fn delete_managed_folder(
823        &self,
824        req: crate::model::DeleteManagedFolderRequest,
825        options: crate::RequestOptions,
826    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
827        T::delete_managed_folder(self, req, options)
828    }
829
830    fn get_managed_folder(
831        &self,
832        req: crate::model::GetManagedFolderRequest,
833        options: crate::RequestOptions,
834    ) -> impl std::future::Future<
835        Output = crate::Result<crate::Response<crate::model::ManagedFolder>>,
836    > + Send {
837        T::get_managed_folder(self, req, options)
838    }
839
840    fn list_managed_folders(
841        &self,
842        req: crate::model::ListManagedFoldersRequest,
843        options: crate::RequestOptions,
844    ) -> impl std::future::Future<
845        Output = crate::Result<crate::Response<crate::model::ListManagedFoldersResponse>>,
846    > + Send {
847        T::list_managed_folders(self, req, options)
848    }
849
850    fn update_managed_folder(
851        &self,
852        req: crate::model::UpdateManagedFolderRequest,
853        options: crate::RequestOptions,
854    ) -> impl std::future::Future<
855        Output = crate::Result<crate::Response<crate::model::ManagedFolder>>,
856    > + Send {
857        T::update_managed_folder(self, req, options)
858    }
859
860    fn create_anywhere_cache(
861        &self,
862        req: crate::model::CreateAnywhereCacheRequest,
863        options: crate::RequestOptions,
864    ) -> impl std::future::Future<
865        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
866    > + Send {
867        T::create_anywhere_cache(self, req, options)
868    }
869
870    fn update_anywhere_cache(
871        &self,
872        req: crate::model::UpdateAnywhereCacheRequest,
873        options: crate::RequestOptions,
874    ) -> impl std::future::Future<
875        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
876    > + Send {
877        T::update_anywhere_cache(self, req, options)
878    }
879
880    fn disable_anywhere_cache(
881        &self,
882        req: crate::model::DisableAnywhereCacheRequest,
883        options: crate::RequestOptions,
884    ) -> impl std::future::Future<
885        Output = crate::Result<crate::Response<crate::model::AnywhereCache>>,
886    > + Send {
887        T::disable_anywhere_cache(self, req, options)
888    }
889
890    fn pause_anywhere_cache(
891        &self,
892        req: crate::model::PauseAnywhereCacheRequest,
893        options: crate::RequestOptions,
894    ) -> impl std::future::Future<
895        Output = crate::Result<crate::Response<crate::model::AnywhereCache>>,
896    > + Send {
897        T::pause_anywhere_cache(self, req, options)
898    }
899
900    fn resume_anywhere_cache(
901        &self,
902        req: crate::model::ResumeAnywhereCacheRequest,
903        options: crate::RequestOptions,
904    ) -> impl std::future::Future<
905        Output = crate::Result<crate::Response<crate::model::AnywhereCache>>,
906    > + Send {
907        T::resume_anywhere_cache(self, req, options)
908    }
909
910    fn get_anywhere_cache(
911        &self,
912        req: crate::model::GetAnywhereCacheRequest,
913        options: crate::RequestOptions,
914    ) -> impl std::future::Future<
915        Output = crate::Result<crate::Response<crate::model::AnywhereCache>>,
916    > + Send {
917        T::get_anywhere_cache(self, req, options)
918    }
919
920    fn list_anywhere_caches(
921        &self,
922        req: crate::model::ListAnywhereCachesRequest,
923        options: crate::RequestOptions,
924    ) -> impl std::future::Future<
925        Output = crate::Result<crate::Response<crate::model::ListAnywhereCachesResponse>>,
926    > + Send {
927        T::list_anywhere_caches(self, req, options)
928    }
929
930    fn create_rapid_cache(
931        &self,
932        req: crate::model::CreateRapidCacheRequest,
933        options: crate::RequestOptions,
934    ) -> impl std::future::Future<
935        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
936    > + Send {
937        T::create_rapid_cache(self, req, options)
938    }
939
940    fn update_rapid_cache(
941        &self,
942        req: crate::model::UpdateRapidCacheRequest,
943        options: crate::RequestOptions,
944    ) -> impl std::future::Future<
945        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
946    > + Send {
947        T::update_rapid_cache(self, req, options)
948    }
949
950    fn disable_rapid_cache(
951        &self,
952        req: crate::model::DisableRapidCacheRequest,
953        options: crate::RequestOptions,
954    ) -> impl std::future::Future<
955        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
956    > + Send {
957        T::disable_rapid_cache(self, req, options)
958    }
959
960    fn get_rapid_cache(
961        &self,
962        req: crate::model::GetRapidCacheRequest,
963        options: crate::RequestOptions,
964    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::RapidCache>>> + Send
965    {
966        T::get_rapid_cache(self, req, options)
967    }
968
969    fn list_rapid_caches(
970        &self,
971        req: crate::model::ListRapidCachesRequest,
972        options: crate::RequestOptions,
973    ) -> impl std::future::Future<
974        Output = crate::Result<crate::Response<crate::model::ListRapidCachesResponse>>,
975    > + Send {
976        T::list_rapid_caches(self, req, options)
977    }
978
979    fn get_project_intelligence_config(
980        &self,
981        req: crate::model::GetProjectIntelligenceConfigRequest,
982        options: crate::RequestOptions,
983    ) -> impl std::future::Future<
984        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
985    > + Send {
986        T::get_project_intelligence_config(self, req, options)
987    }
988
989    fn update_project_intelligence_config(
990        &self,
991        req: crate::model::UpdateProjectIntelligenceConfigRequest,
992        options: crate::RequestOptions,
993    ) -> impl std::future::Future<
994        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
995    > + Send {
996        T::update_project_intelligence_config(self, req, options)
997    }
998
999    fn get_folder_intelligence_config(
1000        &self,
1001        req: crate::model::GetFolderIntelligenceConfigRequest,
1002        options: crate::RequestOptions,
1003    ) -> impl std::future::Future<
1004        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
1005    > + Send {
1006        T::get_folder_intelligence_config(self, req, options)
1007    }
1008
1009    fn update_folder_intelligence_config(
1010        &self,
1011        req: crate::model::UpdateFolderIntelligenceConfigRequest,
1012        options: crate::RequestOptions,
1013    ) -> impl std::future::Future<
1014        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
1015    > + Send {
1016        T::update_folder_intelligence_config(self, req, options)
1017    }
1018
1019    fn get_organization_intelligence_config(
1020        &self,
1021        req: crate::model::GetOrganizationIntelligenceConfigRequest,
1022        options: crate::RequestOptions,
1023    ) -> impl std::future::Future<
1024        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
1025    > + Send {
1026        T::get_organization_intelligence_config(self, req, options)
1027    }
1028
1029    fn update_organization_intelligence_config(
1030        &self,
1031        req: crate::model::UpdateOrganizationIntelligenceConfigRequest,
1032        options: crate::RequestOptions,
1033    ) -> impl std::future::Future<
1034        Output = crate::Result<crate::Response<crate::model::IntelligenceConfig>>,
1035    > + Send {
1036        T::update_organization_intelligence_config(self, req, options)
1037    }
1038
1039    fn get_iam_policy(
1040        &self,
1041        req: google_cloud_iam_v1::model::GetIamPolicyRequest,
1042        options: crate::RequestOptions,
1043    ) -> impl std::future::Future<
1044        Output = crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>,
1045    > + Send {
1046        T::get_iam_policy(self, req, options)
1047    }
1048
1049    fn set_iam_policy(
1050        &self,
1051        req: google_cloud_iam_v1::model::SetIamPolicyRequest,
1052        options: crate::RequestOptions,
1053    ) -> impl std::future::Future<
1054        Output = crate::Result<crate::Response<google_cloud_iam_v1::model::Policy>>,
1055    > + Send {
1056        T::set_iam_policy(self, req, options)
1057    }
1058
1059    fn test_iam_permissions(
1060        &self,
1061        req: google_cloud_iam_v1::model::TestIamPermissionsRequest,
1062        options: crate::RequestOptions,
1063    ) -> impl std::future::Future<
1064        Output = crate::Result<
1065            crate::Response<google_cloud_iam_v1::model::TestIamPermissionsResponse>,
1066        >,
1067    > + Send {
1068        T::test_iam_permissions(self, req, options)
1069    }
1070
1071    fn get_intelligence_finding(
1072        &self,
1073        req: crate::model::GetIntelligenceFindingRequest,
1074        options: crate::RequestOptions,
1075    ) -> impl std::future::Future<
1076        Output = crate::Result<crate::Response<crate::model::IntelligenceFinding>>,
1077    > + Send {
1078        T::get_intelligence_finding(self, req, options)
1079    }
1080
1081    fn list_intelligence_findings(
1082        &self,
1083        req: crate::model::ListIntelligenceFindingsRequest,
1084        options: crate::RequestOptions,
1085    ) -> impl std::future::Future<
1086        Output = crate::Result<crate::Response<crate::model::ListIntelligenceFindingsResponse>>,
1087    > + Send {
1088        T::list_intelligence_findings(self, req, options)
1089    }
1090
1091    fn summarize_intelligence_findings(
1092        &self,
1093        req: crate::model::SummarizeIntelligenceFindingsRequest,
1094        options: crate::RequestOptions,
1095    ) -> impl std::future::Future<
1096        Output = crate::Result<
1097            crate::Response<crate::model::SummarizeIntelligenceFindingsResponse>,
1098        >,
1099    > + Send {
1100        T::summarize_intelligence_findings(self, req, options)
1101    }
1102
1103    fn get_intelligence_finding_revision(
1104        &self,
1105        req: crate::model::GetIntelligenceFindingRevisionRequest,
1106        options: crate::RequestOptions,
1107    ) -> impl std::future::Future<
1108        Output = crate::Result<crate::Response<crate::model::IntelligenceFindingRevision>>,
1109    > + Send {
1110        T::get_intelligence_finding_revision(self, req, options)
1111    }
1112
1113    fn list_intelligence_finding_revisions(
1114        &self,
1115        req: crate::model::ListIntelligenceFindingRevisionsRequest,
1116        options: crate::RequestOptions,
1117    ) -> impl std::future::Future<
1118        Output = crate::Result<
1119            crate::Response<crate::model::ListIntelligenceFindingRevisionsResponse>,
1120        >,
1121    > + Send {
1122        T::list_intelligence_finding_revisions(self, req, options)
1123    }
1124
1125    fn view_object_full_context(
1126        &self,
1127        req: crate::model::ViewObjectFullContextRequest,
1128        options: crate::RequestOptions,
1129    ) -> impl std::future::Future<
1130        Output = crate::Result<crate::Response<crate::model::ObjectFullContext>>,
1131    > + Send {
1132        T::view_object_full_context(self, req, options)
1133    }
1134
1135    fn get_operation(
1136        &self,
1137        req: google_cloud_longrunning::model::GetOperationRequest,
1138        options: crate::RequestOptions,
1139    ) -> impl std::future::Future<
1140        Output = crate::Result<crate::Response<google_cloud_longrunning::model::Operation>>,
1141    > + Send {
1142        T::get_operation(self, req, options)
1143    }
1144}