@@ -152,6 +152,159 @@ AlloyDBAdminClient::UpdateCluster(
152152 return connection_->UpdateCluster (operation);
153153}
154154
155+ future<StatusOr<google::cloud::alloydb::v1::ExportClusterResponse>>
156+ AlloyDBAdminClient::ExportCluster (
157+ std::string const & name,
158+ google::cloud::alloydb::v1::GcsDestination const & gcs_destination,
159+ std::string const & database,
160+ google::cloud::alloydb::v1::ExportClusterRequest::CsvExportOptions const &
161+ csv_export_options,
162+ google::cloud::alloydb::v1::ExportClusterRequest::SqlExportOptions const &
163+ sql_export_options,
164+ Options opts) {
165+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
166+ google::cloud::alloydb::v1::ExportClusterRequest request;
167+ request.set_name (name);
168+ *request.mutable_gcs_destination () = gcs_destination;
169+ request.set_database (database);
170+ *request.mutable_csv_export_options () = csv_export_options;
171+ *request.mutable_sql_export_options () = sql_export_options;
172+ return connection_->ExportCluster (request);
173+ }
174+
175+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::ExportCluster (
176+ NoAwaitTag, std::string const & name,
177+ google::cloud::alloydb::v1::GcsDestination const & gcs_destination,
178+ std::string const & database,
179+ google::cloud::alloydb::v1::ExportClusterRequest::CsvExportOptions const &
180+ csv_export_options,
181+ google::cloud::alloydb::v1::ExportClusterRequest::SqlExportOptions const &
182+ sql_export_options,
183+ Options opts) {
184+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
185+ google::cloud::alloydb::v1::ExportClusterRequest request;
186+ request.set_name (name);
187+ *request.mutable_gcs_destination () = gcs_destination;
188+ request.set_database (database);
189+ *request.mutable_csv_export_options () = csv_export_options;
190+ *request.mutable_sql_export_options () = sql_export_options;
191+ return connection_->ExportCluster (NoAwaitTag{}, request);
192+ }
193+
194+ future<StatusOr<google::cloud::alloydb::v1::ExportClusterResponse>>
195+ AlloyDBAdminClient::ExportCluster (
196+ google::cloud::alloydb::v1::ExportClusterRequest const & request,
197+ Options opts) {
198+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
199+ return connection_->ExportCluster (request);
200+ }
201+
202+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::ExportCluster (
203+ NoAwaitTag, google::cloud::alloydb::v1::ExportClusterRequest const & request,
204+ Options opts) {
205+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
206+ return connection_->ExportCluster (NoAwaitTag{}, request);
207+ }
208+
209+ future<StatusOr<google::cloud::alloydb::v1::ExportClusterResponse>>
210+ AlloyDBAdminClient::ExportCluster (
211+ google::longrunning::Operation const & operation, Options opts) {
212+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
213+ return connection_->ExportCluster (operation);
214+ }
215+
216+ future<StatusOr<google::cloud::alloydb::v1::ImportClusterResponse>>
217+ AlloyDBAdminClient::ImportCluster (std::string const & name,
218+ std::string const & gcs_uri,
219+ std::string const & database,
220+ std::string const & user, Options opts) {
221+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
222+ google::cloud::alloydb::v1::ImportClusterRequest request;
223+ request.set_name (name);
224+ request.set_gcs_uri (gcs_uri);
225+ request.set_database (database);
226+ request.set_user (user);
227+ return connection_->ImportCluster (request);
228+ }
229+
230+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::ImportCluster (
231+ NoAwaitTag, std::string const & name, std::string const & gcs_uri,
232+ std::string const & database, std::string const & user, Options opts) {
233+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
234+ google::cloud::alloydb::v1::ImportClusterRequest request;
235+ request.set_name (name);
236+ request.set_gcs_uri (gcs_uri);
237+ request.set_database (database);
238+ request.set_user (user);
239+ return connection_->ImportCluster (NoAwaitTag{}, request);
240+ }
241+
242+ future<StatusOr<google::cloud::alloydb::v1::ImportClusterResponse>>
243+ AlloyDBAdminClient::ImportCluster (
244+ google::cloud::alloydb::v1::ImportClusterRequest const & request,
245+ Options opts) {
246+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
247+ return connection_->ImportCluster (request);
248+ }
249+
250+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::ImportCluster (
251+ NoAwaitTag, google::cloud::alloydb::v1::ImportClusterRequest const & request,
252+ Options opts) {
253+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
254+ return connection_->ImportCluster (NoAwaitTag{}, request);
255+ }
256+
257+ future<StatusOr<google::cloud::alloydb::v1::ImportClusterResponse>>
258+ AlloyDBAdminClient::ImportCluster (
259+ google::longrunning::Operation const & operation, Options opts) {
260+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
261+ return connection_->ImportCluster (operation);
262+ }
263+
264+ future<StatusOr<google::cloud::alloydb::v1::UpgradeClusterResponse>>
265+ AlloyDBAdminClient::UpgradeCluster (
266+ std::string const & name,
267+ google::cloud::alloydb::v1::DatabaseVersion version, Options opts) {
268+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
269+ google::cloud::alloydb::v1::UpgradeClusterRequest request;
270+ request.set_name (name);
271+ request.set_version (version);
272+ return connection_->UpgradeCluster (request);
273+ }
274+
275+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::UpgradeCluster (
276+ NoAwaitTag, std::string const & name,
277+ google::cloud::alloydb::v1::DatabaseVersion version, Options opts) {
278+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
279+ google::cloud::alloydb::v1::UpgradeClusterRequest request;
280+ request.set_name (name);
281+ request.set_version (version);
282+ return connection_->UpgradeCluster (NoAwaitTag{}, request);
283+ }
284+
285+ future<StatusOr<google::cloud::alloydb::v1::UpgradeClusterResponse>>
286+ AlloyDBAdminClient::UpgradeCluster (
287+ google::cloud::alloydb::v1::UpgradeClusterRequest const & request,
288+ Options opts) {
289+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
290+ return connection_->UpgradeCluster (request);
291+ }
292+
293+ StatusOr<google::longrunning::Operation> AlloyDBAdminClient::UpgradeCluster (
294+ NoAwaitTag,
295+ google::cloud::alloydb::v1::UpgradeClusterRequest const & request,
296+ Options opts) {
297+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
298+ return connection_->UpgradeCluster (NoAwaitTag{}, request);
299+ }
300+
301+ future<StatusOr<google::cloud::alloydb::v1::UpgradeClusterResponse>>
302+ AlloyDBAdminClient::UpgradeCluster (
303+ google::longrunning::Operation const & operation, Options opts) {
304+ internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
305+ return connection_->UpgradeCluster (operation);
306+ }
307+
155308future<StatusOr<google::cloud::alloydb::v1::OperationMetadata>>
156309AlloyDBAdminClient::DeleteCluster (std::string const & name, Options opts) {
157310 internal::OptionsSpan span (internal::MergeOptions (std::move (opts), options_));
0 commit comments