@@ -136,6 +136,109 @@ StorageControlAuth::ListManagedFolders(
136136 return child_->ListManagedFolders (context, options, request);
137137}
138138
139+ future<StatusOr<google::longrunning::Operation>>
140+ StorageControlAuth::AsyncCreateAnywhereCache (
141+ google::cloud::CompletionQueue& cq,
142+ std::shared_ptr<grpc::ClientContext> context,
143+ google::cloud::internal::ImmutableOptions options,
144+ google::storage::control::v2::CreateAnywhereCacheRequest const & request) {
145+ using ReturnType = StatusOr<google::longrunning::Operation>;
146+ return auth_->AsyncConfigureContext (std::move (context))
147+ .then ([cq, child = child_, options = std::move (options),
148+ request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
149+ f) mutable {
150+ auto context = f.get ();
151+ if (!context) {
152+ return make_ready_future (ReturnType (std::move (context).status ()));
153+ }
154+ return child->AsyncCreateAnywhereCache (cq, *std::move (context),
155+ std::move (options), request);
156+ });
157+ }
158+
159+ StatusOr<google::longrunning::Operation>
160+ StorageControlAuth::CreateAnywhereCache (
161+ grpc::ClientContext& context, Options options,
162+ google::storage::control::v2::CreateAnywhereCacheRequest const & request) {
163+ auto status = auth_->ConfigureContext (context);
164+ if (!status.ok ()) return status;
165+ return child_->CreateAnywhereCache (context, options, request);
166+ }
167+
168+ future<StatusOr<google::longrunning::Operation>>
169+ StorageControlAuth::AsyncUpdateAnywhereCache (
170+ google::cloud::CompletionQueue& cq,
171+ std::shared_ptr<grpc::ClientContext> context,
172+ google::cloud::internal::ImmutableOptions options,
173+ google::storage::control::v2::UpdateAnywhereCacheRequest const & request) {
174+ using ReturnType = StatusOr<google::longrunning::Operation>;
175+ return auth_->AsyncConfigureContext (std::move (context))
176+ .then ([cq, child = child_, options = std::move (options),
177+ request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
178+ f) mutable {
179+ auto context = f.get ();
180+ if (!context) {
181+ return make_ready_future (ReturnType (std::move (context).status ()));
182+ }
183+ return child->AsyncUpdateAnywhereCache (cq, *std::move (context),
184+ std::move (options), request);
185+ });
186+ }
187+
188+ StatusOr<google::longrunning::Operation>
189+ StorageControlAuth::UpdateAnywhereCache (
190+ grpc::ClientContext& context, Options options,
191+ google::storage::control::v2::UpdateAnywhereCacheRequest const & request) {
192+ auto status = auth_->ConfigureContext (context);
193+ if (!status.ok ()) return status;
194+ return child_->UpdateAnywhereCache (context, options, request);
195+ }
196+
197+ StatusOr<google::storage::control::v2::AnywhereCache>
198+ StorageControlAuth::DisableAnywhereCache (
199+ grpc::ClientContext& context, Options const & options,
200+ google::storage::control::v2::DisableAnywhereCacheRequest const & request) {
201+ auto status = auth_->ConfigureContext (context);
202+ if (!status.ok ()) return status;
203+ return child_->DisableAnywhereCache (context, options, request);
204+ }
205+
206+ StatusOr<google::storage::control::v2::AnywhereCache>
207+ StorageControlAuth::PauseAnywhereCache (
208+ grpc::ClientContext& context, Options const & options,
209+ google::storage::control::v2::PauseAnywhereCacheRequest const & request) {
210+ auto status = auth_->ConfigureContext (context);
211+ if (!status.ok ()) return status;
212+ return child_->PauseAnywhereCache (context, options, request);
213+ }
214+
215+ StatusOr<google::storage::control::v2::AnywhereCache>
216+ StorageControlAuth::ResumeAnywhereCache (
217+ grpc::ClientContext& context, Options const & options,
218+ google::storage::control::v2::ResumeAnywhereCacheRequest const & request) {
219+ auto status = auth_->ConfigureContext (context);
220+ if (!status.ok ()) return status;
221+ return child_->ResumeAnywhereCache (context, options, request);
222+ }
223+
224+ StatusOr<google::storage::control::v2::AnywhereCache>
225+ StorageControlAuth::GetAnywhereCache (
226+ grpc::ClientContext& context, Options const & options,
227+ google::storage::control::v2::GetAnywhereCacheRequest const & request) {
228+ auto status = auth_->ConfigureContext (context);
229+ if (!status.ok ()) return status;
230+ return child_->GetAnywhereCache (context, options, request);
231+ }
232+
233+ StatusOr<google::storage::control::v2::ListAnywhereCachesResponse>
234+ StorageControlAuth::ListAnywhereCaches (
235+ grpc::ClientContext& context, Options const & options,
236+ google::storage::control::v2::ListAnywhereCachesRequest const & request) {
237+ auto status = auth_->ConfigureContext (context);
238+ if (!status.ok ()) return status;
239+ return child_->ListAnywhereCaches (context, options, request);
240+ }
241+
139242future<StatusOr<google::longrunning::Operation>>
140243StorageControlAuth::AsyncGetOperation (
141244 google::cloud::CompletionQueue& cq,
0 commit comments